-
Notifications
You must be signed in to change notification settings - Fork 946
New issue
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
Places: PlaceAutocompleteType is missing values #877
Comments
Found workaround with PlacesApi.placeAutocomplete(someContext, "Zurich", new PlaceAutocompleteRequest.SessionToken())
.custom("types", "route")
You can chain calls to have multiple types: PlacesApi.placeAutocomplete(someContext, "Zurich", new PlaceAutocompleteRequest.SessionToken())
.types(PlaceAutocompleteType.ESTABLISHMENT)
.types(PlaceAutocompleteType.ADDRESS) |
Actually I just tried to chain calls and the last value overwrites the first one :( |
For example, we could introduce on /**
* Restricts the results to places matching the specified types
*
* @param types The {@link PlaceType}s to restrict results to.
* @return Returns this {@code PlaceAutocompleteRequest} for call chaining.
*/
public PlaceAutocompleteRequest types(PlaceType... types) {
return param("types", join('|', types));
} What do you think @n10v ? |
|
Environment details
Library version: 2.1.2
Code example
2 issues:
The text was updated successfully, but these errors were encountered: