##search-google-geocoder
General
Node.js module for geocoding and reverse geocoding.
Uses service Google geocoding API.
Geocoding is the process of matching address with geographic coordinates.
Reverse Geocoding is the process of matching geographic coordinates with address.
Address geocoding Provide an address or location and receive potential Google geocodes.
Reverse geocoding Provide latitude and longitude coordinates and receive the known address information for that location.
Output format like JSON.
Usage Limits.
Installation
npm install search-google-geocode [-S]
Usage example
var geocoder = require('search-google-geocode');
const ADDRESS = 'Kyiv, Khreshchatyk';
const LATITUDE = '50.45';
const LONGITUDE = '30.523';
const LANGUAGE = 'en';
var options = {
language: LANGUAGE
};
function callback (error, result) {
if (error) console.log(error);
else console.log(result);
}
geocoder.geocode(ADDRESS, callback, options);
geocoder.reverseGeocode(LATITUDE, LONGITUDE, callback, options);