Android SDK Version
  • java.lang.Object
    • com.facebook.places.model.PlaceSearchRequestParams

public final class PlaceSearchRequestParams
extends java.lang.Object
Describes the parameters to create a place search request with PlaceManager.
Nested Class Summary
Modifier and TypeClass and Description
static class PlaceSearchRequestParams.Builder
Describes the builder to create a PlaceSearchRequestParams
Method Summary
Modifier and TypeMethod and Description
java.util.Set<java.lang.String>getCategories()
Gets the categories used to filter the place search results.
intgetDistance()
Gets the maximum distance (in meters) from the location specified.
java.util.Set<java.lang.String>getFields()
Gets the list of fields to be returned in the response.
intgetLimit()
Sets the maximum number of results to be returned.
java.lang.StringgetSearchText()
Gets the name of the place to search for.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getDistance

public int getDistance()
Gets the maximum distance (in meters) from the location specified. This can be used only in conjunction with a location.
Returns:
The maximum distance in meters from the location specified.

getLimit

public int getLimit()
Sets the maximum number of results to be returned.
Returns:
The maximum number of results to return.

getSearchText

public java.lang.String getSearchText()
Gets the name of the place to search for.

getCategories

public java.util.Set<java.lang.String> getCategories()
Gets the categories used to filter the place search results.
Returns:
The categories used to filter the place search results.

getFields

public java.util.Set<java.lang.String> getFields()
Gets the list of fields to be returned in the response.
Returns:
The list of fields to be returned in the response.