Path: blob/master/Google Maps/Google_Maps_Create_itinerary_optimisation_on_differents_waypoints.ipynb
5393 views

Google Maps - Create itinerary optimisation on differents waypoints
Tags: #googlemaps #optimization #data #naas_drivers #operations #snippet #dataframe #google_maps_api #directions_api
Author: Antonio Georgiev
Last update: 2023-08-08 (Created: 2023-08-08)
Description: This template analyses a given set of waypoints, optimizes the order of visiting them, and outputs a list with the correct order. Thus, making it useful for travelers, who want to visit multiple locations most efficiently.
Input
Import libraries
Setup variables
Mandatory
Pre-requisite:
Follow the steps in the link - https://developers.google.com/maps/documentation/routes/cloud-setup
Sign up for an account with the Routes API provider.
Make sure to enable Routes API as it is in the "Additional APIs" section in the google cloud console.
Check the available countries https://developers.google.com/maps/documentation/routes/calculate_toll_fees#toll-locations
api_key: This variable holds the Google Cloud Platform (GCP) API key.origin: This variable represents the starting location for a journey.waypoints: This variable indicates the list of differents waypoints for a journey.destination: This variable indicates the end location or destination for a journey.