Subscribe to our RSS Feeds
Hello, this is a sample text to show how you can display a short information about you and or your blog. You can use this space to display text or image introduction or to display 468 x 60 ads and to maximize your earnings.

Get Post code from latlong

0 Comments »

http://www.streetmap.co.uk/streetmap.dll?GridConvert?type=LatLong&name=053.6640160000,-001.8184860000


HttpWebRequest myReq =
(HttpWebRequest)WebRequest.Create("http://www.streetmap.co.uk/streetmap.dll?GridConvert?" + request);

// Sends the HttpWebRequest and waits for the response.
HttpWebResponse myHttpWebResponse = myReq.GetResponse() as HttpWebResponse;
try
{
Stream response = myHttpWebResponse.GetResponseStream();
StreamReader readStream = new StreamReader(response, System.Text.Encoding.GetEncoding("utf-8"));
return readStream.ReadToEnd();
}
finally
{
// Releases the resources of the response.
myHttpWebResponse.Close();
}


string HTML = MakeRequest("type=LatLong&name=" + latitude.ToString() + "," + longitude.ToString());

const string startOfPostcode =
"Nearest Post Code ";

string startOfPostcodeString = GetStringAfterText(HTML, startOfPostcode);
int indexOfEnd = startOfPostcodeString.IndexOf(" <");
return startOfPostcodeString.Substring(0, indexOfEnd);


get more on this link

http://www.doogal.co.uk/postcode.php

3:23 AM

0 Responses to "Get Post code from latlong"

Post a Comment