public FlightPlanWaypoint ToData()
        {
            var waypoint = new FlightPlanWaypoint
            {
                Id     = id,
                Airway = ATCAirway,
                Type   = ATCWaypointType,
                ICAO   = ICAO?.ToData()
            };

            (waypoint.Latitude, waypoint.Longitude, waypoint.Altitude) = GpsHelper.ConvertString(WorldPosition);
            return(waypoint);
        }
        public FlightPlanData ToData()
        {
            var data = new FlightPlanData
            {
                Title            = Title,
                Type             = FPType,
                RouteType        = RouteType,
                CruisingAltitude = (int)CruisingAlt,
                Description      = Descr,
                Departure        = new FlightPlanPosition
                {
                    ID   = DepartureID,
                    Name = DepartureName
                },
                Destination = new FlightPlanPosition
                {
                    ID   = DestinationID,
                    Name = DestinationName
                },
                Waypoints = ATCWaypoint?.Select(o => o.ToData())
            };

            (data.Departure.Latitude, data.Departure.Longitude, data.Departure.Altitude)       = GpsHelper.ConvertString(DepartureLLA);
            (data.Destination.Latitude, data.Destination.Longitude, data.Destination.Altitude) = GpsHelper.ConvertString(DestinationLLA);

            return(data);
        }