1.0.0 • Published 7 years ago

find-lat-lng-cli v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

find-lat-lng-cli Build Status

Find latitudes and longitudes for an array of addresses

Finds latitudes and longitudes for an array of addresses via Google Maps GeoCoding API

Install

$ npm install --global find-lat-lng-cli

Usage

$ find-lat-lng --help

  Usage
    $ find-lan-lng input [output]

    Options
      --debug, -d  Add debug information

  Example
    $ find-lan-lng input.json
    [
      { address: 'Lonnrotinkatu 5, Helsinki', lat: 60.166924, lng: 24.939788},
      { address: 'Lonnrotinkatu 4, Helsinki', lat: 60.167142, lng: 24.940959},
      ...
    ]

Your input file should be a list of addresses:

[
  "Lonnrotinkatu 4, Helsinki",
  "Lonnrotinkatu 5, Helsinki",
]

If output file was provided, it will contain an array of objects with

Options

-d, --verbose

Verbose output to see errors if you need to troubleshoot.

Related

License

MIT © Pete Nykänen