Ana
Ana

Reputation: 115

HERE Places (Search) API: Request parameter to specify the Places Category-Level to be included in API Response?

I am using the HERE Places (Search) API and my Responses include Places Categories on different Levels of the Places Category System (described here: https://developer.here.com/documentation/places/dev_guide/topics/place_categories/places-category-system.html)

Example Responses:

  1. Places Category Response of 1st Request for GPS Pair 1: "Fast Food" -> 3rd Level Category
  2. Places Category Response of 2nd Request for GPS Pair 2: "Eat and Drink" -> Top Level Category

Problem: I need all Places Categories in my responses on the same level for quantitative analysis (e.g. all on Top Level of Category System):

  1. "Eat and Drink" -> Top Level Category
  2. "Eat and Drink" -> Top Level Category

Question: Is there any request parameter to specify the Places Category Level to be included in the API response?

Thank you!

Upvotes: 1

Views: 232

Answers (1)

user3505695
user3505695

Reputation:

You can try to filter the result by category number/id provided that only listed numbers are supported. Also you can use comma and specify more numbers.

https://developer.here.com/documentation/places/dev_guide/topics/place_categories/category-100-eat-drink.html

https://developer.here.com/documentation/places/dev_guide/topics/place_categories/places-category-system.html

https://places.ls.hereapi.com/places/v1/browse?at=52.521,13.3807&cat=100-1000-0000&apikey={Your REST API_KEY}&cs=places

Upvotes: 1

Related Questions