Skip to content
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

Add "airport" to the PlaceAutocompleteType enum #1005

Open
guytar1220 opened this issue Sep 27, 2024 · 1 comment
Open

Add "airport" to the PlaceAutocompleteType enum #1005

guytar1220 opened this issue Sep 27, 2024 · 1 comment
Labels
triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@guytar1220
Copy link

Hello, thanks for your work, I like your library a lot.... I would like to use the PlacesApi.placeAutocomplete for getting airports.

From my local tests simply adding airport to the PlaceAutocompleteType enum would do the trick
`
public enum PlaceAutocompleteType implements StringJoin.UrlValue {
GEOCODE("geocode"),
ADDRESS("address"),
AIRPORT("airport"), // <-- here
ESTABLISHMENT("establishment"),
REGIONS("(regions)"),
CITIES("(cities)");

PlaceAutocompleteType(final String placeType) {
this.placeType = placeType;
}

private final String placeType;

@OverRide
public String toUrlValue() {
return placeType;
}

@OverRide
public String toString() {
return placeType;
}
}
`

Many thanks
Stephane

@guytar1220 guytar1220 added triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Sep 27, 2024
@guytar1220
Copy link
Author

Oh gosh sorry... very similar to #877

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

1 participant