public class PlacesClient extends AbstractClient
Client for Algolia Places.
AbstractClient.LibraryVersion| Constructor and Description |
|---|
PlacesClient()
Create a new unauthenticated Algolia Places client.
|
PlacesClient(String applicationID,
String apiKey)
Create a new authenticated Algolia Places client.
|
| Modifier and Type | Method and Description |
|---|---|
Request |
searchAsync(PlacesQuery params,
CompletionHandler completionHandler)
Search for places.
|
addUserAgent, getApplicationID, getConnectTimeout, getHeader, getHostDownDelay, getReadHosts, getReadTimeout, getSearchTimeout, getUserAgents, getWriteHosts, hasUserAgent, removeUserAgent, setConnectTimeout, setHeader, setHostDownDelay, setHosts, setReadHosts, setReadTimeout, setSearchTimeout, setWriteHostspublic PlacesClient(@NonNull
String applicationID,
@NonNull
String apiKey)
Create a new authenticated Algolia Places client.
applicationID - The application ID (available in your Algolia Dashboard).apiKey - A valid API key for the service.public PlacesClient()
Create a new unauthenticated Algolia Places client.
NOTE: The rate limit for the unauthenticated API is significantly lower than for the authenticated API.
public Request searchAsync(@NonNull PlacesQuery params, @NonNull CompletionHandler completionHandler)
Search for places.
params - Search parameters.completionHandler - The listener that will be notified of the request’s outcome.