Incomplete location query

A user of an application using /autosuggest is at a location in Berlin and intends to search the new airport named Berlin Brandenburg Willy Brandt through a query "berlin brandenburg". The application starts to emit autosuggest queries starting with the 3rd key-stoke. The 8th autosggest query will look like the following:

GET https://autosuggest.search.hereapi.com/v1/
    autosuggest
    ?at=52.5199813,13.3985138
    &q=berlin+bran

Authorization: Bearer [your token]

The result lists detailed information about the related location objects:

{
  "items": [
    {
      "title": "S-Bahn-Brandenburger Tor",
      "id": "here:pds:place:276u33db-d492a36b07554d62ac9b91cd79889acb",
      "resultType": "place",
      "address": { "label": "S-Bahn-Brandenburger Tor, Unter den Linden, 10117 Berlin, Deutschland" },
      "position": { "lat": 52.51658, "lng": 13.38193 },
      "access": [{ "lat": 52.51658, "lng": 13.38193 }],
      "distance": 1184,
      "categories": [
        { "id": "400-4100-0039", "name": "Pendlerzug", "primary": true },
        { "id": "100-1000-0000", "name": "Restaurant" },
        { "id": "400-4100-0035", "name": "Bahnhof" },
        { "id": "400-4100-0043", "name": "Lokaler/Regionaler Transit" }
      ],
      "references": [{ "supplier": { "id": "core" }, "id": "56120814" }],
      "highlights": { "title": [ ], "address": { "label": [ ] } }
    },
    {
      "title": "Brandenburger Tor",
      "id": "here:pds:place:276u33db-8ee2e0de906e459cbade0593986debe9",
      "resultType": "place",
      "address": { "label": "Brandenburger Tor, Pariser Platz 1, 10117 Berlin, Deutschland" },
      "position": { "lat": 52.51628, "lng": 13.37771 },
      "access": [{ "lat": 52.5163, "lng": 13.37799 }],
      "distance": 1466,
      "categories": [{ "id": "300-3000-0025", "name": "Historisches Bauwerk", "primary": true }, { "id": "700-7460-0115", "name": "Touristeninformation" }],
      "references": [{ "supplier": { "id": "core" }, "id": "800842663" }, { "supplier": { "id": "core" }, "id": "935939740" }],
      "highlights": { "title": [{ "start": 0, "end": 4 }], "address": { "label": [{ "start": 0, "end": 4 }] } }
    },
    {
      "title": "Gesundbrunnen-Center Berlin",
      "id": "here:pds:place:276u33db-84435950c4084967be9ccca7c6603d4e",
      "resultType": "place",
      "address": { "label": "Gesundbrunnen-Center Berlin, Badstraße 4, 13357 Berlin, Deutschland" },
      "position": { "lat": 52.54971, "lng": 13.38749 },
      "access": [{ "lat": 52.54965, "lng": 13.3874 }],
      "distance": 3389,
      "categories": [
        { "id": "600-6100-0062", "name": "Einkaufszentrum", "primary": true },
        { "id": "300-3000-0000", "name": "Sehenswürdigkeit" },
        { "id": "550-5510-0387", "name": "Fahrradreparaturstation" },
        { "id": "600-6200-0063", "name": "Kaufhaus" },
        { "id": "600-6800-0000", "name": "Kleidung und Accessoires" },
        { "id": "600-6800-0093", "name": "Spezialbekleidung" },
        { "id": "600-6900-0000", "name": "Konsumgüter" },
        { "id": "600-6900-0094", "name": "Sportfachgeschäft" },
        { "id": "600-6900-0096", "name": "Fachgeschäft" },
        { "id": "600-6900-0246", "name": "Fahrradladen/Fahrradzubehör" },
        { "id": "700-7450-0114", "name": "Postamt" }
      ],
      "chains": [{ "id": "6825" }],
      "references": [
        { "supplier": { "id": "core" }, "id": "50669554" },
        { "supplier": { "id": "tripadvisor" }, "id": "3166269" },
        { "supplier": { "id": "yelp" }, "id": "6SvL6NOKrknf9aTGK6f2Xw" }
      ],
      "highlights": { "title": [ ], "address": { "label": [ ] } }
    }
  ],
  "queryTerms": [ ]
}

More details about /autosuggest parameters can be found in the API Reference.

results matching ""

    No results matching ""