Convert initial scraped shelter information from csv to json
- Python version 3.6.5
- googlemaps api
- CSV Shelter Data
- Download the code
- Set up a Google API Account
- Rename
settings.py.example
tosettings.py
- Set value of the Google API Key in
settings.py
- Delete the files in the data folder. They were used to test and demonstrate the code.
- Download the Shelter CSV from the linked Google Drive
- Copy the Downloaded Shelter CSV into the Data folder
- Alternatively, change the file path in
settings.py
to whereever you would like to place the data
- Alternatively, change the file path in
- Run the program
- Go into the data folder and retrieve the newly created JSON file
**Note: Address_name is swapped with formatted_address from googleapi results.
# 1. we're unsure of address name's true purpose
# 2. formatted address serves as a sanity check that google returned the correct location
# 3. Goole buries values like postal code into its JSON results