<div dir="ltr">Here's a similar but more general query with OverpassTurbo if you want to avoid all that punctuation ;) <a href="http://overpass-turbo.eu/s/2S9" target="_blank"><font color="#0066cc">http://overpass-turbo.eu/s/2S9</font></a></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 26, 2014 at 4:26 PM, Rob Nickerson <span dir="ltr"><<a href="mailto:rob.j.nickerson@gmail.com" target="_blank">rob.j.nickerson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>There was a question about bus routes/route relations just the other day. See my reply* at:<br>
<a href="https://lists.openstreetmap.org/pipermail/talk/2014-March/069413.html" target="_blank">https://lists.openstreetmap.org/pipermail/talk/2014-March/069413.html</a><br>
<br></div>Using Overpass API you can extract a "line" for a bus route relation. By default you "line" is made up of all the roads that form part of the bus route with the roads being in OSM's XML format. You can also extract the "line" as GPX or as GeoJSON. Either way you will have to process the result to convert the collection or roads into a single "line" (if that's what you want).<br>
<br></div>Regards,<br>Rob<br><br></div>* Note: The link at number [7] should be everything starting at "http" and ending "body;". It should have a space between "Travel" and "De" (but no linebreak character).<br>
</div>
<br>_______________________________________________<br>
talk mailing list<br>
<a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/talk" target="_blank">https://lists.openstreetmap.org/listinfo/talk</a><br>
<br></blockquote></div><br></div>