Airport

public struct Airport : Codable, Equatable

Represents information about an airport

  • IATA code

    Declaration

    Swift

    public let code: String
  • Airport name

    Declaration

    Swift

    public let name: String
  • City

    Declaration

    Swift

    public let city: String
  • Country

    Declaration

    Swift

    public let country: String
  • Country code

    Declaration

    Swift

    public let countryCode: String
  • Timezone

    Declaration

    Swift

    public let timeZone: TimeZone
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public init(from decoder: Decoder) throws