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

RouteBookmarks.exportToFile() method

Export a bookmarked route to the filesystem.

Writes the route at index to the given filesystem path in a standard interchange format. The returned value communicates success or the type of failure.

Signature:

exportToFile(index: number, path: string): number;

Parameters

Parameter

Type

Description

index

number

Index of the route in the current sort order.

path

string

Destination file path where the route will be written.

Returns:

number

Success code or error code.