Exemplo n.º 1
0
 /// <summary>
 /// Sends the specified request to the Google Maps Geocoding web
 /// service and parses the response as an GeocodingResponse
 /// object.
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public static GeocodingResponse GetResponse(GeocodingRequest request)
 {
     var url = new Uri(ApiUrl, request.ToUri());
     return Http.Get(url).As<GeocodingResponse>();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Sends the specified request to the Google Maps Geocoding web
        /// service and parses the response as an GeocodingResponse
        /// object.
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public static GeocodingResponse GetResponse(GeocodingRequest request)
        {
            var url = new Uri(ApiUrl, request.ToUri());

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