TomTom Maps for JavaScript
    Preparing search index...

    Variable locatePlacesConst

    locatePlaces: (
        query: string,
        queryAs: QueryAs,
        options: { bias?: GeoBias; limit: number },
        execOptions?: ToolExecuteOptions,
    ) => Promise<Place[]>

    Resolves a query string to up to limit Places, using POI search when queryAs === 'poi', otherwise geocoding. The optional bias narrows the search to a region.

    Type Declaration

      • (
            query: string,
            queryAs: QueryAs,
            options: { bias?: GeoBias; limit: number },
            execOptions?: ToolExecuteOptions,
        ): Promise<Place[]>
      • Parameters

        Returns Promise<Place[]>