poiCategories

abstract fun poiCategories(categoryOptions: CategoryOptions): Result<CategoryResponse, SearchError>

Performs a synchronous point of interest (POI) category detail fetch using the provided CategoryOptions object. Delivers a Result containing a CategoryResponse, or a SearchError if the call fails.

Return

The Result containing a CategoryResponse if the call succeeds, or a SearchError if it fails.

Parameters

categoryOptions

The object containing the properties to fetch POI category details.


abstract fun poiCategories(categoryOptions: CategoryOptions, poiCategoryCallback: CategoryCallback): Cancellable

Performs an asynchronous point of interest (POI) category detail fetch using the provided CategoryOptions object. Returns the result using the provided CategoryCallback.

Return

A cancellable operation.

Parameters

categoryOptions

The object containing the properties to fetch POI category details.

poiCategoryCallback

The CategoryCallback invoked when the fetch operation has finished, either successfully or with an error. The callback will be executed on the main thread.