Coords constructor
Coords(
- dynamic coords
Implementation
Coords(dynamic coords) {
this.latitude = coords['latitude'] * 1.0;
this.longitude = coords['longitude'] * 1.0;
this.accuracy = coords['accuracy'] * 1.0;
this.altitude = coords['altitude'] * 1.0;
this.ellipsoidalAltitude = coords['ellipsoidal_altitude'] * 1.0;
this.heading = coords['heading'] * 1.0;
if (coords['heading_accuracy'] != null) {
this.headingAccuracy = coords['heading_accuracy'] * 1.0;
}
this.speed = coords['speed'] * 1.0;
if (coords['speed_accuracy'] != null) {
this.speedAccuracy = coords['speed_accuracy'] * 1.0;
}
if (coords['altitude_accuracy'] != null) {
this.altitudeAccuracy = coords['altitude_accuracy'] * 1.0;
}
this.floor = coords['floor'];
}