Places (Search) API Developer's Guide

Explore by Category

User Story

The user of an application on a mobile device is in Quay Street, Galway, Ireland, and wants to find out what museums lie within a radius of 150 meters of his location.

Request

The request based on the above user story needs to be made against the endpoint named discover/explore. In this example, we use an explicit location context (the parameter in) and we name the search category (the type of place to find) through the parameter named cat.

Here is the complete request:

https://places.cit.api.here.com/places/v1/discover/explore
        ?app_id={YOUR_APP_ID}
        &app_code={YOUR_APP_CODE}
        &in=53.2711,-9.0541;r=150
        &cat=sights-museums
        &pretty
      

Response

The response identifies one museum, the Galway City Museum, which is shown in "results" element below. Note that parts of the response have been modified as described in the introduction to Examples.

"results": {
  "items": [
    {
    "position": [
      53.26996,
      -9.05336
    ],
    "distance": 136,
    "title": "Galway City Museum",
    "averageRating": 0,
    "category": {
      "id": "museum",
      "title": "Museum",
      "href": "https://places.cit.api.here.com/places/v1/categories/places/museum
      ?app_id={YOUR_APP_ID},
      &app_code={YOUR_APP_CODE},
      "type": "urn:nlp-types:category",
      "system": "places"
    },
    "icon": "https://download.vcdn.cit.data.here.com/p/d/places2_stg/icons/categories/10.icon",
    "vicinity": "Spanish Parade<br/>Galway, County Galway",
    "having": [],
    "type": "urn:nlp-types:place",
    "href": "https://places.cit.api.here.com/places/v1/places/372gc3x1-9da51...",
    "id": "372gc3x1-9da511eec5cb49f3968815878eff56eb"
    }
  ]
  }

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.