geocode-sqlite
geocode-sqlite copied to clipboard
Consolidate code to geocode a list
I do this in three places:
- In geocode_table, which I wrote first
- In the CLI
- In geocode_list, which I needed for the progress bar
This whole block is basically repeated: https://github.com/eyeseast/geocode-sqlite/blob/main/geocode_sqlite/utils.py#L50-L68. Part of the issue is that in the Python API, I'm using log.info and in the CLI I'm using click.echo. Maybe I can abstract that and pass in a print function.