1

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?

1 Answer 1

0

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

http://www.yournavigation.org/api/1.0/gosmore.php?format=geojson&flat=52.215676&flon=5.963946&tlat=52.2573&tlon=6.1799&v=motorcar&fast=1&layer=mapnik

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 and acknowledge you have read our privacy policy.

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