MobilityDB 1.3
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
05_berlinmod_disassemble.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 disassembles the trips into individual observations, and write them in a CSV file named "berlinmod_instants.csv" ordered by timestamp. More...

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

Data Structures

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_TRIPS   256
 

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 disassembles the trips into individual observations, and write them in a CSV file named "berlinmod_instants.csv" ordered by timestamp.

The input file is

The program can be build as follows

gcc -Wall -g -I/usr/local/include -o 05_berlinmod_disassemble 05_berlinmod_disassemble.c -L/usr/local/lib -lmeos