
    .%i;                          d Z ddlmZ d Zd Zy)z3Performs requests to the Google Maps Elevation API.    )convertc                 t    dt        j                  |      i}| j                  d|      j                  dg       S )a  
    Provides elevation data for locations provided on the surface of the
    earth, including depth locations on the ocean floor (which return negative
    values)

    :param locations: List of latitude/longitude values from which you wish
        to calculate elevation data.
    :type locations: a single location, or a list of locations, where a
        location is a string, dict, list, or tuple

    :rtype: list of elevation data responses
    	locations/maps/api/elevation/jsonresults)r   shortest_path_requestget)clientr   paramss      n/var/www/html/navyabakers_fullstack/navyabakers_prod/venv/lib/python3.12/site-packages/googlemaps/elevation.py	elevationr      s8     700;<F??5v>BB9bQQ    c                     t        |      t        u rd|z  }nt        j                  |      }||d}| j	                  d|      j                  dg       S )a  
    Provides elevation data sampled along a path on the surface of the earth.

    :param path: An encoded polyline string, or a list of latitude/longitude
        values from which you wish to calculate elevation data.
    :type path: string, dict, list, or tuple

    :param samples: The number of sample points along a path for which to
        return elevation data.
    :type samples: int

    :rtype: list of elevation data responses
    zenc:%s)pathsamplesr   r   )typestrr   r   r	   r
   )r   r   r   r   s       r   elevation_along_pathr   (   sY     DzS$$$T* F
 ??5v>BB9bQQr   N)__doc__
googlemapsr   r   r    r   r   <module>r      s   $ : R"Rr   