ConstThis object maps group names to arrays of MapStylePOICategory values. Each group holds POI categories that share a common theme or purpose, so a single identifier filters multiple related POI types.
Available groups:
FOOD_DRINKS_GROUP - Dining and beverage establishments (restaurants, cafes, pubs, etc.)SHOPPING_GROUP - Retail stores and shopping centers (shops, markets, supermarkets, etc.)TRANSPORTATION_GROUP - Transportation hubs and stops (airports, stations, terminals, etc.)HEALTH_GROUP - Healthcare facilities and services (hospitals, clinics, pharmacies, etc.)PARKING_GROUP - Parking facilities (garages and open parking areas)HOLIDAY_TOURISM_GROUP - Tourist attractions and recreational sites (museums, parks, beaches, etc.)EV_CHARGING_STATIONS_GROUP - Electric vehicle charging locationsGAS_STATIONS_GROUP - Fuel stations for traditional vehiclesACCOMMODATION_GROUP - Lodging facilities (hotels, motels, camping grounds, etc.)ENTERTAINMENT_GROUP - Entertainment venues (cinemas, theaters, nightlife, casinos, etc.)SPORTS_LEISURE_GROUP - Sports and leisure facilities (stadiums, gyms, pools, golf courses, etc.)EDUCATION_GROUP - Educational institutions (schools, universities, libraries, etc.)GOVERNMENT_GROUP - Government and public safety facilities (offices, courts, embassies, police, fire stations)Filter to show only food-related POIs:
import { poiCategoryGroups } from '@tomtom-org/maps-sdk/map';
const foodCategories = poiCategoryGroups.FOOD_DRINKS_GROUP;
console.log(foodCategories);
// ['RESTAURANT', 'FAST_FOOD', 'CAFE_PUB', 'PUB', 'WINERY', ...]
Use with POI module filtering:
poisModule.updateConfig({ filters: { categories: { show: 'only', values: ['FOOD_DRINKS_GROUP', 'ENTERTAINMENT_GROUP'] } } });
Predefined groups of related POI categories for convenient filtering.