Пример #1
0
 /// <summary>
 /// Sends the specified request to the Google Maps Elevation web
 /// service and parses the response as an ElevationResponse
 /// object.
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public static ElevationResponse GetResponse(ElevationRequest request)
 {
     var url = new Uri(ApiUrl, request.ToUri());
     return Http.Get(url).As<ElevationResponse>();
 }
Пример #2
0
        /// <summary>
        /// Sends the specified request to the Google Maps Elevation web
        /// service and parses the response as an ElevationResponse
        /// object.
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public static ElevationResponse GetResponse(ElevationRequest request)
        {
            var url = new Uri(ApiUrl, request.ToUri());

            return(Http.Get(url).As <ElevationResponse>());
        }