{
  "bytes": 8800541,
  "collection": "reference-data",
  "count_of_rows": 85146,
  "description": "Data contains the list of all airport codes,\nthe attributes are listed in the table schema. Some of the columns\ncontain attributes identifying airport locations,\nother codes (IATA, local if exist) that are relevant to\nidentification of an airport.",
  "has_premium": true,
  "has_solutions": [
    "global-country-region-reference-data"
  ],
  "hash": "78e6eaaef3f794f953bc54a6643afa96",
  "homepage": "http://www.ourairports.com/",
  "licenses": [
    {
      "id": "odc-pddl",
      "name": "open_data_commons_public_domain_dedication_and_license_v1.0",
      "path": "http://opendatacommons.org/licenses/pddl/",
      "title": "Open Data Commons Public Domain Dedication and License v1.0"
    }
  ],
  "name": "airport-codes",
  "profile": "data-package",
  "readme": "<a className=\"gh-badge\" href=\"https://datahub.io/core/airport-codes\"><img src=\"https://badgen.net/badge/icon/View%20on%20datahub.io/orange?icon=https://datahub.io/datahub-cube-badge-icon.svg&label&scale=1.25\" alt=\"badge\" /></a>\n\n## Description\n\nThe airport codes may refer to either [IATA](http://en.wikipedia.org/wiki/International_Air_Transport_Association_airport_code)\nairport code, a three-letter code which is used in passenger reservation, ticketing and baggage-handling systems, or the [ICAO](http://en.wikipedia.org/wiki/International_Civil_Aviation_Organization_airport_code) airport code\nwhich is a four letter code used by ATC systems and for airports that do not have an IATA airport code (from wikipedia).\n\nAirport codes from around the world. Downloaded from public domain source http://ourairports.com/data/ who compiled this data from multiple different sources. This data is updated nightly.\n\n## Data\n\n\"data/airport-codes.csv\" contains the list of all airport codes, the attributes are identified in datapackage description. Some of the columns contain attributes identifying airport locations, other codes (IATA, local if exist) that are relevant to identification of an airport.  \nOriginal source url is http://ourairports.com/data/airports.csv  (stored in archive/data.csv)  \n\n> Note: Currently the scripts is run automatically using Github Actions\n\n## Preparation\n\nYou will need Python 3.6 or greater and [dataflows](https://pypi.org/project/dataflows/) library to run the script\n\nTo update the data run the process script locally:\n```bash\n# To run locally you should do this\n# Install using requirements\npip install -r scripts/requirements.txt\npython3 scripts/process.py\npython3 scripts/airport-codes-flow.py\n\n# Run the script\nmake run\nmake clean\n```\n\nSeveral steps will be done to get the final data.\n\n* merge columns \"latitude_deg\" and \"longitude_deg\" into \"coordinates\"\n* remove columns: \"id\",  \"scheduled_service\", \"home_link\", \"wikipedia_link\", \"keywords\"\n\n## Automation\n\nDaily updated 'Airport codes' datapackage could be found on the [datahub.io](http://datahub.io/):  \nhttps://datahub.io/core/airport-codes\n\n## License\n\nThe source specifies that the data can be used as is without any warranty. Given size and factual nature of the data and its source from a US company would imagine this was public domain and as such have licensed the Data Package under the Public Domain Dedication and License (PDDL).\n",
  "resources": [
    {
      "bytes": 8800541,
      "dialect": {
        "caseSensitiveHeader": false,
        "delimiter": ",",
        "doubleQuote": true,
        "header": true,
        "lineTerminator": "\r\n",
        "quoteChar": "\"",
        "skipInitialSpace": false
      },
      "encoding": "utf-8",
      "format": "csv",
      "hash": "8f8b5fe85438bc69dec6b541429c7033",
      "name": "airport-codes",
      "path": "data/airport-codes.csv",
      "profile": "tabular-data-resource",
      "schema": {
        "fields": [
          {
            "format": "default",
            "name": "ident",
            "type": "string"
          },
          {
            "format": "default",
            "name": "type",
            "type": "string"
          },
          {
            "format": "default",
            "name": "name",
            "type": "string"
          },
          {
            "format": "default",
            "name": "elevation_ft",
            "type": "integer"
          },
          {
            "format": "default",
            "name": "continent",
            "type": "string"
          },
          {
            "format": "default",
            "name": "iso_country",
            "type": "string"
          },
          {
            "format": "default",
            "name": "iso_region",
            "type": "string"
          },
          {
            "format": "default",
            "name": "municipality",
            "type": "string"
          },
          {
            "format": "default",
            "name": "icao_code",
            "type": "string"
          },
          {
            "format": "default",
            "name": "iata_code",
            "type": "string"
          },
          {
            "format": "default",
            "name": "gps_code",
            "type": "string"
          },
          {
            "format": "default",
            "name": "local_code",
            "type": "string"
          },
          {
            "format": "default",
            "name": "coordinates",
            "type": "string"
          }
        ],
        "missingValues": [
          ""
        ]
      }
    }
  ],
  "sources": [
    {
      "name": "Our Airports",
      "path": "http://ourairports.com/data/",
      "title": "Our Airports"
    }
  ],
  "title": "Airport Codes",
  "version": "0.2.0",
  "views": [
    {
      "description": "Distribution of the world's ~72,000 active airports by facility type. Small airports dominate with over 42,000 facilities — the infrastructure of general aviation. Heliports number over 22,000. Large commercial airports handling scheduled passenger services number just 1,194 worldwide, underscoring how concentrated commercial aviation is.",
      "name": "airports-by-type",
      "resources": [
        "airport-codes"
      ],
      "spec": {
        "height": 340,
        "marginLeft": 130,
        "marks": [
          {
            "fill": "#3b82f6",
            "sort": {
              "y": "-x"
            },
            "staticData": [
              {
                "count": 42582,
                "type": "Small Airport"
              },
              {
                "count": 22726,
                "type": "Heliport"
              },
              {
                "count": 4067,
                "type": "Medium Airport"
              },
              {
                "count": 1255,
                "type": "Seaplane Base"
              },
              {
                "count": 1194,
                "type": "Large Airport"
              },
              {
                "count": 61,
                "type": "Balloonport"
              }
            ],
            "tip": true,
            "type": "barX",
            "x": "count",
            "y": "type"
          }
        ],
        "x": {
          "grid": true,
          "label": "Number of Airports"
        },
        "y": {
          "label": null
        }
      },
      "specType": "plot",
      "title": "World Airports by Type"
    }
  ]
}