googlemaps / googlemaps/google-maps-services-java

Add "airport" to the PlaceAutocompleteType enum

Đang mở
#1,005 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
triage me type: feature request
Ngôn ngữ chính
Java
Star
1.8k
Fork
973
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.