Geo location utility
npm install @the-/geo@the-/geo
==========
[![npm Version][bd_npm_shield_url]][bd_npm_url]
[bd_repo_url]: https://github.com/the-labo/the
[bd_npm_url]: http://www.npmjs.org/package/@the-/geo
[bd_npm_shield_url]: http://img.shields.io/npm/v/@the-/geo.svg?style=flat
Geo location utility
Installation
-----
``bash`
$ npm install @the-/geo --save
Usage
---------
`javascript
'use strict'
const { TheGeo } = require('@the-/geo')
async function tryExample() {
const geo = new TheGeo()
const { lat, lng } = await geo.detect()
console.log('current geo location', { lat, lng })
}
tryExample().catch((err) => console.error(err))
``
- module:@the-/geo
- .create(args)
- .default()
- .TheGeo
- TheGeo
- #detect(options)
- #watch(callback,options)
See API Guide for more detail
License
-------
This software is released under the MIT License.
Links
------
+ [THE Labo][the_labo_url]
[the_labo_url]: https://github.com/the-labo