LocationData class
Location data class.
位置情報のデータクラス。
- Annotations
Constructors
- LocationData({required double longitude, required double latitude, required DateTime? timestamp, double? accuracy, double? altitude, double? heading, double? speed, double? speedAccuracy})
-
const
- LocationData.fromJson(DynamicMap json)
-
Location data class.
factory
Properties
- accuracy → double?
-
The estimated horizontal accuracy of the position in meters.
final
- altitude → double?
-
The altitude of the device in meters.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- heading → double?
-
The heading in which the device is traveling in degrees.
final
- latitude → double
-
The latitude of this position in degrees normalized to the interval -90.0
to +90.0 (both inclusive).
final
- longitude → double
-
The longitude of the position in degrees normalized to the interval -180
(exclusive) to +180 (inclusive).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speed → double?
-
The speed at which the devices is traveling in meters per second over
ground.
final
- speedAccuracy → double?
-
The estimated speed accuracy of this position, in meters per second.
final
- timestamp → DateTime?
-
The time at which this position was determined.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toGeoValue(
{double radiusKm = 1.0}) → GeoValue -
Converts from internal location information to
GeoValue
. -
toJson(
) → DynamicMap - Convert LocationData to a Json map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override