GeoCoordinatesUpdate.withAltitude constructor

GeoCoordinatesUpdate.withAltitude(
  1. double? latitude,
  2. double? longitude,
  3. double? altitude
)

Constructs a GeoCoordinatesUpdate from the provided latitude, longitude and alt values.

Corrects values of latitude and longitude if they exceed the ranges.

  • latitude Latitude in degrees. Positive value means Northern hemisphere. If the value is out of range of [-90.0, 90.0] it's clamped to that range. NaN value is converted to null.

  • longitude Longitude in degrees. Positive value means Eastern hemisphere. If the value is out of range of [-180.0, 180.0] it's replaced with a value within the range, representing effectively the same meridian. NaN value is converted to null.

  • altitude Altitude in meters. NaN value is converted to null.

Implementation

factory GeoCoordinatesUpdate.withAltitude(double? latitude, double? longitude, double? altitude) => $prototype.withAltitude(latitude, longitude, altitude);