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 splits the trips and the speed of these trips by tiles, and computes aggregate values of the count, duration, and distance of the tiles.

Please read the assumptions made about the input file trips.csv in the file meos_disassemble_berlinmod.c in the same directory. Notice that the program assumes that we already have computed the extent of the trips and the speeds. Otherwise, a first scan of the CSV file is needed for computing both extents and then proceed for the second scan as below.

The program can be build as follows

gcc -Wall -g -I/usr/local/include -o 07_meos_tile_berlinmod 07_meos_tile_berlinmod.c -L/usr/local/lib -lmeos