Ë
    sœ%iô
  ã                   ó&   — d Z ddlmZ dZd„ Zdd„Zy)z<Performs requests to the Google Maps Address Validation API.é    )Ú
exceptionsz(https://addressvalidation.googleapis.comc                 ó&   — | j                  «       }|S )zŒ
    Mimics the exception handling logic in ``client._get_body``, but
    for addressvalidation which uses a different response format.
    )Újson)ÚresponseÚbodys     úz/var/www/html/navyabakers_fullstack/navyabakers_prod/venv_new/lib/python3.12/site-packages/googlemaps/addressvalidation.pyÚ_addressvalidation_extractr	      s   € ð
 =‰=‹?€DØ€Kó    Nc                 óˆ   — dd|ii}|||d   d<   |||d   d<   |dus|||d<   | j                  di t        t        |¬«      S )	a¦  
    The Google Maps Address Validation API returns a verification of an address
    See https://developers.google.com/maps/documentation/address-validation/overview
    request must include parameters below.
    :param addressLines: The address to validate
    :type addressLines: array 
    :param regionCode: (optional) The country code
    :type regionCode: string  
    :param locality: (optional) Restrict to a locality, ie:Mountain View
    :type locality: string
    :param enableUspsCass For the "US" and "PR" regions only, you can optionally enable the Coding Accuracy Support System (CASS) from the United States Postal Service (USPS)
    :type locality: boolean
    ÚaddressÚaddressLinesÚ
regionCodeÚlocalityFÚenableUspsCassz/v1:validateAddress)Úbase_urlÚextract_bodyÚ	post_json)Ú_requestÚ_ADDRESSVALIDATION_BASE_URLr	   )Úclientr   r   r   r   Úparamss         r   Úaddressvalidationr   /   s€   € ð  	Ø˜Lð
ð€Fð ÐØ*4ˆˆyÑ˜,Ñ'àÐØ(0ˆˆyÑ˜*Ñ%à˜UÑ" nÐ&@Ø#1ˆÐÑ à?‰?Ð0°"Ü$?Ü(BØ%+ð ó -ð -r
   )NNN)Ú__doc__Ú
googlemapsr   r   r	   r   © r
   r   ú<module>r      s!   ðñ$ CÝ !ð IÐ òô,!-r
   