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 uri = request.ToUri(ApiUrl);

            if (Debug)
            {
                Console.WriteLine(uri.ToString());
            }
            return(Http.Get(uri).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 uri =request.ToUri(ApiUrl);
			if (Debug) Console.WriteLine(uri.ToString());
			return Http.Get(uri).As<GeocodingResponse>();
		}
Exemplo n.º 3
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>());
        }