graphhopper / graphhopper-navigation-example-legacy

GraphHopper Navigation as App
https://www.graphhopper.com/open-source/
Apache License 2.0
93 stars 49 forks source link

Open VRP solutions from URL #31

Closed boldtrn closed 5 years ago

boldtrn commented 5 years ago

This PR allows to open VRP solutions from a URL.

There are two ways to specify urls, with and without vehicle_id.

https://graphhopper.com/api/1/vrp/solution/[SOLUTION_ID]?key=[KEY]
https://graphhopper.com/api/1/vrp/solution/[SOLUTION_ID]?key=[KEY]&vehicle_id=[VEHICLE_ID]

If no vehicle id is given, we will simply use the first vehicle (to make it easy to copy paste URLs from the route editor).