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: numberDistance of the step in meters
duration
duration: numberEstimated duration of the step in seconds
elevatorStep
elevatorStep: booleanIndicates 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: LatLngEnding location of the step
htmlInstruction
htmlInstruction: stringHTML formatted instructions to display to the user
iconPrefix?
optional iconPrefix: string;Icon prefix to display for this step
maneuver
maneuver: stringType of maneuver the user should perform (e.g., “turn-left”, “straight”)
plainInstruction
plainInstruction: stringPlain 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: LatLngStarting location of the step