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

Go on https://www.openstreetmap.org/#map=.... First search N 45.53402°, E 010.63113° – point on the map is not correct Second search 45.53402 10.63113 – point on the map is correct

asked 01 Feb '22, 07:56

NorbertOpen's gravatar image

NorbertOpen
54151618
accept rate: 0%

edited 01 Feb '22, 07:57

They seem to point to exactly the same spot, (middle of the lake), what are you seeing that you think is incorrect?

(01 Feb '22, 08:50) BCNorwich

For me, N 45.53402°, E 010.63113° points to Moniga del Garda left of the lake. 45.53402 10.63113 points into the lake.

(01 Feb '22, 09:22) scai ♦

Searching for 45.53402 10.63113 just gets you directly at the coordinates position ( https://www.openstreetmap.org/search?query=45.53402%2010.63113#map=13/45.5340/10.6311 which are inside the Lake Garda ) if you use the result of the so called "Internal" search.

Searching for N 45.53402°, E 010.63113° goes via Nominatim which tries to find the nearest node or relation. N 45.53402°, E 010.63113° is inside the Moniga del Garda relation (see: https://www.openstreetmap.org/relation/45225#map=13/45.5263/10.5598 ) that spans into the lake and your result is showing that relation, so not the exact coordinate.

If you would search for both variants directly at nominatim ( https://nominatim.osm.org ), you would always get the village as that is the relation nominatim can return (your coordinates are actually to the top right of that relation).

permanent link

answered 01 Feb '22, 09:31

Spiekerooger's gravatar image

Spiekerooger
3.1k22356
accept rate: 16%

edited 01 Feb '22, 09:33

Interesting. Is it that the OSM web page does not understand that N 45.53402°, E 010.63113° is coordinates and thus passes the search term directly to Nominatim? What would be allowed coordinate formats the page understands?

(01 Feb '22, 10:20) TZorn

Yes, if the search query contains two floats but nothing else, the search tries to get latitude and longitude out of those and gets you directly to that position. I'm not into RoR, but you could have a look here: https://github.com/openstreetmap/openstreetmap-website/blob/4ea6a3c16df7a5dcd7620ddabfd7ecd3f6fbd396/app/controllers/geocoder_controller.rb#L45 Otherwise the search query is passed to Nominatim.

But it does not understand coordinates with degrees, minutes, seconds etc. If someone volunteers to write a good parser for all kind of formats, you could to a pr here: https://github.com/openstreetmap/openstreetmap-website

(01 Feb '22, 10:28) Spiekerooger

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:

×535
×193
×45

question asked: 01 Feb '22, 07:56

question was seen: 1,150 times

last updated: 01 Feb '22, 10:31

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