<div dir="ltr">>I've looked briefly into using Leaflet or Openlayers & can work out  how <br>>to hard code the lat/long of each node or to load a gpx file, but see no <br>>way to retrieve the current data. What is the best/any way to do this?<br>
><br>>Cheers<br>>Dave F.<br>><br><br>Hi Dave,<br><br>Take a look at Overpass API [1]. There is a XAPI compatibility layer that makes it easy to get an OSM extract using a simple web http request [2] (I've had a go at improving the documentation [3] which may help you) but this compatibility layer only returns data in the OSM XML format.<br>
<br>You can extract data in other formats, as described in the Overpass API language guide. I like to use the Overpass Turbo site and it's "Wizard" button to make it easier to construct these queries. For example see my blog post about a relation for a bus route in Coventry [5]. The Overpass turbo page for this is permalinked at [6] and you can get the data as a GeoJSON file via [7].<br>
<br>Regards,<br>Rob<br><br>[1] <a href="http://wiki.openstreetmap.org/wiki/Overpass_API">http://wiki.openstreetmap.org/wiki/Overpass_API</a><br>[2] <a href="http://wiki.openstreetmap.org/wiki/Overpass_API/XAPI_Compatibility_Layer">http://wiki.openstreetmap.org/wiki/Overpass_API/XAPI_Compatibility_Layer</a><br>
[3] <a href="http://wiki.openstreetmap.org/wiki/User:RobJN#XAPI_Compatibility_Layer">http://wiki.openstreetmap.org/wiki/User:RobJN#XAPI_Compatibility_Layer</a><br>[4] <a href="http://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide">http://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide</a><br>
[5] <a href="http://blog.mappa-mercia.org/2013/06/on-buses.html">http://blog.mappa-mercia.org/2013/06/on-buses.html</a><br>[6] <a href="http://overpass-turbo.eu/s/2Ou">http://overpass-turbo.eu/s/2Ou</a><br>[7] <a href="http://overpass.osm.rambler.ru/cgi/interpreter?data=[out:json];relation">http://overpass.osm.rambler.ru/cgi/interpreter?data=[out:json];relation</a> ["name"="Travel De Courcey route 360A"];(._;>;);out body;<br>
</div>