google-geocoding

0.1.7 • Public • Published

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);
    }
});

/google-geocoding/

    Package Sidebar

    Install

    npm i google-geocoding

    Weekly Downloads

    58

    Version

    0.1.7

    License

    none

    Last publish

    Collaborators

    • scastiel