Skip to content

Instantly share code, notes, and snippets.

View richardlent's full-sized avatar

Richard Lent richardlent

View GitHub Profile
@richardlent
richardlent / geocode.py
Last active March 10, 2020 17:29
This program uses the Python geocoder library (https://geocoder.readthedocs.io/)and the OpenStreetMap/Nominatim database to geocode a plain text CSV (comma-separated values)file containing street addresses. The pandas library is used for data wrangling.
# geocode.py
# Richard A. Lent, Thursday, September 19, 2019 at 11:43 AM.
# Inspired by https://janakiev.com/blog/geocoding-in-python/ .
# Tuesday, March 10, 2020. Fixed display of progress dots.
"""Python geocoder
This program uses the Python geocoder library (https://geocoder.readthedocs.io/)
and the OpenStreetMap/Nominatim database to geocode a plain text CSV (comma-separated values)