Loading...
Searching...
No Matches
RouteEvent Class Reference

Class is used for storing the route path events. More...

Public Member Functions

 RouteEvent (this.type, this.value, this.distance)
 Default constructor.
 

Public Attributes

RouteEventType type
 Incoming event type RouteEventType.
 
int value
 Indicates angle in degrees for TURN_LEFT/TURN_RIGHT types RouteEventType and target sublocation unique identifier if type is TRANSITION Sublocation.
 
double distance
 distance from the beginning of the route to incoming event in meters.
 

Detailed Description

Class is used for storing the route path events.

Referenced from: RoutePath.

Definition at line 20 of file route_event.dart.

Constructor & Destructor Documentation

◆ RouteEvent()

RouteEvent.RouteEvent ( this. type,
this. value,
this. distance )

Default constructor.

Member Data Documentation

◆ distance

double RouteEvent.distance

distance from the beginning of the route to incoming event in meters.

Dart code snippet:

// Get distance from route start
double distance = event.distance;
print("Event distance: $distance meters");

Definition at line 53 of file route_event.dart.

◆ type

RouteEventType RouteEvent.type

Incoming event type RouteEventType.

Dart code snippet:

// Get event type
RouteEventType type = event.type;
print("Event type: $type");

Definition at line 32 of file route_event.dart.

◆ value

int RouteEvent.value

Indicates angle in degrees for TURN_LEFT/TURN_RIGHT types RouteEventType and target sublocation unique identifier if type is TRANSITION Sublocation.

Dart code snippet:

// Get event value (angle for turns, sublocation ID for transitions)
int value = event.value;
print("Event value: $value");

Definition at line 43 of file route_event.dart.


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