[#21] Makefile: Introduce UN/LOCODE overrides and copy it by the recipe
* Introduce `unlocode-CodeList_overrides.csv` that contains missing details for locodes from the main `unlocode-CodeList.csv` file; * Fix `Makefile`; * Add info to `README.md`. Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
c0812d5ad6
commit
16ff77e35c
3 changed files with 21466 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -41,8 +41,11 @@ in/unlocode-SubdivisionCodes.csv: $(DIRS)
|
|||
in/unlocode-CodeList.csv: $(DIRS)
|
||||
zcat data/unlocode-CodeList.csv.gz > in/unlocode-CodeList.csv
|
||||
|
||||
in/unlocode-CodeList_overrides.csv: $(DIRS)
|
||||
cp data/unlocode-CodeList_overrides.csv in/unlocode-CodeList_overrides.csv
|
||||
|
||||
# Generate locode_db BoltDB file
|
||||
locode_db: in/unlocode-CodeList.csv in/unlocode-SubdivisionCodes.csv in/continents.geojson in/airports.dat in/countries.dat $(FROST_LOCODE)
|
||||
locode_db: in/unlocode-CodeList.csv in/unlocode-SubdivisionCodes.csv in/continents.geojson in/airports.dat in/countries.dat in/unlocode-CodeList_overrides.csv $(FROST_LOCODE)
|
||||
$(FROST_LOCODE) generate \
|
||||
--airports in/airports.dat \
|
||||
--continents in/continents.geojson \
|
||||
|
|
|
@ -16,6 +16,8 @@ This repository tools generate UN/LOCODE database for FrostFS using data from
|
|||
following sources:
|
||||
- [UN/LOCODE](https://unece.org/trade/cefact/UNLOCODE-Download) database in CSV
|
||||
format, licensed under the [ODC Public Domain Dedication and Licence (PDDL)](http://opendatacommons.org/licenses/pddl/1-0/)
|
||||
- [Improved UN/LOCODE](https://raw.githubusercontent.com/cristan/improved-un-locodes/86b2e96f17289ddb62f52dcfcfac520bc1ca002b/data/code-list-improved.csv) database
|
||||
that contains more details about LOCODEs (like coordinates) which may miss in UN/LOCODE database.
|
||||
- [OpenFlight Airports and
|
||||
Countries](https://raw.githubusercontent.com/jpatokal/openflights/master/data/)
|
||||
databases, licensed under the [GNU AGPL-3.0
|
||||
|
|
21460
data/unlocode-CodeList_overrides.csv
Normal file
21460
data/unlocode-CodeList_overrides.csv
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue