You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to granularity, the primitive block also encodes a latitude and longitude offset value. These values, measured in units of nanodegrees, must be added to each coordinate.
Where latitude is the latitude in degrees, granularity is the granularity given in the PrimitiveBlock, lat_offset is the offset given in the PrimitiveBlock, and lat/lon is encoded in a Node or delta-encoded in a DenseNode. The explanation of the equation for longitude is analogous.
The PbfBlobDecoder ignores the offset and granularity completely for DenseNodes:
I couldn't see any differences so far but i don't know for which elements this kind of encoding is used in OSM 🤷♂️
It's still a good idea to follow the spec in order to avoid any pitfalls.
Activity
easbar commentedon Dec 1, 2020
I'm just curious. (Where) does this make a difference in practice / GraphHopper?
otbutz commentedon Dec 1, 2020
I couldn't see any differences so far but i don't know for which elements this kind of encoding is used in OSM 🤷♂️
It's still a good idea to follow the spec in order to avoid any pitfalls.