Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

http://open.mapquestapi.com/xapi/api/0.6/relation[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 open.mapquestapi.com/xapi/api/0.6//… –  Mapperz Oct 9 '12 at 17:21
add comment

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>
share|improve this answer
add comment

Your Answer

 
discard

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.