requestPoiCategories
abstract fun requestPoiCategories(options: PoiCategoryOptions): Result<PoiCategoryResponse, SearchFailure>
Synchronously provides a full list of POI categories and subcategories together with their translations and synonyms.
Return
The Result containing a PoiCategoryResponse if the call succeeds, or a SearchFailure if it fails.
Parameters
options
The object containing the properties to fetch POI category details.
abstract fun requestPoiCategories(options: PoiCategoryOptions, callback: PoiCategoryCallback): Cancellable
Asynchronously provides a complete list of POI categories and subcategories with their translations and synonyms.
Return
A cancellable operation.
Parameters
options
The object containing the properties to fetch POI category details.
callback
The PoiCategoryCallback invoked when the fetch operation has finished, either successfully or with an error. The callback is executed on the main thread.