getLandmarkCount method

int getLandmarkCount(
  1. int categoryId
)

Get the number of all landmarks within the specified category.

If the category ID is uncategorizedLandmarkCategId, the uncategorized landmarks count is returned.

If the category ID is invalidLandmarkCategId, the total landmarks count is returned.

Parameters

  • IN categoryId The category ID

Returns

  • The number of landmarks

Throws

  • An exception if it fails.

Implementation

int getLandmarkCount(final int categoryId) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'LandmarkStore',
    'getLandmarkCount',
    args: categoryId,
  );

  return resultString['result'];
}