CategoryQuery (API Reference)
Class CategoryQuery
The options to specify a query by categories.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classArea to perform search on. -
Field Summary
FieldsModifier and TypeFieldDescriptionArea in which to provide the most relevant places.List of categories to be included.List of categories and subcategories to be excluded.List of chains to be excluded.List of food types to be excluded.Full-text filter on POI names/titles.List of chains to be included.List of food types to be included.The filter options to specify a place in query. -
Constructor Summary
ConstructorsConstructorDescriptionCategoryQuery(PlaceCategory category, CategoryQuery.Area area) Constructs a new instance of this class from provided parameters.CategoryQuery(PlaceCategory category, String filter, CategoryQuery.Area area) Constructs a new instance of this class from provided parameters.CategoryQuery(List<PlaceCategory> categories, CategoryQuery.Area area) Constructs a new instance of this class from provided parameters.CategoryQuery(List<PlaceCategory> categories, String filter, CategoryQuery.Area area) Constructs a new instance of this class from provided parameters. -
Method Summary
-
Field Details
-
categories
List of categories to be included. A place can be assigned multiple categories. If any of them is in
CategoryQuery.categories, but none are inCategoryQuery.excludeCategories, that place will be included in the response. -
excludeCategories
List of categories and subcategories to be excluded. A place can be assigned multiple categories. If any of them is in
CategoryQuery.excludeCategories, that place will not be included in the response, regardless of whether any of its assigned categories have been included inCategoryQuery.categories. In short, an exclusion will always win over an inclusion. This is especially useful for excluding specific subcategories from the main category. -
includeChains
List of chains to be included. A place can be assigned multiple chains. If any of them is in
CategoryQuery.includeChains, but none are inCategoryQuery.excludeChains, that place will be included in the response. -
excludeChains
List of chains to be excluded. A place can be assigned multiple chains. If any of them is in
CategoryQuery.excludeChains, that place will not be included in the response, regardless of whether any of its assigned chains have been included inCategoryQuery.includeChains. In short, an exclusion will always win over an inclusion. -
includeFoodTypes
List of food types to be included. A place can be assigned multiple food types. If any of them is in
CategoryQuery.includeFoodTypes, but none are inCategoryQuery.excludeFoodTypes, that place will be included in the response. -
excludeFoodTypes
List of food types to be excluded. A place can be assigned multiple food types. If any of them is in
CategoryQuery.excludeFoodTypes, that place will not be included in the response, regardless of whether any of its assigned food types have been included inCategoryQuery.includeFoodTypes. In short, an exclusion will always win over an inclusion. -
filter
Full-text filter on POI names/titles. Results with a partial match are included in the response. By default the value is set to null and results will be based on other parameters provided.
-
placeFilter
The filter options to specify a place in query. Consists of fuel and truck options.
-
area
Area in which to provide the most relevant places.
-
-
Constructor Details
-
CategoryQuery
Constructs a new instance of this class from provided parameters.
- Parameters:
category-Category for query
area-Area in which to provide the most relevant places.
-
CategoryQuery
Constructs a new instance of this class from provided parameters.
- Parameters:
categories-List of categories.
area-Area in which to provide the most relevant places.
-
CategoryQuery
public CategoryQuery(@NonNull PlaceCategory category, @NonNull String filter, @NonNull CategoryQuery.Area area) Constructs a new instance of this class from provided parameters.
- Parameters:
category-Category for query
filter-Full-text filter on POI names/titles. Results with a partial match are included in the response.
area-Area in which to provide the most relevant places.
-
CategoryQuery
public CategoryQuery(@NonNull List<PlaceCategory> categories, @NonNull String filter, @NonNull CategoryQuery.Area area) Constructs a new instance of this class from provided parameters.
- Parameters:
categories-List of categories.
filter-Full-text filter on POI names/titles. Results with a partial match are included in the response.
area-Area in which to provide the most relevant places.
-
-
Method Details