Hi! I am new to OSM and I am trying to get tram stops and lines using overpass turbo but with no luck. What I did was writing this code: <osm-script> <query type="node"> <has-kv k="railway" v="tram_stop"/> <bbox-query {{bbox}}=""/> </query> <print limit="" mode="body" order="id"/> </osm-script> But what it does is only showing all tram stops. What I need is:
Of course those should be independent queries. May someone help me or guide me? I did some other queries using overpass turbo wiki but to no avail.
This question is marked "community wiki".
asked 09 Oct '14, 15:59 yamet |
please look at the anwers to this question: https://help.openstreetmap.org/questions/37216/how-to-download-data-bus-stations-with-locations-poi answered 09 Oct '14, 16:57 escada This solution doesn't download routes, only stops and platforms.
(09 Oct '14, 17:29)
scai ♦
Escada thanks for help! Unfortunately this is not answer to my question. My query already displays tram stops. Do you know maybe what should I add to additionally display tram route?
(10 Oct '14, 16:08)
yamet
|
Try this one http://overpass-turbo.eu/s/5pa, it's based upon an example for part of a hiking route. That same page also has an example for the complete route, but then you have to specify the name or ref of the route answered 10 Oct '14, 19:14 escada |
What do you mean by 'only in one way'? Can you give some concrete example with actual relations?
Btw: there are plenty of overpass api threads around here. Did you already take a look at some of them involving 'rel' and '>>'?
When you have tram line from point A to B, there are almost always two lines for trams going one way and backwards. So almost everywhere where trains stops there are two tram stops, one for trams going forth and one for trams going backwards. I would like to stick to overpass turbo to visualise the result so I was not checking other overpass API's.