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": "Brandenburger Tor",
      "id": "here:pds:place:276u33db-8ee2e0de906e459cbade0593986debe9",
      "resultType": "place",
      "address": {
        "label": "Brandenburger Tor, Pariser Platz, 10117 Berlin, Deutschland"
      },
      "distance": 1466,
      "categories": [{ "id": "300-3000-0025", "primary": true }],
      "highlights": {
        "title": [{ "start": 0, "end": 4 }],
        "address": { "label": [{ "start": 0, "end": 4 }, { "start": 40, "end": 46 }] }
      }
    },
    {
      "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"
      },
      "distance": 1184,
      "categories": [
        { "id": "400-4100-0039", "primary": true },
        { "id": "100-1000-0000" },
        { "id": "400-4100-0035" },
        { "id": "400-4100-0043" }
      ],
      "highlights": {
        "title": [{ "start": 7, "end": 11 }],
        "address": { "label": [{ "start": 7, "end": 11 }] },
      }
    },
    {
      "title": "Brandesstraße, 10969 Berlin, Deutschland",
      "id": "here:af:street:IyCQuwVQv3TedYi8sKlIFD",
      "resultType": "street",
      "address": {
        "label": "Brandesstraße, 10969 Berlin, Deutschland"
      },
      "distance": 2355,
      "highlights": {
        "title": [{ "start": 0, "end": 4 }, { "start": 21, "end": 27 }],
        "address": {"label": [{ "start": 0, "end": 4 }, { "start": 21, "end": 27 }] }
      }
    }
  ],
  "queryTerms": [ ]
}

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

results matching ""

    No results matching ""