Skip to main content

Type Alias: RNLocation

type RNLocation = {
accuracy: number;
altitude: number;
android?: RNLocationAndroid;
bearing: number;
center: RNLatLng;
ios?: RNLocationIOS;
speed: number;
time: number;
};

Location object.

Properties​

PropertyTypeDescription
accuracynumberAccuracy in meters.
altitudenumberAltitude in meters.
android?RNLocationAndroidAndroid-only location fields. See RNLocationAndroid.
bearingnumberBearing in degrees, -1 when unknown.
centerRNLatLngCenter coordinate. See RNLatLng.
ios?RNLocationIOSiOS-only location fields. See RNLocationIOS.
speednumberSpeed in meters per second, -1 when unknown.
timenumberTimestamp in milliseconds since Unix epoch.