Search code examples
here-api

Is it possible to get the placeCategory id of a place? (iOS Here SDK Explore Edition)


I want to use the category id of the place described here: https://developer.here.com/documentation/geocoding-search-api/dev_guide/topics-places/places-category-system-full.html.

How can i get it? Via the searchEngine?

I tried:

        if !places.isEmpty {
            for place in places {
                let placeIdQuery = PlaceIdQuery(place.id)
                searchEngine.search(placeIdQuery: placeIdQuery, languageCode: .deDe, completion: onFollowUpSearchCompleted)
            }
        }

But i only get the same places.


Solution

  • Found it. Every Place has the optional details -> category.