MobilityDB 1.3
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
03_berlinmod_assemble.c File Reference

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...

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <meos.h>
#include <meos_geo.h>

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)
 

Detailed Description

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

The program can be build as follows

gcc -Wall -g -I/usr/local/include -o 03_berlinmod_assemble 03_berlinmod_assemble.c -L/usr/local/lib -lmeos