Where is here?
🌏 Promisified Geolocation
Get current geolocation by Geolocation API as Promise.
Installation
Via Bower:
bower install wheres-here
Via NPM:
npm install wheres-here
Or Yarn:
yarn add wheres-here
Usage
You can bundle wheres-here
with webpack for using in browser.
const here = ; ;
Or directly import to your webpage.
You can use unpkg CDN:
https://unpkg.com/wheres-here
Document
API
here([options])
options
Type: PositionOptions
Return: Promise
Options for Geolocation.getCurrentPosition()