TomTom Maps for JavaScript
    Preparing search index...

    Type Alias AutocompleteSearchMatch

    A single match between a segment and the input query.

    Defines a substring of the input query that corresponds to the recognized entity.

    type AutocompleteSearchMatch = {
        length: number;
        offset: number;
    }
    Index

    Properties

    Properties

    length: number

    Length of the matched substring in characters.

    offset: number

    Starting position of the matched substring.

    Zero-based offset in the input query string.