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

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's gravatar image

chaudha
1111
accept rate: 0%


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

permanent link

answered 18 Oct '14, 08:53

mmd's gravatar image

mmd
5.7k15388
accept rate: 37%

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 ♦

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:

×85
×55
×43
×19

question asked: 17 Oct '14, 20:45

question was seen: 13,453 times

last updated: 18 Oct '14, 09:23

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