MobilityDB 1.1

◆ MAX_LENGTH_TRIP

#define MAX_LENGTH_TRIP   170001

A simple program that reads from a CSV file synthetic trip data in Brussels generated by the MobilityDB-BerlinMOD generator https://github.com/MobilityDB/MobilityDB-BerlinMOD and generate statics about the Brussels communes (or municipalities) traversed by the trips.

The input files are

  • communes.csv: data from the 19 communes composing Brussels obtained from OSM and publicly available statistical data
  • brussels_region.csv: geometry of the Brussels region obtained from OSM. It is the spatial union of the 19 communes
  • trips.csv: 55 trips from 5 cars during 4 days obtained from the generator at scale factor 0.005 In the above files, the coordinates are given in the 3857 coordinate system, https://epsg.io/3857 and the timestamps are given in the Europe/Brussels time zone. This simple program does not cope with erroneous inputs, such as missing fields or invalid values.

The program can be build as follows

gcc -Wall -g -I/usr/local/include -o 06_meos_clip_berlinmod 06_meos_clip_berlinmod.c -L/usr/local/lib -lmeos