Interface PlacesProvider
- All Known Implementing Classes:
GooglePlacesProvider, PhotonPlacesProvider
public interface PlacesProvider
A place search service behind
PlacesAutocomplete.
PhotonPlacesProvider needs no key; GooglePlacesProvider uses the
Google Places API (New).-
Method Summary
Modifier and TypeMethodDescriptionautocomplete(String input, String sessionToken, LatLng bias) Suggests places for partial input.getDetails(String placeId, String sessionToken) Resolves a suggestion.
-
Method Details
-
autocomplete
Suggests places for partial input.
Parameters
-
input: what the user typed -
sessionToken: groups the requests of one search for billing; may be ignored -
bias: prefers results near this point, may be null
Returns
the suggestions
-
-
getDetails
Resolves a suggestion. This ends the session the token names.
Parameters
-
placeId: the ID of a prediction -
sessionToken: the token used for the autocomplete requests
Returns
the details
-
-