geocode-sqlite icon indicating copy to clipboard operation
geocode-sqlite copied to clipboard

Consolidate code to geocode a list

Open eyeseast opened this issue 3 years ago • 0 comments

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.

eyeseast avatar Mar 13 '22 17:03 eyeseast