def get_altitude(latitude, longitude):
    """
    This method returns the altitude for a point specified as a pair of
    coordinates (latitude, longitude).
    The full format for the Google API to retrieve the altitude for a given
    point given as a pair (latitude, longitude) is the following:
        proto://maps.googleapis.com/maps/api/elevation/outputFormat?parameters
    ... where:
    *) proto = ['https', 'http']
    *) outputFormat = ['json', 'xml']
    *) parameters = {locations=latitude,longitude}
    *) RESULT = (JSON object)
        {
            "results" : [ {
                "elevation" : 1608.637939453125,
                "location" : {
                    "lat" : 39.73915360,
                    "lng" : -104.98470340
                },
                "resolution" : 4.771975994110107
            }],
            "status" : "OK"
        }
    :param latitude: The latitude for the given point.
    :param longitude: The longitude for the given point.
    :return: A tuple (h, r) with the altitude (h, in meters) and the
    resolution (r, in meters). The resolution (r) represents the maximum
    distance (in meters) between data points from which the elevation was
    interpolated.
    """
    url = ___G_API_ALTITUDE_URL__ % ___G_API_ALTITUDE_OUTPUT__[0] + \
        '?locations=' + str(latitude) + ',' + str(longitude)
    r = misc.load_json_url(url)

    return r['results'][0]['elevation'], r['results'][0]['resolution']
dataset/ETHPy150Open satnet-project/server/services/common/gis.py/get_altitude/operator `+` -> `%`