I see that you can use nominatim with an HTTP POST for this. However, I went to the trouble of loading the OSM database into postgres, and I want to take advantage of the speed of querying it from my DB, without an HTTP call. Is there a SQL QUERY that can get the osm_ids associated with a specific latitude/longitude?? Thanks so much. Ive spend dozens of hours trying to figure this out! asked 14 Nov '12, 02:22 sfrattura |
This depends on how you have imported the data. For an osm2pgsql import, the query would look like this:
What you put for
and for The query will then return all IDs within the given distance of the point. answered 14 Nov '12, 08:16 Frederik Ramm ♦ |
I have a simliar problem trying to show some localities only having the lat long data availabe. Can you point me to a different resolution for this problem. I'm using mapserver on windows and openlayers. Thank you answered 13 Mar '14, 09:18 Victor1989 This is a completely different question, and you'd be better off asking it as a separate question, fully explaining what you want to do and what your setup is.
(13 Mar '14, 10:01)
Richard ♦
|