PlaceCategory constructor - PlaceCategory - search library - Dart API
PlaceCategory
PlaceCategory constructor
- String id
Creates a new instance of this class.
idPlace category ID. The HERE places category system provides three levels of granularity:
- Level 1 represents high level groupings, such as "Eat and drink". Their IDs take the form "xxx", for example "100".
- Level 2 represents logical sub-groups or domains, such as "Eat and Drink / Restaurant". Their IDs take the form "xxx-xxxx", for example "100-1000".
- Level 3 provides the greatest level of granularity about place categorization, such as "Eat and Drink / Restaurant / Casual Dining". Their IDs take the form "xxx-xxxx-xxxx", for example "100-1000-0001". The category ID can be provided as one of the predefined values, such as PlaceCategory.eatAndDrinkRestaurant or as a literal string that matches one of the category IDs defined by the HERE Search service. Only level 1 and 2 category IDs are predefined. The complete list of supported category IDs, including level 3, can be found online: https://www.here.com/docs/bundle/geocoding-and-search-api-v7-api-reference/page/index.html.
Implementation
factory PlaceCategory(String id) => $prototype.make(id);