google-geocoding

Small Node module to use Google Geocoding API.

npm install google-geocoding
1 downloads in the last week
31 downloads in the last month

´╗┐google-geocoding

This module allows you tu 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);
    }
});
npm loves you