LocationData class
The response object of LocationPlatform.getLocation and LocationPlatform.onLocationChanged.
Constructors
- LocationData({double? latitude, double? longitude, double? accuracy, double? altitude, double? bearing, double? bearingAccuracyDegrees, double? elaspedRealTimeNanos, double? elaspedRealTimeUncertaintyNanos, int? satellites, double? speed, double? speedAccuracy, double? time, double? verticalAccuracy, bool? isMock})
- The response object of LocationPlatform.getLocation and LocationPlatform.onLocationChanged.
- LocationData.fromPigeon(PigeonLocationData pigeonData)
-
Constructor from a Pigeon LocationData.
factory
Properties
- accuracy → double?
-
Estimated horizontal accuracy of this location, radial, in meters
final
- altitude → double?
-
In meters above the WGS 84 reference ellipsoid. Derived from GPS informations.
final
- bearing → double?
-
Bearing is the horizontal direction of travel of this device, in degrees
final
- bearingAccuracyDegrees → double?
-
Get the estimated bearing accuracy of this location, in degrees.
Only available on Android
https://developer.android.com/reference/android/location/Location#getBearingAccuracyDegrees()
final
- elaspedRealTimeNanos → double?
-
Return the time of this fix, in elapsed real-time since system boot.
Only available on Android
https://developer.android.com/reference/android/location/Location#getElapsedRealtimeNanos()
final
- elaspedRealTimeUncertaintyNanos → double?
-
Get estimate of the relative precision of the alignment of the ElapsedRealtimeNanos timestamp.
Only available on Android
https://developer.android.com/reference/android/location/Location#getElapsedRealtimeUncertaintyNanos()
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMock → bool?
-
Is the location currently mocked
final
- latitude → double?
-
Latitude in degrees
final
- longitude → double?
-
Longitude, in degrees
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- satellites → int?
-
The number of satellites used to derive the fix.
Only available on Android
https://developer.android.com/reference/android/location/Location#getExtras()
final
- speed → double?
-
In meters/second
final
- speedAccuracy → double?
-
In meters/second
final
- time → double?
-
timestamp of the LocationData
final
- verticalAccuracy → double?
-
Estimated vertical accuracy of this location, in meters.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited