

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