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

RouteBookmarks.getName() method

Returns the name of the bookmarked route at index, or null when the index is invalid.

Signature:

getName(index: number): string | null;

Parameters

Parameter

Type

Description

index

number

Index of the route in the current sort order.

Returns:

string | null

The route name when present, otherwise null.