getPoiCategories static method

List<LandmarkCategory> getPoiCategories(
  1. int genericCategory
)

Get the list of POI categories for the given generic category.

Parameters

Returns

  • The list of POI categories

Throws

  • An exception if it fails

Implementation

static List<LandmarkCategory> getPoiCategories(final int genericCategory) {
  final OperationResult resultString = staticMethod(
    'GenericCategories',
    'getPoiCategories',
    args: genericCategory,
  );

  if (resultString['result'] == 0) {
    return <LandmarkCategory>[];
  }
  return LandmarkCategoryList.init(resultString['result'], 0).toList();
}