bin/generate-population-density-be.js
creates 4 files:
region_cells.csv
: CSV-formatted cells of the Belgium region where each cell contains the population density and indicates whether or not it has a stop. This file can be used as region input to PoDiGGregion_edges.csv
: A list of all trips from each cell to each cell. This file should be used during PoDiGG evaluation.region.csv
: Same asregion_cells.csv
but without virtualx
andy
cell coordinates.region.csv
: Visualization of the region. Population distribution levels are indicated for each cell with a color between white, red and black (going from low to high). Green dots indicate stops.
This tool accepts the following parameters bus
, train
or train_nl
,
which respectively creates region files for the Belgian bus and railway company and the Dutch railway company.
input_data.zip
must be unzipped before the following files can be used.
input_data/population.csv
: Population+size+density of Belgian towns: http://data.gov.be/en/node/8176input_data/postalcodes.tsv
: Postal codes of all Belgian towns with their Dutch name and gewest. http://data.gov.be/en/node/8614input_data/towns.csv
: Location (long,lat) of Belgian cities: http://download.geonames.org/export/zip/
input_data_train/stop.csv
: Stops file from NMBS GTFS datasetinput_data_train/stop_times.csv
: Stop_times file from NMBS GTFS dataset
input_data_bus/stops_deliin.csv
: Stops file from De Lijn GTFS datasetinput_data_bus/stop_mivb.csv
: Stops file from MIVB GTFS datasetinput_data_bus/stop_tec.csv
: Stops file from TEC GTFS datasetinput_data_bus/stop_times_delijn.csv
: Stop_times file from De Lijn GTFS datasetinput_data_bus/stop_times_mivb.csv
: Stop_times file from MIVB GTFS datasetinput_data_bus/stop_times_tec.csv
: Stop_times file from TEC GTFS dataset
input_data_train_nl/Grid_ETRS89_LAEA_NL_1K_*
: Netherlands shapefile: http://www.efgs.info/data/input_data_train_nl/GEOSTAT_grid_POP_1K_NL_2012.csv
: Population per cell in shapefile: http://www.efgs.info/data/national/
input_data_train_nl/stop.csv
: Stops file from NS GTFS datasetinput_data_train_nl/stop_times.csv
: Stop_times file from NS GTFS dataset
The PoDiGG generator is written by Ruben Taelman.
This code is copyrighted by Ghent University – imec and released under the MIT license.