Type Alias: RNLocation
type RNLocation = {
accuracy: number;
altitude: number;
android?: RNLocationAndroid;
bearing: number;
center: RNLatLng;
ios?: RNLocationIOS;
speed: number;
time: number;
};
Location object.
Properties
| Property | Type | Description |
|---|---|---|
accuracy | number | Accuracy in meters. |
altitude | number | Altitude in meters. |
android? | RNLocationAndroid | Android-only location fields. See RNLocationAndroid. |
bearing | number | Bearing in degrees, -1 when unknown. |
center | RNLatLng | Center coordinate. See RNLatLng. |
ios? | RNLocationIOS | iOS-only location fields. See RNLocationIOS. |
speed | number | Speed in meters per second, -1 when unknown. |
time | number | Timestamp in milliseconds since Unix epoch. |