exportToFile method
Export a bookmarked route to the filesystem.
Writes the route at index to the given filesystem path in a standard interchange format
(for example GPX). The returned value communicates success or the type of failure.
Parameters
index: Index of the route in the current sort order.path: Destination file path where the route will be written.
Returns
- GemError: GemError.success on success, or an error such as GemError.notFound or GemError.io.
Implementation
GemError exportToFile(final int index, final String path) {
final OperationResult resultString = objectMethod(
pointerId,
'RouteBookmarks',
'exportToFile',
args: <String, Object>{'index': index, 'path': path},
);
return GemErrorExtension.fromCode(resultString['result']);
}