Skip to Content
APIRoutesClass: MVXRoute

Class: MVXRoute

Represents a complete route in MapVX that can contain multiple legs. Each route is composed of a series of legs that connect different points.

Accessors

duration

Get Signature

number

Gets the total duration of the route. This property calculates the sum of the duration of all legs in the route.

Returns

number

The total duration of the route, in seconds.


length

Get Signature

number

Gets the total length of the route. This property calculates the sum of the length of all legs in the route.

Returns

number

The total length of the route, in meters.


steps

Get Signature

MVXRouteStep

Gets all steps of the route by combining steps from all legs

Returns

MVXRouteStep[]

Array with all route steps

Properties

id

Unique identifier for the route generated automatically


legs

List of legs that compose the complete route

Last updated on