This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Search amenities with Nominatim

0

I am looking for a possibility to query for places like restaurants, pubs etc in the suroundings of a given address.

Unfortunately I'm a bit confused about the Nominatim documentation: It is written that there are special keywords like pub or restaurant but I can not find how to actually use them.

Can you help me and give an example how to find all restaurant 1km within a given address?

Thanks!

asked 22 Oct '16, 22:35

acgjheeb's gravatar image

acgjheeb
101338
accept rate: 0%

(01 Mar '19, 20:26) Mappist

One Answer:

3

Here is an example query http://nominatim.openstreetmap.org/search.php?q=pubs+near+farm+road%2C+brighton&format=jsonv2 and https://wiki.openstreetmap.org/wiki/Nominatim/Special_Phrases/EN lists the special phrases which are possible. You can't specify a radius, but a bounding box (&viewbox=...&bounded=1) limits the results to a bounding box.

answered 24 Oct '16, 14:14

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

Thanks for your answer! Now I understand how the operator is meant to be used.

(05 Nov '16, 15:43) acgjheeb

Source code available on GitHub .