@geocoder-free/google
v0.2.9-alpha.0
Published
get latitude and longitude by address without using google map api
Downloads
171
Maintainers
Readme
@geocoder-free/google
Description
Get latitude&longitude from google map without using any API.
Installation
Install the package in your project directory with:
// with npm
npm install @geocoder-free/google
// with yarn
yarn add @geocoder-free/google
Usage
Get latlng by address
const { GetLatLngByAddress } = require('@geocoder-free/google'); GetLatLngByAddress('tokyo tower').then(console.log); // print [35.6585769, 139.7454506]
Get latlng by goo.gl(google map shorten url)
const { GetLatLngByGooGl } = require('@geocoder-free/google'); GetLatLngByGooGl('https://goo.gl/maps/TmYFq1DdceHVpsHV6').then(console.log); // print [35.6585769, 139.7454506]
License
This project is licensed under the terms of the MIT license.