googlemaps / googlemaps/google-maps-services-python
add administrativeArea, postalCode to addressverification when using USPS CASS
- 主要語言
- Python
- 星號
- 5k
- 分支
- 1.4k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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](https://cloud.google.com/support/). 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](https://developers.google.com/maps/support/).
If your bug or feature request is not related to this particular library, please visit the Google Maps Platform [issue trackers](https://developers.google.com/maps/support/#issue_tracker).
Check for answers on StackOverflow with the [google-maps](http://stackoverflow.com/questions/tagged/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.
貢獻指南
研究方向
Locate the Python implementation of the addressvalidation method and compare its request arguments with the linked Address Validation API documentation for enableUspsCass. Add support for administrativeArea and postalCode, then verify that both values can be sent alongside the existing arguments.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- api
- Issue 類型
- 功能
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100