Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
simple-navigation-generation
README.md
checkPubFacilityCSV.py
combine_json.py
config.py
constituency_areas.py
convert_shapefiles.py
convert_shapefiles.sh
data_preparation.py
download_constituency_area_data.py
extract_data_from_xls.py
geo_naming.py
getPubFacility_GeoJSON_with_CACODE.py
log.py
public_facilities.py
settings.vrt
table_meta_data.py
translation_fix.py
translation_for_i18next.py
upload-all.sh

README.md

Scripts

  • Run data_preparation.py to perform all pre-processing steps.
  • See config.py for configurations.

It takes about 5-10 min to run the full data preparation pipeline. On my machine, it takes:

real    2m43.536s
user    3m38.576s
sys     1m11.936s

Data Taxonomy

To make our discussion more communicable, this section notes down our taxonomy.

Different names:

  • Raw name - what is found in the original database
  • Identifier - what is found in our database
  • Canonical name - what we present in the front end
  • Translation map - mapping from identifier to canonical name

There are three versions of Canonical name: english, simplified, traditional. They also have corresponding translation maps.

Dependencies

Python libraries

Those are included in /requirements.txt.

GDAL

http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries

topojson

npm install -g topojson