0.1.1 • Published 6 years ago

google-geocoding-cheka v0.1.1

Weekly downloads
4
License
-
Repository
-
Last release
6 years ago

google-geocoding

This module allows you to use Google geocoding API to get the coordinates of a specific location.

Installation


npm install google-geocoding

Example


var google_geocoding = require('google-geocoding');
google_geocoding.geocode('Place de Bretagne, Rennes, France', function(err, location) {
    if( err ) {
        console.log('Error: ' + err);
    } else if( !location ) {
        console.log('No result.');
    } else {
        console.log('Latitude: ' +location.lat + ' ; Longitude: ' +location.lng);
    }
});