osurs  0.0.1
Data Fields
connection_t Struct Reference

A connection. More...

#include <types.h>

Collaboration diagram for connection_t:
Collaboration graph
[legend]

Data Fields

int departure
 
int arrival
 
int available
 
struct stop_torig
 
struct stop_tdest
 
struct trip_ttrip
 
struct connection_tnext
 
struct connection_tprev
 

Detailed Description

A connection.

A connection is a trip between two nodes that is reachable in time.

Field Documentation

◆ arrival

int connection_t::arrival

Arrival time in seconds.

◆ available

int connection_t::available

Available seats (capacity - reserved).

◆ departure

int connection_t::departure

Departure time in seconds.

◆ dest

struct stop_t* connection_t::dest

Destination stop.

◆ next

struct connection_t* connection_t::next

If there are more than one result, chain of connections, NULL if at the end of the chain.

◆ orig

struct stop_t* connection_t::orig

Origin stop.

◆ prev

struct connection_t* connection_t::prev

Previous connection or NULL if at the start of the chain.

◆ trip

struct trip_t* connection_t::trip

The trip on the route on which the connection is.


The documentation for this struct was generated from the following file: