diff --git a/src/blackmisc/aviation/airport.cpp b/src/blackmisc/aviation/airport.cpp index e6d5b2b8b..4415f6d90 100644 --- a/src/blackmisc/aviation/airport.cpp +++ b/src/blackmisc/aviation/airport.cpp @@ -61,8 +61,11 @@ namespace BlackMisc { CAirport airport(json.value(prefix + "icao").toString()); airport.setDescriptiveName(json.value(prefix + "name").toString()); - airport.setElevation(CAltitude(json.value(prefix + "altitude").toInt(), CLengthUnit::ft())); - const CCoordinateGeodetic pos(json.value(prefix + "latitude").toDouble(), json.value(prefix + "longitude").toDouble(), 0); + const CCoordinateGeodetic pos( + json.value(prefix + "latitude").toDouble(), + json.value(prefix + "longitude").toDouble(), + json.value(prefix + "altitude").toDouble() + ); airport.setPosition(pos); airport.setOperating(json.value(prefix + "operating").toString() == QStringLiteral("Y"));