Geocode owner addresses and write them to a GeoJSON FeatureCollection
This script requires the geocoder and psycopg2 libraries - install them by running:
pip3 install -r requirements.txtYou'll need to include a credentials.py file in the root directory with the appropriate Postgres database credentials, formatted like so:
user = 'user'
password = 'password'
dbname = 'dbname'
host = 'host'Run the script with the command
python3 run.pyAs the script geocodes each owner address, it'll add the data to a FeatureCollection, which will ultimately be written to a file named -owners.geojson, prefixed with the date. The data in this file can be used for any number of mappy things.
https://developers.google.com/maps/documentation/javascript/geocoding