0.0.13 • Published 10 years ago

search-google-geocode v0.0.13

Weekly downloads
11
License
ISC
Repository
github
Last release
10 years ago

##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

// initialize geocoder instance
var geocoder = require('search-google-geocode');

// request parameters
const ADDRESS = 'Kyiv, Khreshchatyk';
const LATITUDE = '50.45';
const LONGITUDE = '30.523';
const LANGUAGE = 'en';

// you can use Google options to manage result format
var options = {
  language: LANGUAGE
};

// use callback to return result from geocoding process
function callback (error, result) {
  if (error) console.log(error); // on error
  else console.log(result); // on success
}

// address geocoding
geocoder.geocode(ADDRESS, callback, options);
// reverse geocoding
geocoder.reverseGeocode(LATITUDE, LONGITUDE, callback, options);
0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.333

10 years ago

0.0.1

10 years ago