-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can it apply coordinate map distance from api in this work? #6
Comments
Hi @Suppharutchaya , yes, certainly. The algorithms take a full (dense) distance matrix D as an input. Hence, one can use, e.g., Google Maps Distance Matrix API to generate the D based on a set of GPS coordinates. If one has street addresses, a geocoding step is required prior to that. Your question inspired me to create an example that illustrates using real world distances. Instead of the Google APIs, I use the Bing maps API, which has IMO better free tier. Please find the illustrative example in examples/bing_maps_example.py. The script is used by creating a text file with one customer per line (first line is the address of a depot). The format of each line is After creating a Bing maps API key and placing it in a Now, call the script as below and if everything is set up correctly, you will get a similar output.
BR, |
In case you adapt the script to use Google API, feel free to make a pull request. Thanks. |
Closing as this is shown to be possible. |
It is a great work but I wonder that can we use coordinate map distance from google api in order to get the real distance or not?
The text was updated successfully, but these errors were encountered: