TomTom Maps for JavaScript
    Preparing search index...

    Type Alias POICategoryGroup

    POICategoryGroup: keyof typeof poiCategoryGroups

    POI category group type.

    Represents predefined groups of related POI categories for convenient filtering. Each group contains multiple MapStylePOICategory values that share a common theme.

    Using category groups simplifies filtering by allowing you to show or hide multiple related POI types with a single filter value.

    Available groups:

    • FOOD_DRINKS_GROUP - Restaurants, cafes, fast food, wineries, etc.
    • SHOPPING_GROUP - Stores, malls, markets, supermarkets, etc.
    • TRANSPORTATION_GROUP - Airports, train stations, bus stops, ferry terminals, etc.
    • HEALTH_GROUP - Hospitals, clinics, pharmacies, doctors, dentists, etc.
    • PARKING_GROUP - Parking garages and open parking areas
    • HOLIDAY_TOURISM_GROUP - Tourist attractions, museums, beaches, scenic views, etc.
    • EV_CHARGING_STATIONS_GROUP - Electric vehicle charging stations
    • GAS_STATIONS_GROUP - Gas and petrol stations
    • ACCOMMODATION_GROUP - Hotels, motels, camping grounds, etc.
    • ENTERTAINMENT_GROUP - Cinemas, theaters, nightlife, casinos, etc.
    • SPORTS_LEISURE_GROUP - Stadiums, sports centers, swimming pools, golf courses, etc.
    • EDUCATION_GROUP - Schools, universities, libraries, cultural centers
    • GOVERNMENT_GROUP - Government offices, courthouses, embassies, police, fire stations

    Filter to show only food-related POIs:

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

    Hide parking and gas stations:

    poisModule.configure({
    categoryFilter: {
    mode: 'hide',
    values: ['PARKING_GROUP', 'GAS_STATIONS_GROUP']
    }
    });

    Combine multiple groups for tourism use case:

    const tourismFilter = {
    mode: 'show',
    values: [
    'HOLIDAY_TOURISM_GROUP',
    'ACCOMMODATION_GROUP',
    'FOOD_DRINKS_GROUP',
    'ENTERTAINMENT_GROUP'
    ]
    };