0.1.0 • Published 5 years ago

geocoder-free v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

npm version dependencies Status devDependencies Status CircleCI codecov

Description

Get latitude&longitude from google map without using any API.

Install

 yarn add geocoder-free

Usage

  1. Get latlng by address

    const { GetLatLngByAddress } = require('geocoder-free');
    
    GetLatLngByAddress('tokyo tower').then(console.log);
    // print [35.6585769, 139.7454506]
  2. Get latlng by goo.gl(google map shorten url)

    const { GetLatLngByGooGl } = require('geocoder-free');
    
    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.