getWaypoints method
- int index
Get waypoints of the route specified by index.
Parameters
- IN index The index of the route in the current sort order.
Returns
- The route waypoints if the route exists, null otherwise
Throws
- An exception if it fails.
Implementation
List<Landmark>? getWaypoints(final int index) {
final OperationResult resultString = objectMethod(
_pointerId,
'RouteBookmarks',
'getWaypoints',
args: index,
);
final GemError err =
GemErrorExtension.fromCode(resultString.data['gemApiError']);
if (err != GemError.success) {
return null;
}
return LandmarkList.init(resultString['result']).toList();
}