Draw between 2 points along the road
Hi there!
I have collected bus GPS data and I want to draw a route of that bus according to that GPS data on a map. I tried to use available services that provide Directions API. But there I can either choose car, bicycle or pedestrian as a travel mode, and those services try to avoid some places, where the bus definitely goes, but it is either not allowed to driver there by car or the route under construction. Pedestrian type doesn't work for me because the services draw a route next to the road, but not over it. What I basically want is to draw a line on the road between multiple GPS points, but I don't want any "smart" functions that such services provide.
Don't you have any suggestions how it can be done? E.g. get a pice of road where GPS coordinate point to.
UPD:
Here is the example how direction services draw a route and how it should be. Blue line is how the mapbox draws the route. Red line is where the actual route is located.
![alt text][1]
[1]: http://https://help.openstreetmap.org/upfiles/screenshot_XxVHH0q.png