Coordinates class Geographic

Represents a geographic position in the WGS‑84 coordinate system.

This value object is used across the SDK wherever a point on the globe is required (for example: Landmark, Marker, OverlayItem). It stores latitude, longitude and optional altitude.

Constructors

Coordinates({double latitude = 2147483647, double longitude = 2147483647, double? altitude = 0, int? sceneobject = 0})
Creates a Coordinates instance with explicit latitude, longitude and optional altitude.
Coordinates.fromLatLong(double latitude, double longitude, [double? altitude = 0])
Creates a Coordinates instance from latitude and longitude.

Properties

altitude ↔ double?
Altitude in meters.
getter/setter pair
copy → Coordinates
Returns a copy of this Coordinates instance.
no setter
hashCode → int
The hash code for this object.
no setteroverride
isValid → bool
Indicates whether the coordinate contains valid latitude and longitude values.
no setter
latitude ↔ double
Latitude in degrees.
getter/setter pair
longitude ↔ double
Longitude in degrees.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sceneobject ↔ int?
Optional parent scene object id.
getter/setter pair

Methods

azimuth(Coordinates target) → double
Calculates the azimuth (bearing) from this coordinate to target.
copyWithMetersOffset({required int metersLatitude, required int metersLongitude}) → Coordinates
Returns a new Coordinates translated by the specified offsets in meters.
distance(Coordinates other, {bool ignoreAltitude = false}) → double
Calculates the distance in meters between this coordinate and other.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Resets this instance to the internal default (uninitialized) values.
toString() → String
A string representation of this object.
override

Operators

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