We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library version: 2.1.2
PlacesApi.placeAutocomplete(someContext, "Zurich", new PlaceAutocompleteRequest.SessionToken()) .types(PlaceAutocompleteType.ESTABLISHMENT)
2 issues:
The text was updated successfully, but these errors were encountered:
The PlaceAutocompleteType enum only covers a small subset of available types according to https://developers.google.com/maps/documentation/places/web-service/supported_types#table2
Found workaround with .custom method:
.custom
PlacesApi.placeAutocomplete(someContext, "Zurich", new PlaceAutocompleteRequest.SessionToken()) .custom("types", "route")
There is no way to use multiple types, which is possible via REST calls.
You can chain calls to have multiple types:
PlacesApi.placeAutocomplete(someContext, "Zurich", new PlaceAutocompleteRequest.SessionToken()) .types(PlaceAutocompleteType.ESTABLISHMENT) .types(PlaceAutocompleteType.ADDRESS)
Sorry, something went wrong.
Actually I just tried to chain calls and the last value overwrites the first one :(
No branches or pull requests
Environment details
Library version: 2.1.2
Code example
2 issues:
The text was updated successfully, but these errors were encountered: