jacekkow / mpk-ttss

Improved www.ttss.krakow.pl
BSD 3-Clause "New" or "Revised" License
82 stars 12 forks source link

Displaying the route from user location to selected vehicle #9

Open AdamTomaja opened 7 years ago

AdamTomaja commented 7 years ago

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.

jacekkow commented 7 years ago

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

pasuder commented 5 years ago

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: