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.
Installation
npm install search-google-geocode [-S]
Usage example
// initialize geocoder instancevar geocoder = ; // request parametersconst ADDRESS = 'Kyiv, Khreshchatyk';const LATITUDE = '50.45';const LONGITUDE = '30.523';const LANGUAGE = 'en'; // you can use Google options to manage result formatvar options = language: LANGUAGE; // use callback to return result from geocoding process { if error console; // on error else console; // on success} // address geocodinggeocoder;// reverse geocodinggeocoder;