Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to find a way to request public transportation info from the OSM XAPI. Those nodes can be best described as:

highway = *

member of = ( route = bus )

Is that even possible to do over the XAPI or do i need to query it from the planet data?

this is what i tried but with no success[route=bus][bbox=100.63584242503583,13.659388026297398,100.65300856273045,13.66877069028344]
share|improve this question
you need to find the route number of the bus - example… – Mapperz Oct 9 '12 at 17:21

Use overpass query like this

<osm-script> <union> <query type="relation"> <has-kv k="type" v="route"/> <bbox-query s="27.6839" n="27.7299" w="85.2885" e="85.3368"/> </query> <recurse type="relation-way"/> <recurse type="way-node"/> </union> <print/> </osm-script>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.