I'm building a small web-map and would wich to display a polyline representing a specific route via roads. With leafletjs it is easy to display the geometry on/over the map. So that's not the problem.

I'm looking for a webservice where I can 'download' the route as a polyline/Multipoint.

Does anyone know if this exists?


YOURS navigation sites can deliver routes as geojson. Read http://wiki.openstreetmap.org/wiki/YOURS or try online


However, more often routes are available as GPX or KML format. There is a comparison matrix of OSM based services at http://wiki.openstreetmap.org/wiki/Routing/online_routers but the matrix does not have a column for geojson so you must do your own research.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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