0.0.7 • Published 8 years ago

latlng-address v0.0.7

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

latlng-address

this library is wrapper to call reverse geocoding function in the Google Maps API from node.js

Purpose

get address with latitude / longitude by reverse geocoding.

Parameter

fielddata typenecessitydescription
latitudedoublerequiredlatitude data
longitudedoublerequiredlongitude data
optionobjectoptionalabout the detail, check below.

Optional parameter

optional parameter is set in the option argument.

Sample Code

About the key data, please register map api servie.
https://developers.google.com/maps/documentation/javascript/examples/geocoding-reverse?hl=ja

const LatLngAdr = require('latlng-address');

const config = {
  key: {YOUR KEY},
  stagger_time: 1000,
  encode_polylines: false,
  secure: true
};

const lla = new LatLngAdr(config);

lla.getAddress(40.782906, -73.965433)
.then((address) => {
  console.log(address);
});
0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago