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

Draw Route between Two Places.

0

How Can i Draw Route between Two Places or two lat-long using open layer in Openstreetmap.

asked 17 Aug '16, 08:49

Jatin%20Patel's gravatar image

Jatin Patel
11557
accept rate: 0%

Please clarify. What kind of route do you want? Do you want (a) the user to manually draw a route on the map? (b) the developer of the application/web site to draw a particular route on the map? (c) the user of the web site to determine a start and destination and then a routing engine find the roads to travel to get from A to B?

(17 Aug '16, 08:54) Frederik Ramm ♦

(c) the user of the web site to determine a start and destination and then a routing engine find the roads to travel to get from A to B

(17 Aug '16, 10:47) Jatin Patel

One Answer:

1

You can use OSRM as a back-end routing engine. If OSRM doesn't fit your needs (although seems as though it does) you can check out other routing engines on the Wiki page.

answered 17 Aug '16, 13:00

JamesGould's gravatar image

JamesGould
19691020
accept rate: 33%

Source code available on GitHub .