node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป

argo-geo

Argo

Rapid reverse-geocoding using Mapzen Search

argo

Installation

npm install argo-geo -g

Usage

argo -i <input filename> -a <mapzen search key> -o <output filename>

Arguments

  • -i, --input (REQUIRED) Input filename and path (e.g. '/home/ubuntu/inputfile.csv')
  • -a, --auth (REQUIRED) Mapzen authorization token. Get one here.
  • -o, --output (OPTIONAL) Output filename and path if desired. Default is the input filename with 'out_' prepended.
  • -r, --rate (OPTIONAL) Number of requests per second (default = 6)
  • -n, --latitudefield (OPTIONAL) Name of column containing latitude coordinates (default = 'latitude')
  • -w, --longitudefield (OPTIONAL) Name of column containing longitude coordinates (default = 'longitude')
  • -p, --pois (OPTIONAL) Include POI results from Who's on first instead of just addresses (default = false)

Notes

  • Expects input columns latitude and longitude - if this is not the case, use -n and -w to specify coordinate column names.
  • Defaults to openaddresses and openstreetmap results only, unless the p flag is set
  • Defaults to addresses, excluding POIs (schools, parks, etc), unless the -p flag is set
  • Appends Mapzen response fields housenumber, name, locality, postalcode, region_a, confidence, distance, source, and layer - from the top two results - to the input file schema

License

MIT