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

    Type Alias SearchSuggestionsParams

    SearchSuggestionsParams: CommonServiceParams & {
        filters?: {
            areaTypes?: GeographyType[];
            boundingBox?: HasBBox;
            countries?: string[];
            kinds?: SearchSuggestionKind[];
            poiTypes?: POICategory[];
        };
        maxResults?: number;
        origin?: HasLngLat;
        query: string;
        view?: View;
    }

    Parameters for getSearchSuggestions.

    Type Declaration

    • Optionalfilters?: {
          areaTypes?: GeographyType[];
          boundingBox?: HasBBox;
          countries?: string[];
          kinds?: SearchSuggestionKind[];
          poiTypes?: POICategory[];
      }

      What the result set is restricted to.

    • OptionalmaxResults?: number

      Maximum results in the list.

      5
      

      Capped at 10.

    • Optionalorigin?: HasLngLat

      The point to search around.

      Ranks nearer results higher without excluding anything, and is what distanceInMeters is measured from.

    • query: string

      What the user typed. A partial query is fine; so is a complete one.

    • Optionalview?: View

    Shaped after Places Search v3's suggest body: filters for what narrows the result set, and origin for the point to search around.