google-maps-services-java icon indicating copy to clipboard operation
google-maps-services-java copied to clipboard

Add "airport" to the PlaceAutocompleteType enum

Open guytar1220 opened this issue 1 year ago • 1 comments

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 avatar Sep 27 '24 21:09 guytar1220

Oh gosh sorry... very similar to https://github.com/googlemaps/google-maps-services-java/issues/877

guytar1220 avatar Sep 27 '24 21:09 guytar1220