Is there any way to query data by the place_id that is returned when reverse-geocoding a place. I was able to get a place_id from this reverse geocode: http://nominatim.openstreetmap.org/reverse?format=json&lat=52.5487429714954&lon=-1.81602098644987&zoom=18&addressdetails=1 Now I would like to run something to get the name of the place back using the id. It seems that the system has the capabilities because typing the place_id in the url of this works: https://nominatim.openstreetmap.org/details.php?place_id=82367732 The issue is when I run something like this I have no luck: http://nominatim.openstreetmap.org/search?q=82367732&format=json&polygon=1&addressdetails=1 asked 17 Oct '14, 20:45 chaudha |
place_id is a nominatim internal identifier. I'd recommend to use the actual OSM objects (nodes/ways/relations) returned by the query instead. Please see this post: https://help.openstreetmap.org/questions/21542/nominatim-place-id answered 18 Oct '14, 08:53 mmd In other words: Use the osm_id and osm_type contained in Nominatim's response in order to query the corresponding OSM element. In your case the element would be way 90394420.
(18 Oct '14, 09:23)
scai ♦
|