NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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 '22, 16:51

dpawlyk's gravatar image

dpawlyk
11112
accept rate: 0%

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

Thanks.

(14 Sep '22, 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 '22, 17:40

H_mlet's gravatar image

H_mlet
5.4k1781
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 '22, 17:32

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

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:

×144
×8

question asked: 14 Sep '22, 16:51

question was seen: 1,086 times

last updated: 15 Sep '22, 05:48

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum