GCoords
A tiny NPM module for looking up coordinates from an address. Relies on the Google Maps web API. You will need to get a key here. The only dependency is the native https module for making the request.
Usage
Import it into your project:
const gcoords = ;
Initialize with an API key:
gcoords;
Lookup location's coordinates:
gcoords;
Lookup coordinates' address:
gcoords;
Both functions support a second parameter - the data format. If left blank, the default is json. Some examples:
gcoords; gcoords; gcoords;
Roadmap
- JSON support
- XML support
- Coordinates to location
- Error handling/address cleanup/validation
- Multiple results
- Clean up the code
- Promises
- Push to NPM