VMESegment

class VMESegment(duration: Double, length: Double, maneuverType: VMEManeuverType, floorTransitionType: VMEFloorTransitionType, floorTransitionId: String, mPath: MutableList<VMEPosition>)

A segment describes a part of a computed route.

Since

1.19

1.22

1.19

Parameters

maneuverType

The maneuver that describes the end of the segment.

floorTransitionType

The floor transition type when a floor transition occurs.

floorTransitionId

The id of the floor transition.

duration

The duration (seconds) of the segment.

length

The length (metres) of the segment.

mPath

An array of positions that make up the segment

Constructors

Link copied to clipboard
fun VMESegment(duration: Double, length: Double, maneuverType: VMEManeuverType, floorTransitionType: VMEFloorTransitionType, floorTransitionId: String, mPath: MutableList<VMEPosition>)

Instantiates a segment object.

Properties

Link copied to clipboard
val duration: Double

Gets the duration (seconds) of the segment.

Link copied to clipboard
val floorTransitionId: String

Retrieves the floor transition id of the segment. If there is no floor transition the method returns ""

Link copied to clipboard
val floorTransitionType: VMEFloorTransitionType

Retrieves the floor transition type of the segment. If there is no floor transition the method returns VMEFloorTransitionType.NONE

Link copied to clipboard
val length: Double

Retrieves the length (metres) of the segment.

Link copied to clipboard
val maneuverType: VMEManeuverType

Retrieves the maneuver type of the segment.

Link copied to clipboard
val mPath: MutableList<VMEPosition>

Retrieves the path of the segment.