java.lang.Object | |
↳ | com.google.android.gms.location.places.PlaceFilter |
Specifies constraints to use for filtering the results of some API methods.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
PlaceFilter without any constraints.
| |||||||||||
Creates a new
PlaceFilter with the given constraints.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the set of place IDs that this filter will allow.
| |||||||||||
Checks whether or not this filter will allow only places that are currently open.
| |||||||||||
Checks whether the given
Place matches the constraints specified in this filter.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a new PlaceFilter
without any constraints.
A filter without constraints will not filter any results.
Creates a new PlaceFilter
with the given constraints.
Places may be filtered by whether or not they are currently open, or by specific place IDs. For more information on place IDs, see the developer's guide.
requireOpenNow | Whether or not to restrict the results to places which are currently open. |
---|---|
restrictToPlaceIds | The place IDs that this filter should allow. If this is specified, only places corresponding to the given IDs will be returned. If null, no filtering by place IDs will be done. |
Returns the set of place IDs that this filter will allow.
Checks whether or not this filter will allow only places that are currently open.
Checks whether the given Place
matches the constraints specified in this filter.