Skip to content

Class RouteEvent

Il Kadyrov edited this page Nov 6, 2020 · 2 revisions

RouteEvent class is used for storing the route path events.

Referenced from: RoutePath.

Public methods

Function getType

public RouteEventType getType()

Function returns element of enum RouteEventType (one on TURN_LEFT, TURN_RIGHT or TRANSITION).

Function getValue

public int getValue()

Function returns event value, which's meaning depends on the event type:

  • for events of the type TURN_LEFT it means turning angle in degrees in counter-clockwise direction;
  • for events of the type TURN_RIGHT it means turning angle in degrees in clockwise direction;
  • for events of the type TRANSITION it means the sublocation identifier to which the transition should be done.

Function getDistance

public float getDistance()

Function returns distance from the beginning of the path to the current route event (in meters).

Clone this wiki locally