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

    Properties

    Properties

    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 position parameters were specified in the request, the distance field will show the distance between the geo bias and the returned results.

    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".