TomTom Maps for JavaScript
    Preparing search index...

    Variable poiCategoryGroupsConst

    poiCategoryGroups: Record<string, MapStylePOICategory[]> = ...

    Predefined groups of related POI categories for convenient filtering.

    This object maps group names to arrays of MapStylePOICategory values. Each group contains POI categories that share a common theme or purpose, making it easier to filter multiple related POI types with a single identifier.

    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 locations
    • GAS_STATIONS_GROUP - Fuel stations for traditional vehicles
    • ACCOMMODATION_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-international/maps-sdk-js/map';

    const foodCategories = poiCategoryGroups.FOOD_DRINKS_GROUP;
    console.log(foodCategories);
    // ['RESTAURANT', 'FAST_FOOD', 'CAFE_PUB', 'PUB', 'WINERY', ...]

    Use with POI module filtering:

    poisModule.configure({
    categoryFilter: {
    mode: 'show',
    values: ['FOOD_DRINKS_GROUP', 'ENTERTAINMENT_GROUP']
    }
    });