mpk-ttss icon indicating copy to clipboard operation
mpk-ttss copied to clipboard

Displaying the route from user location to selected vehicle

Open AdamTomaja opened this issue 7 years ago • 2 comments

This pull request implements a new feature for the map. When user clicks on vehicle, then the user location is obtained via geolocation api. The result is route from user to vehicle. Route is calculated via Google Directions service.

AdamTomaja avatar Apr 22 '17 00:04 AdamTomaja

Google Maps Directions API requires an API key and is paid-for (with small free quota).

jacekkow avatar Apr 22 '17 21:04 jacekkow

I did a small research. What I found is that OpenStreetMap uses GraphHopper, but it is paid, if cloud version is used. OpenSource on-premise version is available, but requires running own routing engine.

Another way to provide ability for route calculation could be expanding OpenStreetMap embedded map with route calculation:

  • https://gis.stackexchange.com/questions/246192/route-calculation-on-leaflet-gis
  • https://github.com/perliedman/leaflet-routing-machine
  • http://www.liedman.net/leaflet-routing-machine/

pasuder avatar Dec 26 '18 10:12 pasuder