I'm using the Overpass API to query OpenStreetMap for bus stops with a certain name near a specified location:
http://overpass-api.de/api/interpreter?data=[out:json];node["name"="CITY"];node["around"="15000"];node["name"="STOP_NAME"]["highway"="bus_stop"];out;
Now I need to expand this query: I don't only want get all bus stops named STOP_NAME
near CITY
, but also tram stops (railway=tram
) and subway stops (railway=subway
) matching STOP_NAME
.
I tried this, but it still only returns bus stops (and includes redundant information):
http://overpass-api.de/api/interpreter?data=[out:json];node["name"="CITY"];(node(around:15000)["name"="STOP_NAME"]["highway"="bus_stop"];node(around:15000)["name"="STOP_NAME"]["railway"="tram_stop"];node(around:15000)["name"="STOP_NAME"]["railway"="subway_stop"];);(._;>;);out;
What am I doing wrong?