0.0.6 • Published 11 months ago
updated-geolocation v0.0.6
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 |
0.0.6
11 months ago