add administrativeArea, postalCode to addressverification when using USPS CASS
還沒有人認領這個 Issue。
評估
研究方向
找到 addressvalidation 方法的 Python 實作,並將其要求引數與連結的 enableUspsCass Address Validation API 文件進行比較。新增對 administrativeArea 和 postalCode 的支援,然後驗證這兩個值都可以與現有引數一起傳送。
由索引模型根據 Issue 內容生成。
描述
Thanks for stopping by to let us know something could be better!
PLEASE READ
If you have a support contract with Google, please create an issue in the support console. This will ensure a timely response.
Discover additional support services for the Google Maps Platform, including developer communities, technical guidance, and expert support at the Google Maps Platform support resources page.
If your bug or feature request is not related to this particular library, please visit the Google Maps Platform issue trackers.
Check for answers on StackOverflow with the google-maps tag.
Is your feature request related to a problem? Please describe.
When using the enableUspsCass argument, we are noticing inconsistent responses with administrativeArea and postalCode being included in the addressLines list. the addressvalidation method should allow additional properties for these values in the arguments, to match what can be sent to the API (see: https://developers.google.com/maps/documentation/address-validation/requests-validate-address#enable-cass)
Describe the solution you'd like
Modify the above method to support two additional arguments, such as
def addressvalidation(client, addressLines, regionCode=None , locality=None, enableUspsCass=None, administrativeArea=None, postalCode=None):
I have forked this repository and made the desired changes, if this solution is acceptable.
Describe alternatives you've considered
Not including enableUspsCass as an option, however this package could be modified to support both.
Additional context
Add any other context or screenshots about the feature request here.
- 主要語言
- Python
- 星號
- 5k
- 分支
- 1.4k
- 平均合併
- 5 小時 9 分鐘
- 30 天內合併 PR
- 1
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
googlemaps/google-maps-services-python 的其他 Issue
-
maps未關閉triage me type: bug
難度 5/5 一週以上 新手友好度 10/100
-
triage me type: feature request
難度 5/5 一週以上 新手友好度 20/100
googlemaps/google-maps-services-python#541 · 3 則留言 · 38 個 reaction ·
-
Release failed - unexpected keyword argument: enable_address_descriptor still not supported可能已有人在做 @Rahulcse79 於 194 天前認領。 未關閉triage me type: bug
難度 3/5 1-2 天 新手友好度 35/100
googlemaps/google-maps-services-python#540 · 1 則留言 ·
-
triage me type: question
難度 1/5 1 小時以內 新手友好度 15/100
googlemaps/google-maps-services-python#539 · 3 則留言 ·
-
triage me type: bug
難度 3/5 1-2 天 新手友好度 30/100
查看 googlemaps/google-maps-services-python 的全部 Issue
相似的 Issue
-
bug drawing-tools
難度 2/5 1-3 小時 新手友好度 76/100
cofade/open-garden-planner#827 ·
維護者通常 1 天內回覆
-
難度 1/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
bug documentation good first issue help wanted testing
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆
-
難度 1/5 1-3 小時 新手友好度 88/100
hololinked-dev/hololinked#213 ·
-
Show evidence time and supersede warnings in the memory inspector可能已有人在做 @Sinchanak-212 今天認領。 未關閉area: ux good first issue priority: medium
難度 2/5 1-3 小時 新手友好度 84/100