coordinates2address

1.0.0 • Public • Published

coordinates2address

Turn coordinates easily to street address with google maps api

Installation

npm i --save coordinates2address

How to use

Options

  • address: true will return single address
  • address: false will return array of addresses
  const { getLocation } = require('coordinates2address')


 
  // google maps apikey
  const apiKey = '*********';
  
  getLocation(40.730610, -73.935242, {apiKey, address: true})
  
  .then((response) => {
  
     // This will return 38-40 Railroad Ave, Long Island City, NY 11101, USA
    console.log(response)

  });

Package Sidebar

Install

npm i coordinates2address

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

2.93 kB

Total Files

4

Last publish

Collaborators

  • thegoffy