Coordinates class Core

Coordinates class

Constructors

Coordinates({double latitude = 2147483647, double longitude = 2147483647, double? altitude = 0, double? horizontalaccuracy = 0, double? verticalaccuracy = 0, int? sceneobject = 0})
Create a coordinates object from latitude, longitude and altitude.
Coordinates.fromJson(Map<String, dynamic> json)
factory
Coordinates.fromLatLong(double latitude, double longitude, [double? altitude = 0])
Create a coordinates object from latitude, longitude and optional altitude.

Properties

altitude double?
Altitude in meters.
getter/setter pair
copy Coordinates
Create a new coordinates object with the same proprieties as the original.
no setter
hashCode int
The hash code for this object.
no setteroverride
horizontalaccuracy double?
Horizontal accuracy of the location in meters.
getter/setter pair
isValid bool
Checks if the coordinates are valid
no setter
latitude double
Latitude in degrees. Valid values -90.0 .. +90.00.
getter/setter pair
longitude double
Longitude in degrees. Valid values -180.0 .. +180.00.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sceneobject int?
Parent scene object to which coordinates belongs.
getter/setter pair
verticalaccuracy double?
Vertical accuracy of the location in meters.
getter/setter pair

Methods

copyWithMetersOffset({required int metersLatitude, required int metersLongitude}) Coordinates
Creates a new coordinates object with the given meters offset
distance(Coordinates other) double
Calculate the distance in meters between two WGS84 coordinates.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(covariant Coordinates other) bool
The equality operator.
override