getLandmarksInArea method

List<Landmark> getLandmarksInArea({
  1. GeographicArea? area,
  2. int categoryId = LandmarkStore.invalidLandmarkCategId,
})

Get the landmarks within the specified area.

Parameters

  • IN area The geographic area queried for landmarks.
  • IN categoryId The category id for which landmarks are retrieved (default LandmarkCategory.invalidLandmarkCategId, meaning all categories).

If the category ID is uncategorizedLandmarkCategId, all uncategorized landmarks are retrieved. If the category ID is invalidLandmarkCategId, all landmarks are retrieved.

Returns

  • The landmark list corresponding to given criteria.

Throws

  • An exception if it fails.

Implementation

List<Landmark> getLandmarksInArea({
  final GeographicArea? area,
  final int categoryId = LandmarkStore.invalidLandmarkCategId,
}) {
  final OperationResult resultString = objectMethod(_pointerId, 'LandmarkStore', 'getLandmarksInArea',
      args: <String, dynamic>{'area': area, 'categoryId': categoryId});

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