This is the documentation of version 1.0.0-rc.4. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias NearbyIntentDetails

    Details for a nearby search query intent.

    Contains information about what the user is searching for and where, extracted from proximity-based queries.

    type NearbyIntentDetails = {
        position: Position;
        query: string;
        text: string;
    }
    Index
    position: Position

    Position of the reference location in the nearby search.

    For example, for "restaurant near Berlin central station", this is the position of Berlin Central Station. If the request specified a geoBias, each result's distance is the distance between the geo bias and that result.

    query: string

    Normalized phrase for what the user is searching for.

    For example, for "restaurant near Berlin central station", the query is "restaurant".

    text: string

    Normalized phrase for the reference location.

    For example, for "restaurant near Berlin central station", the text is "berlin central station".