Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imyelo/geo-position
get coords of geo-position from browser, compatible with QQ-Browser (mobile)
https://github.com/imyelo/geo-position
coords geo-position geolocation qq-browser
Last synced: about 2 months ago
JSON representation
get coords of geo-position from browser, compatible with QQ-Browser (mobile)
- Host: GitHub
- URL: https://github.com/imyelo/geo-position
- Owner: imyelo
- Created: 2016-05-12T07:39:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-24T09:35:49.000Z (over 8 years ago)
- Last Synced: 2024-04-25T12:44:02.952Z (9 months ago)
- Topics: coords, geo-position, geolocation, qq-browser
- Language: JavaScript
- Size: 46.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @yelo/geo-position
> get coords of geo-position from browser, compatible with QQ-Browser (mobile)## Install
```
npm i --save @yelo/geo-position
```## Usage
```
var position = require('@yelo/geo-position');position().then(function (coords) {
console.log(coords);
}, function (err) {
console.error(err);
});
```## API
### position([options])
get coords of geo-position, will return a Promise
```
position({
maximumAge: 10 * 60 * 1000,
timeout: 30 * 1000
}).then(function (coords) {
console.log(coords);
}, function (err) {
console.error(err);
}));
```## Example
[https://imyelo.github.io/geo-position/](https://imyelo.github.io/geo-position/)## License
THe MIT License