Socket
Socket
Sign inDemoInstall

latlng-address

Package Overview
Dependencies
50
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    latlng-address

get address info with latitude / longitude by google map api


Version published
Weekly downloads
12
decreased by-40%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

  • language
    • 'en' / 'ja' etc.
    • use Subtag data in the following link
    • http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry

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

Keywords

FAQs

Last updated on 25 Oct 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc