Add "airport" to the PlaceAutocompleteType enum

未關閉
#1,005 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
1/5
預估耗時
1 小時以內
新手友好度
48/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
java
領域
api

研究方向

找出 PlaceAutocompleteType enum,並檢查其現有常數與 URL 值序列化。新增機場類型,並驗證 PlacesApi.placeAutocomplete 是否能產生預期的機場值。

由索引模型根據 Issue 內容生成。

描述

triage me type: feature request

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

主要語言
Java
星號
1.8k
分支
972
平均合併
5 小時 7 分鐘
30 天內合併 PR
1

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

googlemaps/google-maps-services-java 的其他 Issue

查看 googlemaps/google-maps-services-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。