OSM Mobile Binary Protocol/Tile Format Version

From OpenStreetMap Wiki
Jump to navigation Jump to search

Version numbers are not needed for most modifications to the OSM Binary protocol. New information can generally be added to the end of enumerations or the end of type definition, or new types added all together. Data users can simply ignore anything they don't know about and skip over it.

For bigger changes it can be useful to indicate which format is preferred. The version number is included in the request, and also in the Tile Definition.

Version Change Why
1 Uses 32bit unsigned ints for node id's (poi entities not expected). Original.
2 Uses 64bit ints for poi id's (node entities not expected), supports relations such that referenced pois/ways dont need to have duplicated properties. OSM Node Id's are growing fast they will break the 32bit boundary soon. Relations can be used to reduce the amount of data needed.