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

get duration(): 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

get length(): 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

get steps(): MVXRouteStep[];

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

Returns

MVXRouteStep[]

Array with all route steps

Properties

id

id: string

Unique identifier for the route generated automatically


legs

legs: MVXRouteLeg[];

List of legs that compose the complete route

Last updated on