This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How precise can OSM get?

3
1

In what data structures are the nodes' coordinates stored internally in OSM database (64bit floating point, some long integer, something else entirely...)?
What is the minimal distance that can be recorded without two points being rounded to the same location?
For gps recordings with accuracy in meters this will hardly be a problem, but as the map gets more precise, it might become one.

Obviously the longitude precision will vary between equator and poles, but still it would be good to know what the range is.

asked 25 Aug '11, 15:52

LM_1's gravatar image

LM_1
3.3k335188
accept rate: 10%


2 Answers:

12

Data Primitives says the longitude has 7 decimal positions for >−180 and <180.

4*10^7/2/180/10^7 = 0.01 meter = 1 centimeter (at the equator)

The same document says latitude has 7 decimal positions for >−90.0 and <90.0.

4*10^7/4/90/10^7 = 0.01 meter = 1 centimeter

answered 25 Aug '11, 16:16

gnurk's gravatar image

gnurk
6.1k106096
accept rate: 15%

edited 25 Aug '11, 16:36

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866

3

There are some hints in the OSM wiki about Nodes.

answered 25 Aug '11, 16:12

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

Source code available on GitHub .