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


1 Answer 1


Use overpass query like this http://overpass-api.de

<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>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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