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

Api call question

1

Hello OSM Community,

I've been reading about the API for several days now andy trying to figure out if it's possible to do specific API calls. As far as I noticed you can only get all the raw data (buildings, streets, transport) for a region e.g. Manhattan, NY. Since the raw data files are quite large and I'm only interested in streets / water ways / bridges, I was wondering how you can only request them? Is that possible?

Thank you so much for looking into it.

Best, Dan

asked 06 Apr '16, 13:37

Dan744's gravatar image

Dan744
36113
accept rate: 0%


One Answer:

5

The OSM API is an "Editing API" and does not support filtering etc. An alternative to extracting the data from the raw data (for example from https://mapzen.com/data/metro-extracts/ ) is to use the Overpass API and/or Overpass Turbo.

answered 06 Apr '16, 14:03

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 06 Apr '16, 14:04

Source code available on GitHub .