
    ph                     0    S r SSKJr    SS jr  SS jrg)z3Performs requests to the Google Maps Geocoding API.    )convertNc                 "   0 nU(       a  XS'   U(       a  X'S'   U(       a  [         R                  " U5      US'   U(       a  [         R                  " U5      US'   U(       a  XWS'   U(       a  XgS'   U R                  SU5      R	                  S/ 5      $ )	a  
Geocoding is the process of converting addresses
(like ``"1600 Amphitheatre Parkway, Mountain View, CA"``) into geographic
coordinates (like latitude 37.423021 and longitude -122.083739), which you
can use to place markers or position the map.

:param address: The address to geocode.
:type address: string

:param place_id: A textual identifier that uniquely identifies a place,
    returned from a Places search.
:type place_id: string

:param components: A component filter for which you wish to obtain a
    geocode, for example: ``{'administrative_area': 'TX','country': 'US'}``
:type components: dict

:param bounds: The bounding box of the viewport within which to bias geocode
    results more prominently.
:type bounds: string or dict with northeast and southwest keys.

:param region: The region code, specified as a ccTLD ("top-level domain")
    two-character value.
:type region: string

:param language: The language in which to return results.
:type language: string

:rtype: list of geocoding results.
addressplace_id
componentsboundsregionlanguage/maps/api/geocode/jsonresults)r   r   r   _requestget)clientr   r   r   r   r	   r
   paramss           lC:\Users\julio\OneDrive\Documentos\Trabajo\IdeasFrscas\Cabanna\env\Lib\site-packages\googlemaps/geocoding.pygeocoder      s    B F#y%z&11*=|">>&1x!x%z??3V<@@BOO    c                 \   [         R                  " U5      (       a  SU;  a  SU0nOS[         R                  " U5      0nU(       a  [         R                  " SU5      US'   U(       a  [         R                  " SU5      US'   U(       a  XES'   U R	                  SU5      R                  S	/ 5      $ )
aq  
Reverse geocoding is the process of converting geographic coordinates into a
human-readable address.

:param latlng: The latitude/longitude value or place_id for which you wish
    to obtain the closest, human-readable address.
:type latlng: string, dict, list, or tuple

:param result_type: One or more address types to restrict results to.
:type result_type: string or list of strings

:param location_type: One or more location types to restrict results to.
:type location_type: list of strings

:param language: The language in which to return results.
:type language: string

:rtype: list of reverse geocoding results.
,r   latlng|result_typelocation_typer
   r   r   )r   	is_stringr   	join_listr   r   )r   r   r   r   r
   r   s         r   reverse_geocoder   N   s    0   S%6f%GNN623 ' 1 1#{ C}")"3"3C"G%z??3V<@@BOOr   )NNNNNN)NNN)__doc__
googlemapsr   r   r    r   r   <module>r       s.   $ :  W[5Pp EI!&Pr   