Class TypeFilter
Place type filters.
Only Place types from Table a are supported.
A place can only have a single primary type associated with it. For example, the primary type might be "mexican_restaurant" or "steak_house". Use included_primary_types and excluded_primary_types to filter the results on a place's primary type.
A place can also have multiple type values associated with it. For example a restaurant might have the following types: "seafood_restaurant", "restaurant", "food", "point_of_interest", "establishment". Use included_types and excluded_types to filter the results on the list of types associated with a place.
If a search is specified with multiple type restrictions, only places that satisfy all of the restrictions are returned. For example, if you specify {"included_types": ["restaurant"], "excluded_primary_types": ["steak_house"]}, the returned places provide "restaurant" related services but do not operate primarily as a "steak_house".
If there are any conflicting types, i.e. a type appears in both included_types and excluded_types types or included_primary_types and excluded_primary_types, an INVALID_ARGUMENT error is returned.
One of included_types or included_primary_types must be set.
Implements
Namespace: Google.Maps.AreaInsights.V1
Assembly: Google.Maps.AreaInsights.V1.dll
Syntax
public sealed class TypeFilter : IMessage<TypeFilter>, IEquatable<TypeFilter>, IDeepCloneable<TypeFilter>, IBufferMessage, IMessage
Constructors
TypeFilter()
Declaration
public TypeFilter()
TypeFilter(TypeFilter)
Declaration
public TypeFilter(TypeFilter other)
Parameters
Type | Name | Description |
---|---|---|
TypeFilter | other |
Properties
ExcludedPrimaryTypes
Optional. Excluded primary Place types.
Declaration
public RepeatedField<string> ExcludedPrimaryTypes { get; }
Property Value
Type | Description |
---|---|
RepeatedField<string> |
ExcludedTypes
Optional. Excluded Place types.
Declaration
public RepeatedField<string> ExcludedTypes { get; }
Property Value
Type | Description |
---|---|
RepeatedField<string> |
IncludedPrimaryTypes
Optional. Included primary Place types.
Declaration
public RepeatedField<string> IncludedPrimaryTypes { get; }
Property Value
Type | Description |
---|---|
RepeatedField<string> |
IncludedTypes
Optional. Included Place types.
Declaration
public RepeatedField<string> IncludedTypes { get; }
Property Value
Type | Description |
---|---|
RepeatedField<string> |