Home > @magiclane/maps-sdk > RouteBookmarks > getWaypoints

RouteBookmarks.getWaypoints() method

Returns the list of Landmark waypoints for the route at index.

Signature:

getWaypoints(index: number): Landmark[] | null;

Parameters

Parameter

Type

Description

index

number

Index of the route in the current sort order.

Returns:

Landmark[] | null

Ordered list of waypoints, or null when the index is invalid.