Geocoding.Google.GoogleGeocoder.BuildWebRequest C# (CSharp) Method

BuildWebRequest() private method

private BuildWebRequest ( string type, string value ) : HttpWebRequest
type string
value string
return System.Net.HttpWebRequest
		private HttpWebRequest BuildWebRequest(string type, string value)
		{
			string url = string.Format(ServiceUrl, type, value);

			if (BusinessKey != null)
				url = BusinessKey.GenerateSignature(url);

			var req = WebRequest.Create(url) as HttpWebRequest;
			if (this.Proxy != null)
			{
				req.Proxy = Proxy;
			}
			req.Method = "GET";
			return req;
		}