navit  0.5.3-trunk
seg_data Struct Reference

Data for segments affected by a traffic message. More...

Data Fields

enum item_type type
 
int speed
 
int speed_penalty
 
int speed_factor
 
int delay
 
enum location_dir dir
 
int flags
 
struct attr ** attrs
 

Detailed Description

Data for segments affected by a traffic message.

Speed can be specified in three different ways:

  • speed replaces the maximum speed of the segment, if lower
  • speed_penalty subtracts the specified amount from the maximum speed of the segment
  • speed_factor is the percentage of the maximum speed of the segment to be assumed

Where more than one of these values is set, the lowest speed applies.

Field Documentation

◆ attrs

struct attr** seg_data::attrs

Additional attributes to add to the segments

Referenced by seg_data_equals(), and traffic_message_restore_segments().

◆ delay

int seg_data::delay

Expected delay for all segments combined, in 1/10 s

Referenced by seg_data_equals(), and traffic_message_parse_events().

◆ dir

enum location_dir seg_data::dir

Directionality

Referenced by seg_data_equals(), and traffic_message_parse_events().

◆ flags

int seg_data::flags

Access flags (modes of transportation to which the message applies)

Referenced by seg_data_equals(), and traffic_message_parse_events().

◆ speed

int seg_data::speed

The expected speed in km/h (INT_MAX for unlimited, 0 indicates that the road is closed)

Referenced by seg_data_equals(), seg_data_new(), and traffic_message_parse_events().

◆ speed_factor

int seg_data::speed_factor

Expected speed expressed as a percentage of the posted limit (100 for full speed)

Referenced by seg_data_equals(), seg_data_new(), and traffic_message_parse_events().

◆ speed_penalty

int seg_data::speed_penalty

Difference between expected speed and the posted speed limit of the segment (0 for none); the resulting maximum speed is never less than 5 km/h

Referenced by seg_data_equals(), and traffic_message_parse_events().

◆ type

enum item_type seg_data::type

The item type; currently only type_traffic_distortion is supported

Referenced by seg_data_equals(), and seg_data_new().


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