Metadata-Version: 2.1
Name: geocli
Version: 1.0.1
Summary: A simple commandline app for geocoding
Home-page: https://github.com/expandaventures/geocoding-cli
Author: Paco Valdez
Author-email: pacofvf@gmail.com
License: GPLv3
Download-URL: https://github.com/expandaventures/geocoding-cli/archive/1.0.0.tar.gz
Platform: UNKNOWN
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=2.7
Description-Content-Type: text/markdown
Requires-Dist: certifi (==2020.12.5)
Requires-Dist: chardet (==4.0.0)
Requires-Dist: click (==7.1.2)
Requires-Dist: idna (==2.10)
Requires-Dist: requests (==2.25.1)
Requires-Dist: urllib3 (==1.26.3)

### Geocoding CLI

[![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-380/)

# Installation
## Using Pip
```bash
  $ pip install geocli
```
## Manual
```bash
  $ git clone https://github.com/expandaventures/geocoding-cli
  $ cd geocoding-cli
  $ python setup.py install
```
# Usage
```bash
$ geocli
```
## Geocode a single address
`Usage: geocli geocode [OPTIONS] ADDRESS [STATE] [CITY]`
```bash
$ geocli geocode --dry_run 'Av. Reforma 222' cdmx mexico
```
## Batch: geocode a addresses in a file

`Usage: geocli batch [OPTIONS] INPUT_FILE OUTPUT_PATH`
```bash
$ 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])



