-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathdatapackage.json
119 lines (119 loc) · 5.5 KB
/
datapackage.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"bytes": 8365255,
"collection": "reference-data",
"count_of_rows": 81945,
"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": "1e7aaba1e2051ba7126939b4465b8bdb",
"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": 8365255,
"dialect": {
"caseSensitiveHeader": false,
"delimiter": ",",
"doubleQuote": true,
"header": true,
"lineTerminator": "\r\n",
"quoteChar": "\"",
"skipInitialSpace": false
},
"encoding": "utf-8",
"format": "csv",
"hash": "19c32948863a29c6cab327487bde3c5a",
"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": "gps_code",
"type": "string"
},
{
"format": "default",
"name": "iata_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"
}