GeoCoordinates.withAltitude constructor - GeoCoordinates - core library - Dart API
GeoCoordinates.withAltitude
GeoCoordinates.withAltitude constructor
- double latitude,
- double longitude,
- double altitude
Constructs a GeoCoordinates from the provided latitude, longitude and altitude values.
Corrects values of lat and long if they exceed the ranges.
-
latitudeLatitude 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 0.0. -
longitudeLongitude 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 0.0. -
altitudeAltitude in meters. NaN value is converted tonull.
Implementation
factory GeoCoordinates.withAltitude(double latitude, double longitude, double altitude) => $prototype.withAltitude(latitude, longitude, altitude);