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

Overpass API: REST call with Postman

1

I'm trying to retrieve all cinemas in the world for a project.

I found out that I can do it through Postman using this REST call:

http://www.overpass-api.de/api/xapi?*[amenity=cinema]

I can also retrieve all cinemas from a specific square this way:

http://www.overpass-api.de/api/xapi?*[amenity=cinema][bbox=-180,-90,180,90]

What I would like to do now is to retrieve all cinemas for a country or a city. All I know is that I can use area["name"="New Zealand"] or geocodeArea:California but if I stick those value on the query I receive an error.

This is how I'm using geocodeArea right now and is not working:

http://www.overpass-api.de/api/xapi?*[amenity=cinema][geocodeArea=California]

On your documentation I don't see examples of REST call so I'm bit stock.

Can you please provide an example, please?

Thank you

asked 12 Aug '18, 02:01

francesco_mantovani's gravatar image

francesco_ma...
36112
accept rate: 0%

edited 12 Aug '18, 02:02

Source code available on GitHub .