This tool can perform various calculations relating to the driving commutes between any number of locations using the Google Maps API.
- One tool calculates commute time, distance, and fuel cost based on a starting address and one or more destinations. Results are written to a CSV file. It can project data over a week and a year based on a weekly frequency.
- A second tool is the same as the first, but compares two commute files between their overall values. You can have different starting and ending locations for either file.
- The third tool finds the central location based on a provided list of locations.
- Calculate commute time, distance, and fuel cost.
- Project commute data over a week and a year.
- Compare commutes between two locations.
- Find the central location of a list of locations.
- Cached API calls for reusability.
- Clear existing output results and enter new addresses in "locations1.csv" and optionally "locations2.csv" if you want to do a comparison.
- Save your Google Maps API key in "google-maps-api-key.txt".
- Run "main.py" to execute the tool.
- Select option 1 or 2.
- You can also clear the cache with option 4 if you want more recent information.
- Optionally, make copies of CSV files for multiple scenarios and change their name as needed.
- Clear existing output results and enter new addresses in "central_location.csv".
- Save your Google Maps API key in "google-maps-api-key.txt".
- Run "main.py" to execute the tool.
- Select option 3.
- You can also clear the cache with option 4 if you want more recent information.
- Optionally, make copies of CSV files for multiple scenarios and change their name as needed.
- Each base location to destination calculation requires only 2 API requests.
- Inspiration taken from this video.
- Assistance provided by ChatGPT for understanding API calls.
- For a detailed example output, refer to "example_result.txt".
- In this tool all values for a round trip are just 2x the values for a one way trip. In reality it could be a slightly different commute each way.