updated-geolocation
v0.0.6
Published
Get a updated geolocation, without caches, only for android
Downloads
4
Readme
updated-geolocation
Get a updated geolocation, without caches
Install
npm install updated-geolocation
npx cap sync
API
getCurrentLocation()
getCurrentLocation() => Promise<Position>
Returns: Promise<Position>
Interfaces
Position
| Prop | Type | Description | Since |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ----- |
| timestamp
| number | Creation timestamp for coords | 1.0.0 |
| coords
| { latitude: number; longitude: number; accuracy: number; altitudeAccuracy: number | null; altitude: number | null; speed: number | null; heading: number | null; } | The GPS coordinates along with the accuracy of the data | 1.0.0 |