Extremely simple python script to get Google maps directions/routes between two addresses and pretty print data to JSON file.
Must include a .env file with an API_KEY
that contains
a valid api key for the Google Directions API.
pipenv/Python 3.8.3
- clone:
git clone git@github.com:Jnavarr56/google-directions-api-script-demo.git
- create virtualenv:
python -m venv venv
- activate virtualenv:
. ./venv/bin/activate
- install dependencies
pipenv install
- run:
python script.py
Results printed to a results.json file.