geocoder-cli
v0.0.2
Published
A CLI to get latitude and longitude from an address. Generated by Gemini in Antigravity
Downloads
12
Readme
Geocoder CLI
A simple command-line utility that converts a mailing address to Latitude and Longitude values using the Google Cloud Map APIs.
Generated by Google Gemini in Antigravity
Installation
Install the CLI by opening a command prompt or terminal window and executing the following command:
npm install -g geocoder-cliConfiguration
Login to the Google Cloud console, enable the Maps API, then create a Maps API Key.
Once you have the Google Maps API key, create a local environment variable on your system called GEOCODER_API_KEY and set its value to the API key.
Usage
To determine the latitude and longitude values for a mailing address, open a terminal window or command prompt and execute the following command:
geocoder "<mailing_address>" substituting an actual mailing address for the <mailing_address> shown in the example.
For example:
geocoder "1 South Main Street, Akron, OH 44308" The cli will display the following results in the terminal window:
┌──────────────────┐
│ │
│ Geocoder CLI │
│ │
└──────────────────┘
Address: 1 S Main St, Akron, OH 44308, USA
latitude: 41.08479579999999
longitude: -81.5165767