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 |
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). answered 01 Feb '22, 09:31 Spiekerooger 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
|
They seem to point to exactly the same spot, (middle of the lake), what are you seeing that you think is incorrect?
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.