[openstreetmap/openstreetmap-website] Search by latitude & longitude succeeds inconsistently (#2366)

dieterdreist notifications at github.com
Tue Sep 3 10:56:07 UTC 2019


it seems you only get results if there are OSM objects close to the
coordinates you search for. Maybe nominatim could add the coordinate pair
as first result regardless of other results?

It also seems optimizable that you search with very low precision like
41.8° N, 12.5° E
and the only result you get is a living street:
https://nominatim.openstreetmap.org/search.php?q=41.8%C2%B0+N%2C+12.5%C2%B0+E&polygon_geojson=1&exclude_place_ids=105327361&accept-language=en-US%2Cen%3Bq%3D0.8%2Cde%3Bq%3D0.5%2Cit%3Bq%3D0.3

Doing more tests, there appears to be a bug in Nominatim, I never find
"more results" than 1 if I search for coordinates. And there's an issue
with priority and scope (precision of coordinates relating to importance of
objects), I tried to "find" Rome by adding the place coordinates, but only
got results of relatively minor pois:

Here's Rome in OSM:
https://www.openstreetmap.org/node/72959652

41.893° N, 12.483° E
https://nominatim.openstreetmap.org/search.php?q=41.893%C2%B0+N%2C+12.483%C2%B0+E&polygon_geojson=1&viewbox=
(finds a place=quarter, Nominatim admin level 15,
https://www.openstreetmap.org/relation/5454237 )

The almost same query, 41.895° N same lon, finds a public artwork:
https://nominatim.openstreetmap.org/search.php?q=41.895%C2%B0+N%2C+12.483%C2%B0+E&polygon_geojson=1&viewbox=

41.89° N, 12.48° E
https://nominatim.openstreetmap.org/search.php?q=41.89%C2%B0+N%2C+12.48%C2%B0+E&polygon_geojson=1&viewbox=
finds another place=quarter, https://www.openstreetmap.org/relation/5454276
)

41.90° N, 12.49° E
https://nominatim.openstreetmap.org/search.php?q=41.90%C2%B0+N%2C+12.49%C2%B0+E&polygon_geojson=1&viewbox=
Finds a museum (Palazzo delle Esposizioni
https://www.openstreetmap.org/way/51930840 )
although there is also a place=quarter relation for the containing area:
https://www.openstreetmap.org/relation/5451988

41.9° N, 12.5° E
https://nominatim.openstreetmap.org/search.php?q=41.9%C2%B0+N%2C+12.5%C2%B0+E&polygon_geojson=1&viewbox=
Finds again a place=quarter mapped as an area (Rione XVIII Castro Pretorio
(r5454327))

42° N, 13° E
https://nominatim.openstreetmap.org/details.php?place_id=61065000
finds a place=locality


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2366#issuecomment-527409034
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190903/f8034eb1/attachment.html>


More information about the rails-dev mailing list