googlemaps / googlemaps/google-maps-services-java

Add "airport" to the PlaceAutocompleteType enum

未关闭
#1,005 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
triage me type: feature request
主要语言
Java
星标
1.8k
派生
973
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。