Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 874 Bytes

README.md

File metadata and controls

42 lines (34 loc) · 874 Bytes

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])