{
  "name": "air-travel",
  "title": "Commercial Air Travel by Country, Annual from 1970",
  "description": "Commercial air traffic of the airlines registered in each country, annual from 1970 (to 2023 in the November 2026 WDI release): aircraft departures, passengers carried and air freight (million tonne-km), from the International Civil Aviation Organization (ICAO) via the World Bank World Development Indicators (WDI series IS.AIR.DPRT, IS.AIR.PSGR, IS.AIR.GOOD.MT.K1), with WDI midyear population estimates (SP.POP.TOTL) and passengers per resident. One file for 185 economies and one for the world, 7 regions and 4 income groups. Figures count airlines by country of registration, not travel by a country's residents or traffic at its airports.",
  "status": "monitored",
  "licenses": [
    {
      "name": "CC-BY-4.0",
      "title": "Creative Commons Attribution 4.0. The WDI metadata for each of the four series gives License_Type \"CC BY-4.0\" (https://datacatalog.worldbank.org/public-licenses#cc-by), with the World Bank's added dispute-resolution terms. Attribution: ICAO, Civil Aviation Statistics of the World and ICAO staff estimates; UN Population Division and others; via World Bank WDI.",
      "path": "https://datacatalog.worldbank.org/public-licenses#cc-by"
    }
  ],
  "sources": [
    {
      "title": "World Bank, World Development Indicators: Air transport, registered carrier departures worldwide (IS.AIR.DPRT). Original source: ICAO, Civil Aviation Statistics of the World and ICAO staff estimates",
      "path": "https://data.worldbank.org/indicator/IS.AIR.DPRT"
    },
    {
      "title": "World Bank, World Development Indicators: Air transport, passengers carried (IS.AIR.PSGR). Original source: ICAO",
      "path": "https://data.worldbank.org/indicator/IS.AIR.PSGR"
    },
    {
      "title": "World Bank, World Development Indicators: Air transport, freight (million ton-km) (IS.AIR.GOOD.MT.K1). Original source: ICAO",
      "path": "https://data.worldbank.org/indicator/IS.AIR.GOOD.MT.K1"
    },
    {
      "title": "World Bank, World Development Indicators: Population, total (SP.POP.TOTL). Original source: UN Population Division, World Population Prospects, and others",
      "path": "https://data.worldbank.org/indicator/SP.POP.TOTL"
    },
    {
      "title": "World Bank Indicators API v2 (how the data were retrieved; no key)",
      "path": "https://api.worldbank.org/v2/"
    }
  ],
  "upkeep": {
    "mode": "living",
    "refresh": "annual",
    "workflow": ".github/workflows/update.yml"
  },
  "resources": [
    {
      "path": "data/air-travel-by-country.csv",
      "name": "air-travel-by-country",
      "title": "Air traffic of each country's registered airlines, with population, annual from 1970",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          {
            "name": "country_code",
            "type": "string",
            "description": "World Bank code: ISO 3166-1 alpha-3 for economies (XKX for Kosovo), World Bank code for aggregates."
          },
          {
            "name": "country_name",
            "type": "string",
            "description": "World Bank name of the economy or aggregate."
          },
          {
            "name": "year",
            "type": "integer",
            "description": "Calendar year, from 1970 to the latest year with any aviation value (2023 in the November 2026 WDI release). Every year is listed; empty values mean WDI publishes none."
          },
          {
            "name": "departures",
            "type": "number",
            "description": "Air transport, registered carrier departures worldwide (WDI IS.AIR.DPRT): domestic takeoffs and takeoffs abroad of air carriers registered in the country. Source: ICAO. Empty where WDI has no value."
          },
          {
            "name": "passengers",
            "type": "number",
            "description": "Air transport, passengers carried (WDI IS.AIR.PSGR): passengers carried by airlines registered in the country, domestic and international, scheduled and non-scheduled, regardless of where they fly or where they live. A passenger is normally counted once per flight number, but a passenger travelling on both domestic and international stages of the same flight is counted in both categories. Source: ICAO. Empty where WDI has no value."
          },
          {
            "name": "freight_million_tonne_km",
            "type": "number",
            "description": "Air transport, freight, million tonne-km (WDI IS.AIR.GOOD.MT.K1): freight, express and diplomatic bags carried on each flight stage by airlines registered in the country, in metric tonnes times kilometres flown, millions. Source: ICAO. Empty where WDI has no value."
          },
          {
            "name": "population",
            "type": "integer",
            "description": "Population, total (WDI SP.POP.TOTL): midyear estimates counting all residents regardless of legal status or citizenship. Source: UN Population Division and others via WDI."
          },
          {
            "name": "passengers_per_resident",
            "type": "number",
            "description": "passengers / population, rounded to 4 decimals. Calculated for this dataset; not a WDI figure. A measure of how much traffic a country's airlines carry relative to its size, not how often its residents fly."
          }
        ],
        "primaryKey": [
          "country_code",
          "year"
        ]
      }
    },
    {
      "path": "data/air-travel-world-and-regions.csv",
      "name": "air-travel-world-and-regions",
      "title": "Air traffic for the world, World Bank regions and income groups (WDI aggregates), annual from 1970",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          {
            "name": "country_code",
            "type": "string",
            "description": "World Bank code: ISO 3166-1 alpha-3 for economies (XKX for Kosovo), World Bank code for aggregates."
          },
          {
            "name": "country_name",
            "type": "string",
            "description": "World Bank name of the economy or aggregate."
          },
          {
            "name": "year",
            "type": "integer",
            "description": "Calendar year, from 1970 to the latest year with any aviation value (2023 in the November 2026 WDI release). Every year is listed; empty values mean WDI publishes none."
          },
          {
            "name": "departures",
            "type": "number",
            "description": "Air transport, registered carrier departures worldwide (WDI IS.AIR.DPRT): domestic takeoffs and takeoffs abroad of air carriers registered in the country. Source: ICAO. Empty where WDI has no value."
          },
          {
            "name": "passengers",
            "type": "number",
            "description": "Air transport, passengers carried (WDI IS.AIR.PSGR): passengers carried by airlines registered in the country, domestic and international, scheduled and non-scheduled, regardless of where they fly or where they live. A passenger is normally counted once per flight number, but a passenger travelling on both domestic and international stages of the same flight is counted in both categories. Source: ICAO. Empty where WDI has no value."
          },
          {
            "name": "freight_million_tonne_km",
            "type": "number",
            "description": "Air transport, freight, million tonne-km (WDI IS.AIR.GOOD.MT.K1): freight, express and diplomatic bags carried on each flight stage by airlines registered in the country, in metric tonnes times kilometres flown, millions. Source: ICAO. Empty where WDI has no value."
          },
          {
            "name": "population",
            "type": "integer",
            "description": "Population, total (WDI SP.POP.TOTL): midyear estimates counting all residents regardless of legal status or citizenship. Source: UN Population Division and others via WDI."
          },
          {
            "name": "passengers_per_resident",
            "type": "number",
            "description": "passengers / population, rounded to 4 decimals. Calculated for this dataset; not a WDI figure. A measure of how much traffic a country's airlines carry relative to its size, not how often its residents fly."
          }
        ],
        "primaryKey": [
          "country_code",
          "year"
        ]
      }
    }
  ],
  "views": [
    {
      "name": "world-passengers",
      "title": "Passengers carried by the world's airlines, annual from 1970",
      "resources": [
        "air-travel-world-and-regions"
      ],
      "specType": "vega-lite",
      "spec": {
        "width": "container",
        "height": 320,
        "transform": [
          {
            "filter": "datum.country_code == 'WLD' && isValid(datum.passengers) && datum.passengers !== ''"
          },
          {
            "calculate": "datum.passengers / 1e9",
            "as": "billions"
          }
        ],
        "mark": {
          "type": "line",
          "point": {
            "size": 14
          }
        },
        "encoding": {
          "x": {
            "field": "year",
            "type": "quantitative",
            "axis": {
              "title": null,
              "format": "d"
            }
          },
          "y": {
            "field": "billions",
            "type": "quantitative",
            "axis": {
              "title": "Passengers carried, billions"
            }
          },
          "tooltip": [
            {
              "field": "year",
              "type": "quantitative",
              "format": "d"
            },
            {
              "field": "billions",
              "type": "quantitative",
              "format": ".2f",
              "title": "Passengers (billions)"
            }
          ]
        }
      }
    }
  ]
}
