https://github.com/useallfive/current-location
JavaScript helper for getting current location in browser and dealing with the response.
https://github.com/useallfive/current-location
Last synced: 12 months ago
JSON representation
JavaScript helper for getting current location in browser and dealing with the response.
- Host: GitHub
- URL: https://github.com/useallfive/current-location
- Owner: UseAllFive
- Created: 2013-10-31T17:27:49.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-10-31T19:48:56.000Z (over 12 years ago)
- Last Synced: 2025-03-27T20:43:17.133Z (about 1 year ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Documentation
## Example usage
```javascript
window.currentLocation.init({
"success": function(position) {
//-- Do something with position object
}
});
```
## Options
| Option | Type | Arguments | Default |
|--------------------|---------------|------------|-------------------------|
| success | function | position | log position in console |
| error | function | err | log error in console |
| enableHighAccuracy | boolean | | false |
| timeout | number | | Infinity |
| maximumAge | number | | 0 |