geocoder-free

get gps by address without using google map api

Usage no npm install needed!

<script type="module">
  import geocoderFree from 'https://cdn.skypack.dev/geocoder-free';
</script>

README

geocoder-free

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.