A website that uses the Google Maps API to create an optimized route between up to 25 waypoints (the traveling salesman problem). Useful for planning a roadtrip or a set of errands.
Click here to see an example route for a roadtrip across Europe.
- Go to https://dangbert.github.io/optimized-route/
- Enter the start location in the "waypoints" search box.
- Enter up to 25 waypoint locations in the "Enter a waypoint" box in any order (25 is the max the API allows).
- Enter the end location in the "Set end location" box.
- Mouseover a location on the left panel to view its address.
- Delete waypoints with the red x; change start/end by entering a new location .
- NEW: bookmark the page at any point to save your route for revisiting later.
If the start, end, and at least one waypoint are all defined then the optimal route will be displayed on the map, and directions will be displayed in a panel to the right of the map. You can hide/show the panel using the button in the top right of the panel.