This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Showing a self calculated route on openstreet map

0

I have calculated a short distance route using my own algorithm which will give a vector file as a output. Now I want to show it on openstreet map. I don't know how to do that. Can anyone help me? I am in a mess. Thanks

asked 24 Oct '19, 08:50

Eshita53's gravatar image

Eshita53
11112
accept rate: 0%


One Answer:

1

If you have the capability to host a few html/javascript files yourself, then save your route as GeoJSON and throw together a small Leaflet web page that shows an OpenStreetMap layer plus your custom JSON. It shouldn't be more than 20 lines of code. If this is too much for you, use the web service umap.openstreetmap.fr and upload your GeoJSON file there.

answered 24 Oct '19, 08:52

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .