Skip to Content
APIRoutesClass: MVXRouteStep

Class: MVXRouteStep

Represents an individual step within a route leg. Each step contains specific instructions and coordinates for navigation.

Accessors

coordinates

Get Signature

get coordinates(): LatLng[];

Gets the polyline coordinates in LatLng format

Returns

LatLng[]

Array of LatLng coordinates


geoJsonCoordinates

Get Signature

get geoJsonCoordinates(): Position[];

Gets the polyline coordinates in GeoJSON format

Returns

Position[]

Array of coordinates in [longitude, latitude] format

Properties

distance

distance: number

Distance of the step in meters


duration

duration: number

Estimated duration of the step in seconds


elevatorStep

elevatorStep: boolean

Indicates if this step involves using an elevator


endInsideFloor?

optional endInsideFloor: string;

Identifier of the floor where the step ends (if applicable)


endInsidePlace?

optional endInsidePlace: string;

Identifier of the place where the step ends (if applicable)


endLocation

endLocation: LatLng

Ending location of the step


htmlInstruction

htmlInstruction: string

HTML formatted instructions to display to the user


iconPrefix?

optional iconPrefix: string;

Icon prefix to display for this step


maneuver

maneuver: string

Type of maneuver the user should perform (e.g., “turn-left”, “straight”)


plainInstruction

plainInstruction: string

Plain text instructions to display to the user


showPopup?

optional showPopup: boolean;

Indicates if a popup with additional information should be shown


startInsideFloor?

optional startInsideFloor: string;

Identifier of the floor where the step begins (if applicable)


startInsidePlace?

optional startInsidePlace: string;

Identifier of the place where the step begins (if applicable)


startLocation

startLocation: LatLng

Starting location of the step

Last updated on