![]() |
MobilityDB 1.3
|
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. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <meos.h>
#include <meos_geo.h>
Data Structures | |
struct | speed_record |
struct | trip_record |
Macros | |
#define | MAX_LENGTH_DATE 12 |
#define | MAX_LENGTH_HEADER 1024 |
#define | MAX_LENGTH_TRIP 400001 |
Maximum length in characters of a trip in the input data. More... | |
#define | MAX_NO_BINS 10 |
Functions | |
int | main (void) |
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 in the file 05_berlinmod_disassemble.c
in the same directory. Furthermore, the program 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