I'd like to implement routing on my map using OSRM and Openlayers 3 but there don't seem to be any examples or tutorials anywhere.All the sample are to confusing
Sources refereed1:http://workshop.pgrouting.org/chapters/ol3_client.html (in this sample i don't know from where to get the data to plot the polyline i will be getting the data as a json which contains array of object with latitude and longitude)
2:http://wiki.openstreetmap.org/wiki/Routing/online_routers don't know where to start with to accomplish it
3:OSRM Routing in Openlayers 3
i am able to draw a straight line but i wanted to draw different color lines along the direction of the map , i came to know for this i have to use a direction service can any body please point to some sample code or post any help will be thankful please say a way to accomplish it
أكثر...
Sources refereed1:http://workshop.pgrouting.org/chapters/ol3_client.html (in this sample i don't know from where to get the data to plot the polyline i will be getting the data as a json which contains array of object with latitude and longitude)
2:http://wiki.openstreetmap.org/wiki/Routing/online_routers don't know where to start with to accomplish it
3:OSRM Routing in Openlayers 3
i am able to draw a straight line but i wanted to draw different color lines along the direction of the map , i came to know for this i have to use a direction service can any body please point to some sample code or post any help will be thankful please say a way to accomplish it
أكثر...