bgeo
Get geo positions on browser
Installation
$ npm install bgeo --save
Usage
'use strict'
const { current } = require('bgeo')
const co = require('co')
co(function * () {
let position = yield current()
if (position) {
let { coords } = position
console.log('coords:', coords)
}
}).catch((err) => console.error(err))
Functions
Available functions
Signature | Description |
---|---|
current() -> Promise |
Get current geo data |
License
This software is released under the MIT License.