isomorphic-location
Get your current location in Node & Browser, using location
in Node and browser-location
in the browser.
Installing
npm install isomorphic-location
Usage
const location =
This will give you something similar to the following:
latitude: 52547172 longitude: 13347745 precision: 65 // in meters native: true
API
timeout
is in milliseconds, optional and 10 * 1000
by default. cb(err, loc)
follows the Node callback convention.
Contributing
If you have a question, found a bug or want to propose a feature, have a look at the issues page.