Skip to content

expandaventures/geocoding-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geocoding CLI

Python 3.8

Installation

Using Pip

  $ pip install geocli

Manual

  $ git clone https://github.com/expandaventures/geocoding-cli
  $ cd geocoding-cli
  $ python setup.py install

Usage

$ geocli

Geocode a single address

Usage: geocli geocode [OPTIONS] ADDRESS [STATE] [CITY]

$ geocli geocode --dry_run 'Av. Reforma 222' cdmx mexico

Batch: geocode a addresses in a file

Usage: geocli batch [OPTIONS] INPUT_FILE OUTPUT_PATH

$ geocli batch --dry_run sample.csv out.csv

The expected schema in the file is:

id, state, unused, city, ... , address
1, CDMX,,Mexico,,Av. Reforma 222

The ONLY columns used are 2nd, 4th and last. (e.g. row[1], row[3], row[-1])