-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathdatapackage.json
More file actions
184 lines (184 loc) · 7.25 KB
/
datapackage.json
File metadata and controls
184 lines (184 loc) · 7.25 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
{
"bytes": 8808571,
"collection": "reference-data",
"count_of_rows": 85231,
"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": "4b1d5f5d796038de8024c2a5409e6b0a",
"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": 8808571,
"dialect": {
"caseSensitiveHeader": false,
"delimiter": ",",
"doubleQuote": true,
"header": true,
"lineTerminator": "\r\n",
"quoteChar": "\"",
"skipInitialSpace": false
},
"encoding": "utf-8",
"format": "csv",
"hash": "67a81ed637e8131dfad1fa6b74ca3d37",
"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"
}
]
}