getLandmarksInArea method
- GeographicArea? area,
- int categoryId = LandmarkStore.invalidLandmarkCategId,
Returns landmarks within a geographic area, optionally filtered by categoryId.
Parameters
area: The geographic area to search inside. If null a default rectangle is used.categoryId: Optional category filter. Use uncategorizedLandmarkCategId for the uncategorized landmarks or invalidLandmarkCategId to fetch all landmarks.
Returns
- List<Landmark>: Landmarks matching the geographic and category criteria.
Implementation
List<Landmark> getLandmarksInArea({
final GeographicArea? area,
final int categoryId = LandmarkStore.invalidLandmarkCategId,
}) {
final OperationResult resultString = objectMethod(
pointerId,
'LandmarkStore',
'getLandmarksInArea',
args: <String, dynamic>{
'area':
area ??
RectangleGeographicArea(
topLeft: Coordinates(),
bottomRight: Coordinates(),
),
'categoryId': categoryId,
},
);
return LandmarkList.init(resultString['result']).toList();
}