1.0.1 • Published 8 years ago
google-maps-geocoder v1.0.1
google-maps-geocoder
A light-weight wrapper for client-side google maps geocode lookups using promises rather than callbacks.
Features
- Promise-based API calls instead of callbacks.
- Supports reversing latitude/longitude into a plain-text location (usually an address).
Installing
Using npm:
$ npm install google-maps-geocoder
Usage
import googleMapsGeocoder from 'google-maps-geocoder';
const geocoder = googleMapsGeocoder('your-api-key-here');
geocoder.reverseGeocode(latitude, longitude).then((where) => console.log(where));
Contributing
File an issue or submit a pull-request. Before submitting any pull-requests please ensure you've built the project and run the tests.
To build the project
webpack
Running the tests
karma start
Contribute a change by submitted a pull-request
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
MIT