@geocoder-free/google
TypeScript icon, indicating that this package has built-in type declarations

0.2.9-alpha.0 • Public • Published

@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

  1. Get latlng by address

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

Package Sidebar

Install

npm i @geocoder-free/google

Weekly Downloads

5

Version

0.2.9-alpha.0

License

MIT

Unpacked Size

24 kB

Total Files

36

Last publish

Collaborators

  • thundermiracle