This repository has been archived by the owner on Jun 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
/
Sources.yaml
482 lines (434 loc) · 10.8 KB
/
Sources.yaml
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
#
# Sources description
#
# That one is completely empty on purpose
feed:
airports:
paths : Airports/GeoNames/airports_geonames_only_clean.csv
key_fields: iata_code
delimiter : ^
join:
- fields: country_code
with : [countries, code]
- fields: city_code
with : [ori_por, iata_code]
headers :
- iata_code
- name
- city_code
- country_code
- country_name
- lat
- lng
countries:
paths :
#- /thing/that/does/not/exist
- Countries/countryInfo.txt
- 'http://download.geonames.org/export/dump/countryInfo.txt'
key_fields: code
delimiter : "\t"
subdelimiters :
languages : ','
neighbors : ','
join:
- fields: currency_code
with : [currencies, currency_code]
- fields: continent
with : [continents, code]
- fields: neighbors
with : [countries, code]
headers :
- code
- iso_alpha3
- iso_numeric
- fips_code
- name
- capital
- area_in_sq_km
- population
- continent
- tld
- currency_code
- currency_name
- phone
- postal_code_format
- postal_code_regex
- languages
- geoname_id
- neighbors
capitals:
paths : Countries/capitals.csv
key_fields: country_code
delimiter : ^
join:
- fields: country_code
with : [countries, code]
headers :
- country_code
- capital_name
- country_name
- area_in_sq_km
- population
- lat
- lng
continents:
paths : Continents/continentCodes.txt
key_fields: code
delimiter : "\t"
headers :
- code
- name
- geoname_id
stations:
paths : TrainStations/DataGouvFr/RFF_gares.ids.gm.man.red.csv
key_fields: code
delimiter : ^
subdelimiters :
lines: ','
headers :
- code
- lines
- name
- info
- lat
- lng
stations_nls:
paths : TrainStations/NLS/NLS_CODES_RefDataSNCF.csv
key_fields: nls_code
delimiter : ','
headers :
- uic_code
- name
- nls_code
- physical
stations_uic:
paths : TrainStations/UIC/sncfExtract_v1.0.csv
key_fields: uic_code
delimiter : ','
headers :
- uic_code
- name
- lat
- lng
languages:
paths :
- Languages/iso-languagecodes.txt
- 'http://download.geonames.org/export/dump/iso-languagecodes.txt'
key_fields: code
delimiter : "\t"
skip : 1
headers :
- code
- code_iso_2
- code_iso_1
- name
timezones:
paths :
- file : TimeZones/timeZones.txt
- file : 'http://download.geonames.org/export/dump/timeZones.txt'
key_fields: code
delimiter : "\t"
skip : 1
join:
- fields: country_code
with : [countries, code]
headers :
- country_code
- code
- gmt_offset
- dst_offset
- raw_offset
cities:
paths :
- file : Cities/cities15000.zip
extract : cities15000.txt
- file : 'http://download.geonames.org/export/dump/cities15000.zip'
extract : cities15000.txt
key_fields: code
delimiter : "\t"
subdelimiters :
alternatenames : ','
join:
- fields: country_code
with : [countries, code]
- fields: timezone
with : [timezones, code]
- fields: fclass
with : [feature_classes, fclass]
- fields: fcode
with : [feature_codes, fcode]
headers :
- code
- name
- asciiname
- alternatenames
- lat
- lng
- fclass
- fcode
- country_code
- cc2
- admin1
- admin2
- admin3
- admin4
- population
- elevation
- dem
- timezone
- modification
ori_por:
paths : &ori_por_paths
- Por/Ori/ori_por_public.csv
- 'https://github.com/opentraveldata/optd/raw/trunk/refdata/ORI/ori_por_public.csv'
key_fields : iata_code
indices :
- iata_code
#- [iata_code, country_code]
limit : # put a number to load only the first lines
skip : 1 # put a number to skip the first lines
discard_dups : false # This is the default behavior anyway
delimiter : ^
subdelimiters : &ori_por_subdel
# Here you may put '' to
# split every char 'AB' -> ['A', 'B']
location_type : ''
alt_name_section : ['=', '|']
tvl_por_list : ','
join : &ori_por_join
- fields: country_code
with : [countries, code]
- fields: timezone
with : [timezones, code]
# Freaking auto join possibility
- fields: tvl_por_list
with : [ori_por, iata_code]
- fields: city_code
with : [ori_por, iata_code]
- fields: continent_name
with : [continents, name]
- fields: location_type
with : [location_types, location_type]
- fields: fclass
with : [feature_classes, fclass]
- fields: fcode
with : [feature_codes, fcode]
# Join on multiple fields examples
#- fields: [country_code, country_name]
# with : [countries, [code, name]]
headers : &ori_por_headers
- iata_code
- icao_code
- faa_code
- is_geonames
- geoname_id
- valid_id
- name
- asciiname
- lat # is latitude in ori_por headers
- lng # is longitude in ori_por headers
- fclass
- fcode
- page_rank
- date_from
- date_until
- comment
- country_code
- cc2
- country_name
- continent_name
- adm1_code
- adm1_name_utf
- adm1_name_ascii
- adm2_code
- adm2_name_utf
- adm2_name_ascii
- adm3_code
- adm4_code
- population
- elevation
- gtopo30
- timezone
- gmt_offset
- dst_offset
- raw_offset
- moddate
- city_code
- city_name_utf
- city_name_ascii
- tvl_por_list
- state_code
- location_type
- wiki_link
- alt_name_section
ori_por_non_iata:
paths :
- Por/Ori/ori_por_non_iata.csv
- 'https://github.com/opentraveldata/optd/raw/trunk/refdata/ORI/ori_por_non_iata.csv'
key_fields : iata_code
delimiter : ^
skip : 1
subdelimiters : *ori_por_subdel
headers : *ori_por_headers
join : *ori_por_join
currencies:
paths : Currencies/wiki_source_ISO_4217.csv
key_fields: currency_code
delimiter : ;
subdelimiters :
countries : ','
join:
- fields: countries
with : [countries, name]
headers :
- currency_code
- numeric_code
- digits_number
- currency_name
- countries
airlines:
paths :
- Airlines/ori_airlines.csv
- 'https://github.com/opentraveldata/optd/raw/trunk/refdata/ORI/ori_airlines.csv'
key_fields: unified_code
delimiter : ^
skip : 1
headers :
- unified_code
- 3char_code
- 2char_code
- num_code
- name
- name2
- alliance_code
- alliance_status
cabins:
paths : Cabins/cabins.csv
key_fields: code
delimiter : ^
headers :
- code
- name
locales:
paths : Locales/locales.csv
key_fields: locale
delimiter : ;
headers :
- locale
- title
- language
- territory
- revision
- date
- codeset
location_types:
paths : LocationTypes/location_types.csv
key_fields: location_type
delimiter : ^
headers :
- location_type
- name
feature_classes:
paths : FeatureClasses/feature_classes.csv
key_fields: fclass
delimiter : ^
headers :
- fclass
- name
feature_codes:
paths : FeatureCodes/featureCodes_en.txt
key_fields: fcode
delimiter : "\t"
join:
- fields: fclass
with : [feature_classes, fclass]
headers :
- fclass
- fcode
- name
- description
geonames_FR:
paths :
- file : Por/GeoNames/FR.zip
extract : FR.txt
- file : 'http://download.geonames.org/export/dump/FR.zip'
extract : FR.txt
key_fields: geoname_id
delimiter : "\t"
subdelimiters :
alternatenames : ','
join: &geonames_join
- fields: country_code
with : [countries, code]
- fields: timezone
with : [timezones, code]
- fields: fclass
with : [feature_classes, fclass]
- fields: fcode
with : [feature_codes, fcode]
headers : &geonames_headers
- geoname_id
- name
- asciiname
- alternatenames
- lat
- lng
- fclass
- fcode
- country_code
- cc2
- adm1_code
- adm2_code
- adm3_code
- adm4_code
- population
- elevation
- dem
- timezone
- moddate
geonames_MC:
paths :
- file : Por/GeoNames/MC.zip
extract : MC.txt
- file : 'http://download.geonames.org/export/dump/MC.zip'
extract : MC.txt
key_fields: geoname_id
delimiter : "\t"
subdelimiters :
alternatenames : ','
headers : *geonames_headers
join : *geonames_join
postal_codes_FR:
paths :
- file : PostalCodes/GeoNames/FR.zip
extract : FR.txt
- file : 'http://download.geonames.org/export/zip/FR.zip'
extract : FR.txt
key_fields: &postal_codes_key postal_code
delimiter : "\t"
join : &postal_code_join
- fields: country_code
with : [countries, code]
headers : &postal_codes_headers
- country_code
- postal_code
- name
- adm1_name
- adm1_code
- adm2_name
- adm2_code
- adm3_name
- adm3_code
- lat
- lng
- accuracy
postal_codes_MC:
paths :
- file : PostalCodes/GeoNames/MC.zip
extract : MC.txt
- file : 'http://download.geonames.org/export/zip/MC.zip'
extract : MC.txt
key_fields: *postal_codes_key
delimiter : "\t"
headers : *postal_codes_headers
join : *postal_code_join