AeroDataBox Miscellaneous API API

The Miscellaneous API API from AeroDataBox — 4 operation(s) for miscellaneous api.

Operations 4

GET /airports/{codeType}/{code}/time/local AeroDataBox Current Local Time at the Airport / TIER 1 #
GET /airports/{codeType}/{code}/time/solar AeroDataBox Solar and Day Time at the Airport / TIER 1 #
GET /airports/{codeType}/{code}/time/solar/{dateLocal} AeroDataBox Solar and Day Time at the Airport / TIER 1 #
GET /airports/{codeType}/{codeFrom}/distance-time/{codeTo} AeroDataBox Distance and Flight Time Between Airports / TIER 2 #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/aerodatabox-miscellaneous-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

aerodatabox-miscellaneous-api-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AeroDataBox API - Aviation and Flight Aircraft Miscellaneous Miscellaneous API
  description: Affordable aviation & flight data API tailored for small and medium businesses, teams and individual developers.
  termsOfService: https://aerodatabox.com/terms/
  contact:
    url: https://aerodatabox.com/contact/
  version: 1.14.0.0
servers:
- url: https://prod.api.market/api/v1/aedbx/aerodatabox
security: {}
tags:
- name: Miscellaneous API
paths:
  /airports/{codeType}/{code}/time/local:
    parameters:
    - description: API.market API Key
      in: header
      name: x-api-market-key
      value: Please Login/Signup to get an API Key
      required: true
      schema:
        type: string
    get:
      tags:
      - Miscellaneous API
      summary: AeroDataBox Current Local Time at the Airport / TIER 1
      description: '**What is the current local time at the airport?**


        At the moment airports having both ICAO and IATA code are present in database only.


        *Returns:* Local time at the airport, if airport is found.'
      operationId: GetAirportLocalTime
      parameters:
      - name: codeType
        in: path
        description: Type of code to search airport by (`iata` or `icao`)
        schema:
          $ref: '#/components/schemas/AirportCodesByEnum'
      - name: code
        in: path
        description: 'If `codeType` is:

          * `icao`, then this field must be a 4-character ICAO-code of the airport (e.g.: EHAM, KLAX, UUEE, etc.);

          * `iata`, then this field must be a 3-character IATA-code of the airport (e.g.: AMS, SFO, LAX, etc.).


          Full, stripped and any case formats are acceptable.'
        required: true
        schema:
          maxLength: 4
          minLength: 3
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AirportLocalTimeContract'
              examples:
                GetAirportLocalTime200Example:
                  summary: Default GetAirportLocalTime 200 response
                  x-microcks-default: true
                  value:
                    time: example_value
                    timeZoneId: abc123
            application/xml:
              schema:
                $ref: '#/components/schemas/AirportLocalTimeContract'
        '204':
          description: No Content
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
              examples:
                GetAirportLocalTime400Example:
                  summary: Default GetAirportLocalTime 400 response
                  x-microcks-default: true
                  value:
                    message: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
              examples:
                GetAirportLocalTime401Example:
                  summary: Default GetAirportLocalTime 401 response
                  x-microcks-default: true
                  value:
                    message: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '451':
          description: Unavailable For Legal Reasons
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
              examples:
                GetAirportLocalTime451Example:
                  summary: Default GetAirportLocalTime 451 response
                  x-microcks-default: true
                  value:
                    message: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
              examples:
                GetAirportLocalTime500Example:
                  summary: Default GetAirportLocalTime 500 response
                  x-microcks-default: true
                  value:
                    message: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '503':
          description: Service Unavailable
      x-badges:
      - name: TIER 1
        position: before
        color: '#beffe6'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /airports/{codeType}/{code}/time/solar:
    parameters:
    - description: API.market API Key
      in: header
      name: x-api-market-key
      value: Please Login/Signup to get an API Key
      required: true
      schema:
        type: string
    get:
      tags:
      - Miscellaneous API
      summary: AeroDataBox Solar and Day Time at the Airport / TIER 1
      description: "**What is the sun position in the sky now at a specific time at the airport?** or\n**When does the sun rise and set at the airport today or on the other day at the airport?** or\n**Is it dark now or is it day at the airport?**\n\nAt the moment airports having both ICAO and IATA code are present in database only.\n\n*Returns:* If airport is found, returns various solar-related information: sun position in the sky,\ndaytime (day, night, twilight: civil, nautical, astronomical, golden/blue hours), \nsunrise and sunset times, etc."
      operationId: GetAirportSolarTime_SolarTimeCurrent
      parameters:
      - name: codeType
        in: path
        description: Type of code to search airport by (`iata` or `icao`)
        schema:
          $ref: '#/components/schemas/AirportCodesByEnum'
      - name: code
        in: path
        description: 'If `codeType` is:

          * `icao`, then this field must be a 4-character ICAO-code of the airport (e.g.: EHAM, KLAX, UUEE, etc.);

          * `iata`, then this field must be a 3-character IATA-code of the airport (e.g.: AMS, SFO, LAX, etc.).


          Full, stripped and any case formats are acceptable.'
        required: true
        schema:
          maxLength: 4
          minLength: 3
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SolarStateContract'
              examples:
                GetAirportSolarTime_SolarTimeCurrent200Example:
                  summary: Default GetAirportSolarTime_SolarTimeCurrent 200 response
                  x-microcks-default: true
                  value:
                    location: example_value
                    sunElevation: example_value
                    sunAzimuth: example_value
                    dayTime:
                    - example_value
                    dawnAstronomical: example_value
                    dawnNautical: example_value
                    dawnCivil: example_value
                    sunrise: example_value
                    noonTrue: example_value
                    sunset: example_value
                    duskCivil: example_value
                    duskNautical: example_value
                    duskAstronomical: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/SolarStateContract'
        '204':
          description: No Content
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
              examples:
                GetAirportSolarTime_SolarTimeCurrent400Example:
                  summary: Default GetAirportSolarTime_SolarTimeCurrent 400 response
                  x-microcks-default: true
                  value:
                    message: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
              examples:
                GetAirportSolarTime_SolarTimeCurrent401Example:
                  summary: Default GetAirportSolarTime_SolarTimeCurrent 401 response
                  x-microcks-default: true
                  value:
                    message: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '451':
          description: Unavailable For Legal Reasons
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
              examples:
                GetAirportSolarTime_SolarTimeCurrent451Example:
                  summary: Default GetAirportSolarTime_SolarTimeCurrent 451 response
                  x-microcks-default: true
                  value:
                    message: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
              examples:
                GetAirportSolarTime_SolarTimeCurrent500Example:
                  summary: Default GetAirportSolarTime_SolarTimeCurrent 500 response
                  x-microcks-default: true
                  value:
                    message: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '503':
          description: Service Unavailable
      x-badges:
      - name: TIER 1
        position: before
        color: '#beffe6'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /airports/{codeType}/{code}/time/solar/{dateLocal}:
    parameters:
    - description: API.market API Key
      in: header
      name: x-api-market-key
      value: Please Login/Signup to get an API Key
      required: true
      schema:
        type: string
    get:
      tags:
      - Miscellaneous API
      summary: AeroDataBox Solar and Day Time at the Airport / TIER 1
      description: "**What is the sun position in the sky now at a specific time at the airport?** or\n**When does the sun rise and set at the airport today or on the other day at the airport?** or\n**Is it dark now or is it day at the airport?**\n\nAt the moment airports having both ICAO and IATA code are present in database only.\n\n*Returns:* If airport is found, returns various solar-related information: sun position in the sky,\ndaytime (day, night, twilight: civil, nautical, astronomical, golden/blue hours), \nsunrise and sunset times, etc."
      operationId: GetAirportSolarTime_SolarTimeSpecificDate
      parameters:
      - name: codeType
        in: path
        description: Type of code to search airport by (`iata` or `icao`)
        schema:
          $ref: '#/components/schemas/AirportCodesByEnum'
      - name: code
        in: path
        description: 'If `codeType` is:

          * `icao`, then this field must be a 4-character ICAO-code of the airport (e.g.: EHAM, KLAX, UUEE, etc.);

          * `iata`, then this field must be a 3-character IATA-code of the airport (e.g.: AMS, SFO, LAX, etc.).


          Full, stripped and any case formats are acceptable.'
        required: true
        schema:
          maxLength: 4
          minLength: 3
          type: string
      - name: dateLocal
        in: path
        description: "The moment of time which solar data is request for (local time, format: YYYY-MM-DDTHH:mm). \nDefault - current time."
        required: true
        schema:
          pattern: \d{4}-\d{2}-\d{2}(T\d{2}:\d{2})?
          type: string
          format: date-time
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SolarStateContract'
              examples:
                GetAirportSolarTime_SolarTimeSpecificDate200Example:
                  summary: Default GetAirportSolarTime_SolarTimeSpecificDate 200 response
                  x-microcks-default: true
                  value:
                    location: example_value
                    sunElevation: example_value
                    sunAzimuth: example_value
                    dayTime:
                    - example_value
                    dawnAstronomical: example_value
                    dawnNautical: example_value
                    dawnCivil: example_value
                    sunrise: example_value
                    noonTrue: example_value
                    sunset: example_value
                    duskCivil: example_value
                    duskNautical: example_value
                    duskAstronomical: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/SolarStateContract'
        '204':
          description: No Content
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
              examples:
                GetAirportSolarTime_SolarTimeSpecificDate400Example:
                  summary: Default GetAirportSolarTime_SolarTimeSpecificDate 400 response
                  x-microcks-default: true
                  value:
                    message: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
              examples:
                GetAirportSolarTime_SolarTimeSpecificDate401Example:
                  summary: Default GetAirportSolarTime_SolarTimeSpecificDate 401 response
                  x-microcks-default: true
                  value:
                    message: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '451':
          description: Unavailable For Legal Reasons
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
              examples:
                GetAirportSolarTime_SolarTimeSpecificDate451Example:
                  summary: Default GetAirportSolarTime_SolarTimeSpecificDate 451 response
                  x-microcks-default: true
                  value:
                    message: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
              examples:
                GetAirportSolarTime_SolarTimeSpecificDate500Example:
                  summary: Default GetAirportSolarTime_SolarTimeSpecificDate 500 response
                  x-microcks-default: true
                  value:
                    message: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '503':
          description: Service Unavailable
      x-badges:
      - name: TIER 1
        position: before
        color: '#beffe6'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /airports/{codeType}/{codeFrom}/distance-time/{codeTo}:
    parameters:
    - description: API.market API Key
      in: header
      name: x-api-market-key
      value: Please Login/Signup to get an API Key
      required: true
      schema:
        type: string
    get:
      tags:
      - Miscellaneous API
      summary: AeroDataBox Distance and Flight Time Between Airports / TIER 2
      description: "**What is the great circle distance between airports?** \n**What is approximate flight time between airports?**\n** What is the flight time between airports based on history of flights and/or aircraft type?** (machine-learning based)\n\nUse `flightTimeModel` = <a href=\"#model-ModelFlightTimeEnum\">ML01</a> to get more accurate results based on historical performance of flights on a specific route \nand aircraft type.\n\n*Returns:* Distance and approximate flight time between airports, if both airports found."
      operationId: GetAirportDistanceTime
      parameters:
      - name: codeType
        in: path
        description: Type of code to search airport by (`iata` or `icao`)
        schema:
          $ref: '#/components/schemas/AirportCodesByEnum'
      - name: codeFrom
        in: path
        description: 'If `codeType` is:

          * `icao`, then this field must be a 4-character ICAO-code of the origin airport (e.g.: EHAM, KLAX, UUEE, etc.);

          * `iata`, then this field must be a 3-character IATA-code of the origin  airport (e.g.: AMS, SFO, LAX, etc.).


          Full, stripped and any case formats are acceptable.'
        required: true
        schema:
          maxLength: 4
          minLength: 3
          type: string
      - name: codeTo
        in: path
        description: 'If `codeType` is:

          * `icao`, then this field must be a 4-character ICAO-code of the destination airport (e.g.: EHAM, KLAX, UUEE, etc.);

          * `iata`, then this field must be a 3-character IATA-code of the destination  airport (e.g.: AMS, SFO, LAX, etc.);

          * `local`, then the format of this field is subject to specific standards of relevant national or local airport codification systems.


          Full, stripped and any case formats are acceptable.'
        required: true
        schema:
          maxLength: 4
          minLength: 3
          type: string
      - name: aircraftName
        in: query
        description: "Aircraft type name (free text). \nIf specified, the aircraft type will be attempted to be taken into account to provide more accurate result."
        schema:
          type: string
      - name: flightTimeModel
        in: query
        description: 'Model of calculation of the flight time. Default is <a href="#model-ModelFlightTimeEnum"></a>

          More advanced model(s) is available, including machine learning-based models.

          See <a href="#model-ModelFlightTimeEnum">ModelFlightTimeEnum</a> for details.'
        schema:
          $ref: '#/components/schemas/ModelFlightTimeEnum'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AirportDistanceTimeContract'
              examples:
                GetAirportDistanceTime200Example:
                  summary: Default GetAirportDistanceTime 200 response
                  x-microcks-default: true
                  value:
                    from: example_value
                    to: example_value
                    greatCircleDistance: example_value
                    approxFlightTime: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/AirportDistanceTimeContract'
        '204':
          description: No Content
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
              examples:
                GetAirportDistanceTime400Example:
                  summary: Default GetAirportDistanceTime 400 response
                  x-microcks-default: true
                  value:
                    message: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
              examples:
                GetAirportDistanceTime401Example:
                  summary: Default GetAirportDistanceTime 401 response
                  x-microcks-default: true
                  value:
                    message: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '451':
          description: Unavailable For Legal Reasons
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
              examples:
                GetAirportDistanceTime451Example:
                  summary: Default GetAirportDistanceTime 451 response
                  x-microcks-default: true
                  value:
                    message: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorContract'
              examples:
                GetAirportDistanceTime500Example:
                  summary: Default GetAirportDistanceTime 500 response
                  x-microcks-default: true
                  value:
                    message: example_value
            application/xml:
              schema:
                $ref: '#/components/schemas/ErrorContract'
        '503':
          description: Service Unavailable
      x-badges:
      - name: TIER 2
        position: before
        color: '#aab6f8'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    AirportCodesByEnum:
      enum:
      - Icao
      - Iata
      type: string
      description: 'Search by airport code type<p>Possible values:</p>

        <ul>

        <li><b>0 - Icao</b>: ICAO-code</li>

        <li><b>1 - Iata</b>: IATA-code</li>

        </ul>

        '
    Distance:
      required:
      - feet
      - km
      - meter
      - mile
      - nm
      type: object
      properties:
        meter:
          type: number
          description: Distance in meters
          format: double
        km:
          type: number
          description: Distance in kilometers
          format: double
        mile:
          type: number
          description: Distance in statute miles
          format: double
        nm:
          type: number
          description: Distance in nautical miles
          format: double
        feet:
          type: number
          description: Distance in feet
          format: double
      additionalProperties: false
    Azimuth:
      required:
      - deg
      - rad
      type: object
      properties:
        deg:
          maximum: 360
          minimum: 0
          type: number
          description: Angle in degrees (between `0` and `360`)
          format: double
        rad:
          maximum: 6.283185307179586
          minimum: 0
          type: number
          description: Angle in radians (`0` and `2 * Pi`)
          format: double
      additionalProperties: false
    SolarStateContract:
      required:
      - dayTime
      - location
      - sunAzimuth
      - sunElevation
      type: object
      properties:
        location:
          $ref: '#/components/schemas/GeoCoordinatesContract'
        sunElevation:
          $ref: '#/components/schemas/Angle'
        sunAzimuth:
          $ref: '#/components/schemas/Azimuth'
        dayTime:
          type: array
          items:
            $ref: '#/components/schemas/DayTime'
          description: Daytime states
        dawnAstronomical:
          $ref: '#/components/schemas/DateTimeContract'
        dawnNautical:
          $ref: '#/components/schemas/DateTimeContract'
        dawnCivil:
          $ref: '#/components/schemas/DateTimeContract'
        sunrise:
          $ref: '#/components/schemas/DateTimeContract'
        noonTrue:
          $ref: '#/components/schemas/DateTimeContract'
        sunset:
          $ref: '#/components/schemas/DateTimeContract'
        duskCivil:
          $ref: '#/components/schemas/DateTimeContract'
        duskNautical:
          $ref: '#/components/schemas/DateTimeContract'
        duskAstronomical:
          $ref: '#/components/schemas/DateTimeContract'
      additionalProperties: false
      description: Solar information at the moment
    ErrorContract:
      required:
      - message
      type: object
      properties:
        message:
          minLength: 1
          type: string
          description: Error message
      additionalProperties: false
      description: Error response
    GeoCoordinatesContract:
      required:
      - lat
      - lon
      type: object
      properties:
        lat:
          maximum: 90
          minimum: -90
          type: number
          description: Latitude, in degrees
          format: float
        lon:
          maximum: 180
          minimum: -180
          type: number
          description: Longitude, in degrees
          format: float
      additionalProperties: false
      description: Geographical coordinates data
    Angle:
      required:
      - deg
      - rad
      type: object
      properties:
        deg:
          maximum: 180
          minimum: -180
          type: number
          description: Angle in degrees (between `-180` and `180`)
          format: double
        rad:
          maximum: 3.141592653589793
          minimum: -3.141592653589793
          type: number
          description: Angle in radians (between `-Pi` and `Pi`)
          format: double
      additionalProperties: false
    AirportLocalTimeContract:
      required:
      - time
      - timeZoneId
      type: object
      properties:
        time:
          $ref: '#/components/schemas/DateTimeContract'
        timeZoneId:
          minLength: 1
          type: string
          description: Timezone ID of the airport (Olson format)
      additionalProperties: false
      description: Information about the local time at an airport
    DayTime:
      enum:
      - Night
      - TwilightAstronomical
      - TwilightNautical
      - TwilightCivil
      - Day
      - BlueHour
      - GoldenHour
      type: string
      description: 'Daytime states<p>Possible values:</p>

        <ul>

        <li><b>0 - Night</b></li>

        <li><b>1 - TwilightAstronomical</b></li>

        <li><b>2 - TwilightNautical</b></li>

        <li><b>3 - TwilightCivil</b></li>

        <li><b>4 - Day</b></li>

        <li><b>5 - BlueHour</b></li>

        <li><b>6 - GoldenHour</b></li>

        </ul>

        '
    ModelFlightTimeEnum:
      enum:
      - Standard
      - ML01
      type: string
      description: 'Models of calculating the flight time.<p>Possible values:</p>

        <ul>

        <li><b>0 - Standard</b>: Standard model of calculation which takes into account the great circle distance and the average speed of all aircraft typically operating on those distances.</li>

        <li><b>1 - ML01</b>: Experimental machine learning (ML) model, which attempts to provide more accurate prediction of the flight time by taking into account the history of flights on specified route and aircraft type within the recent year. This may come in handy in case when on certain routes flights take significant detours due to extended airspace closures dictated by war conflicts, sanction regulations, etc. This can result in significantly increased flight times comparing to regular estimations. Or, some routes generally experience longer delays than other routes of the same distance. This model attempts to take such factors into account and reflect it in the prediction. If a model cannot be applied due to lack of historical and/or aircraft data or prediction is too off set, it automatically fallbacks to `Standard`.</li>

        </ul>

        '
    ListingAirportContract:
      required:
      - name
      type: object
      properties:
        icao:
          type:
          - string
          - 'null'
          description: ICAO code of the airport
        iata:
          type:
          - string
          - 'null'
          description: IATA code of the airport
        localCode:
          type:
          - string
          - 'null'
          description: Code of the airport within the local or national codification system
        name:
          minLength: 1
          type: string
          description: Name of the airport
        shortName:
          type:
          - string
          - 'null'
          description: Shortened name of the airport
        municipalityName:
          type:
          - string
          - 'null'
          description: Name of the municipality this airport belongs to
        location:
          $ref: '#/components/schemas/GeoCoordinatesContract'
        countryCode:
          type:
          - string
          - 'null'
          description: Two-letter country code of the airport
        timeZone:
          type:
          - string
          - 'null'
          description: Time zone of the airport in Olson format (e.g. "Europe/Amsterdam")
      additionalProperties: false
      description: Flight's airport reference contract
    AirportDistanceTimeContract:
      required:
      - approxFlightTime
      - from
      - greatCircleDistance
      - to
      type: object
      properties:
        from:
          $ref: '#/components/schemas/ListingAirportContract'
        to:
          $ref: '#/components/schemas/ListingAirportContract'
        greatCircleDistance:
          $ref: '#/components/schemas/Distance'
        approxFlightTime:
          type: string
          description: 'Approximate flight time based on re-calculation of great circle distance

            against statistical duration average of multiple flights covered similar

            distance before.'
          format: date-span
      additionalProperties: false
      description: 'Contract containing information on distance and approximate flight time

        between specified airports'
    DateTimeContract:
      required:
      - local
      - utc
      type: object
      properties:
        utc:
          type: string
          description: UTC-time
          format: date-time
        local:
          type: string
          description: Local time
          format: date-time
      additionalProperties: false
      description: Descriptor date-time represented in both UTC and local timezones