Search places by their category

To search for hotels at the geo-position (42.36399,-71.05493) within a radius of 100m, send the following request:

GET https://discover.search.hereapi.com/v1/
    discover
    ?in=circle:42.36309,-71.05495;r=150
    &q=hotels

Authorization: Bearer [your token]

The result lists detailed information about the related location objects:

{
  "items": [
    {
      "title": "Bricco",
      "id": "here:pds:place:840drt2z-da7d929da56241ab90a63e9b04581a3e",
      "resultType": "place",
      "address": {
        "label": "Bricco, 241 Hanover St, Boston, MA 02113, United States",
        "countryCode": "USA",
        "countryName": "United States",
        "state": "Massachusetts",
        "county": "Suffolk",
        "city": "Boston",
        "district": "North End",
        "street": "Hanover St",
        "postalCode": "02113",
        "houseNumber": "241"
      },
      "position": { "lat": 42.36309, "lng": -71.05495 },
      "access": [{ "lat": 42.36315, "lng": -71.05511 }],
      "distance": 0,
      "categories": [
        { "id": "500-5000-0000", "primary": true },
        { "id": "100-1000-0000" },
        { "id": "100-1000-0001" },
        { "id": "200-2000-0011" },
        { "id": "500-5000-0053" }
      ],
      "foodTypes": [
        { "id": "304-000", "primary": true },
        { "id": "800-075" }],
      "contacts": [
        {
          "phone": [{ "value": "+16172486800" }],
          "fax": [{ "value": "+16173670666" }],
          "www": [{ "value": "http://www.bricco.com" }],
          "email": [{ "value": "briccosuites@dventures.net" }]
        }
      ],
      "openingHours": [
        {
          "text": [
            "Mon-Thu: 00:00 - 23:00",
            "Fri, Sat: 00:00 - 02:00, 16:00 - 23:59",
            "Sun: 00:00 - 02:00, 16:00 - 23:00"
          ],
          "isOpen": true,
          "structured": [
            { "start": "T000000", "duration": "PT23H59M", "recurrence": "FREQ:DAILY;BYDAY:MO,TU,WE,TH,FR,SA" },
            { "start": "T160000", "duration": "PT07H59M", "recurrence": "FREQ:DAILY;BYDAY:FR,SA" },
            { "start": "T000000", "duration": "PT02H00M", "recurrence": "FREQ:DAILY;BYDAY:SU" },
            { "start": "T160000", "duration": "PT07H00M", "recurrence": "FREQ:DAILY;BYDAY:SU" }
          ]
        }
      ]
    },
    ...
  ]
}

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

results matching ""

    No results matching ""