navit  0.5.3-trunk
traffic_event Struct Reference

A traffic event. More...

#include <traffic.h>

Data Fields

enum event_class event_class
 
enum event_type type
 
int length
 
int speed
 
struct quantifierquantifier
 
int si_count
 
struct traffic_suppl_info ** si
 

Detailed Description

A traffic event.

An event refers to a condition, its cause or its effect.

Field Documentation

◆ event_class

enum event_class traffic_event::event_class

◆ length

int traffic_event::length

The length of the affected route in meters.

Referenced by traffic_event_new(), and traffic_message_dump_to_stderr().

◆ quantifier

struct quantifier* traffic_event::quantifier

Additional quantifier for events allowing this. Data type and meaning depends on the event type.

Referenced by traffic_event_destroy(), traffic_event_new(), and traffic_message_parse_events().

◆ si

◆ si_count

int traffic_event::si_count

◆ speed

int traffic_event::speed

The speed in km/h at which vehicles can expect to pass through the affected stretch of road (either a temporary speed limit or average speed in practice, whichever is less), INT_MAX if not set or unknown.

Referenced by traffic_event_new(), traffic_message_dump_to_stderr(), and traffic_message_parse_events().

◆ type

enum event_type traffic_event::type

The event type, which can be mapped to a string to be displayed to the user.

Referenced by traffic_event_is_valid(), traffic_event_new(), traffic_message_dump_to_stderr(), and traffic_message_parse_events().


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