googlemaps / googlemaps/google-maps-services-java

Add "airport" to the PlaceAutocompleteType enum

Open
#1,005 1 comment 0 reactions 0 assignees View on GitHub
triage me type: feature request
Dominant language
Java
Stars
1.8k
Forks
973
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.