Demonstrates a solution for the simple multi-vehicle routing problem (VRP) using a combination of Google libraries and services. Sample depot and shipment locations randomly chosen in the San Antonio, TX metro area. Distances and times are based on Google's road network.
You will need a Google Maps Platform API Key.
- Python 3 environment
- JupyterLab
pip install jupyterlab
pip install -r requirements.txt
jupyter nbextension enable --py --sys-prefix gmaps
jupyter notebook
Google Distance Matrix API won't allow more than 10 elements for the calculation
if the change the shipments[0:9] to shipments[0:].
How can I overcome this limitation?
MAX_ELEMENTS_EXCEEDED