toLandmarkList method

List<Landmark> toLandmarkList()

Create a new landmark list from a path.

Converts this path into a list of Landmark objects.

This is useful when you want to compute path-based routes.

Returns

Implementation

List<Landmark> toLandmarkList() {
  final OperationResult resultString = objectMethod(
    pointerId,
    'Path',
    'toLandmarkList',
  );

  return LandmarkList.init(resultString['result']).toList();
}