TomTom Maps for JavaScript
    Preparing search index...

    Type Alias AutocompleteSearchSegmentType

    AutocompleteSearchSegmentType: "brand" | "category" | "plaintext"

    Segment type for autocomplete results.

    Determines the type of entity being suggested in autocomplete results.

    Segment Types:

    • brand: Chain or brand names (e.g., "McDonald's", "Starbucks")
    • category: POI categories (e.g., "Restaurant", "Gas Station")
    • plaintext: Free-form text (addresses, place names)
    // Filter for brand results only
    const resultType: AutocompleteSearchSegmentType[] = ['brand'];

    // Filter for categories and brands
    const resultType: AutocompleteSearchSegmentType[] = ['category', 'brand'];