Optimize route for your trip with Google Map API
You need additional two files. We show examples of them.
google_map:
api_key: YOUR_API_KEY
api_url:
distance_matrix: https://maps.googleapis.com/maps/api/distancematrix/json
geocodeing: https://maps.googleapis.com/maps/api/geocode/json
YOUR_API_KEY
is your api key for google map api. Please get it from HERE.
name,day,address,latitude,longitude
LOCATION_NAME,DAY_NUMBER,LOCATION_ADDRESS,,
Both latitude and longitude are automatically set with geocode api. What you have to set are only location name, address, and day. The day is when you visit the location.
You can set some parameters on modules/params.py
. Please set the number of trip days here.
The planning result will be shown in your terminal. In addition, the data got with Google Map API, such as distance between locations, are saved as pkl file.