Convenience wrapper around getPOICategories that returns a flat array of POICategory codes.
The returned codes serve two purposes:
Pass to discoverPlaces({ filters: { poiCategories } }) to filter search results by category.
Pass as POIsModulefilters.categories 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:
discoverPlaces({ filters: { poiCategories } })to filter search results by category.POIsModulefilters.categoriesto 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.