add administrativeArea, postalCode to addressverification when using USPS CASS

Abierto
#526 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
42/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
api

Línea de trabajo

Localiza la implementación en Python del método addressvalidation y compara sus argumentos de solicitud con la documentación enlazada de Address Validation API para enableUspsCass. Añade compatibilidad con administrativeArea y postalCode y verifica después que ambos valores se puedan enviar junto con los argumentos existentes.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

triage me type: feature request

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.

Lenguaje dominante
Python
Estrellas
5k
Forks
1.4k
Merge medio
5 h 9 min
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de googlemaps/google-maps-services-python

Todos los issues de googlemaps/google-maps-services-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.