Convenience wrapper around getPOICategories that returns a flat array of POICategory codes.
The returned codes serve two purposes:
Pass to search({ poiCategories }) to filter search results by category.
Pass to POIsModule.filterCategories() to filter the map's built-in POI icons.
Generic parent codes (e.g. 'RESTAURANT') are supported there; overly specific child
codes (e.g. 'ITALIAN_RESTAURANT') are not — use a parent or a POICategoryGroup instead.
Accepts the same parameters as getPOICategories — use filters to narrow by keyword.
Convenience wrapper around getPOICategories that returns a flat array of
POICategorycodes.The returned codes serve two purposes:
search({ poiCategories })to filter search results by category.POIsModule.filterCategories()to filter the map's built-in POI icons. Generic parent codes (e.g.'RESTAURANT') are supported there; overly specific child codes (e.g.'ITALIAN_RESTAURANT') are not — use a parent or aPOICategoryGroupinstead.Accepts the same parameters as getPOICategories — use
filtersto narrow by keyword.