![]() |
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 assembles the trips from the individual observations, and write them in a CSV file named "berlinmod_trips_new.csv" which corresponds to the file "berlinmod_trips.csv" in the data directory. More...
Data Structures | |
struct | trip_input_record |
struct | trip_output_record |
Macros | |
#define | MAX_INSTANTS 50000 |
#define | MAX_LENGTH_DATE 12 |
#define | MAX_LENGTH_HEADER 1024 |
#define | MAX_LENGTH_POINT 100 |
#define | MAX_LENGTH_TIMESTAMP 32 |
#define | MAX_TRIPS 5 |
#define | NO_INSTANTS_BATCH 1000 |
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 assembles the trips from the individual observations, and write them in a CSV file named "berlinmod_trips_new.csv" which corresponds to the file "berlinmod_trips.csv" in the data directory.
The input file is
berlinmod_instants.csv
: individual observations from 55 trips of 5 cars during 4 days obtained from the generator at scale factor 0.005. This file is generated by the program 05_berlinmod_disassemble
. In the above file, the coordinates are given in the 3857 coordinate system, https://epsg.io/3857 and the timestamps are given in the Europe/Brussels time zone. The input file can be generated by running the program 05_berlinmod_disassemble.c
in the current directory This simple program does not cope with erroneous inputs, such as missing fields or invalid values.The program can be build as follows