Wraps getPOICategories to return a flat array of POICategory codes, for the uses it lists.
POICategory
It accepts the same parameters as getPOICategories. Use filters to narrow by keyword.
filters
Optional parameters. Uses global TomTomConfig by default.
TomTomConfig
// All category codesconst codes = await getPOICategoryCodes();// Codes matching 'restaurant' — for search or generic map POI filteringconst restaurantCodes = await getPOICategoryCodes({ filters: ['restaurant'] }); Copy
// All category codesconst codes = await getPOICategoryCodes();// Codes matching 'restaurant' — for search or generic map POI filteringconst restaurantCodes = await getPOICategoryCodes({ filters: ['restaurant'] });
Wraps getPOICategories to return a flat array of
POICategorycodes, for the uses it lists.It accepts the same parameters as getPOICategories. Use
filtersto narrow by keyword.