The following URL (with 7 digits in the fraction):

https://www.openstreetmap.org/?mlat=41.0404437&mlon=-73.9146759

Ends up being transformed to the following (with the fraction rounded to 5 digits):

https://www.openstreetmap.org/?mlat=41.0404437&mlon=-73.9146759#map=19/41.04044/-73.91468

This, of course, puts the marker in the wrong place.

Clearly, objects in the OSM database are stored with more precision.

Why can't the URL use all of the provided precision?

(Google maps has the same issue. It seems you can work around that using "plus codes".)

asked 14 Sep, 16:51

dpawlyk's gravatar image

dpawlyk
112
accept rate: 0%

Err. It looks like the issue is with the source.

Thanks.

(14 Sep, 17:42) dpawlyk

Hi.

The marker coordinates in your second URL are not rounded, the map= stuff represents the map view.

Also sixth and seventh digits represent roughly decimeters and centimeters respectively. See http://wiki.gis.com/wiki/index.php/Decimal_degrees

Not much in OSM has that kind of precision, except probably survey points and such.

The data is stored with huge precision, but objects are mapped from satellite imagery and GPS tracks, where the precision is usually is the meter range.

So if the marker is not where you expected it, I suppose the coordinates are wrong, or the mapping around it is shifted.

Regards.

permanent link

answered 14 Sep, 17:40

H_mlet's gravatar image

H_mlet
4.7k1573
accept rate: 13%

The marker is in the correct position. What gets rounded is the centre point of the map display, meaning that the marker will not be 100% at the centre of the screen, but given that the marker only makes up a fraction of the screen space, you will not even notice it being off centre by a few pixels.

permanent link

answered 14 Sep, 17:32

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
80.9k907111251
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×141
×8

question asked: 14 Sep, 16:51

question was seen: 166 times

last updated: 15 Sep, 05:48

powered by OSQA