Get Latitude and Longitude from your Postal Address
We generally do not know the latitude and longitude of our area or any other area if we have needed to get the information. Sometimes we have to Google for getting this information. It is not a big issue to find out the approximate latitude and longitude for any location and it can easily be done in PHP.

Here I am writing the procedures to do the same.
1. Create a PHP page say ‘postal_lang_long.php’
2. Put the following codes in the PHP file.
<!--?<span class="hiddenSpellError" pre=""-->php
if ($_REQUEST[where]) {
$where = stripslashes($_REQUEST[where]);
$whereurl = urlencode($where);
// Note - Google key is domain specific!
$location = file("http://maps.google.com/maps/geo?q=$whereurl
&output=csv&key=ABQIAAAAvp3__HwvT3VkixIIbsW0axQuKI_6t1bH2P0vC
I_Q8jfpn8qdNBQMnneljxh9czilkau_bYSCXteS_A");
// Sample - $location[0]="200,8,51.369318,-2.133457";
list ($stat,$acc,$north,$east) = explode(",",$location[0]);
$html = "Information for ".htmlspecialchars($where)."
";
$html .= "North: $north, East: $east<br>";
$html .= "Accuracy: $acc, Status: $stat<br>";
} else {
$html = "Space reserved for your report when form completed";
}
?>
<html>
<head>
<title>Postal Address to Latitude / Longitude</title>
</head>
<body bgcolor="#99CCFF"></pre>
<div align="center">500px;"></div>
<pre>
Enter a place name / address and a latitude and longitude will be returned.</pre>
<hr />
<pre>
<!--?<span class="hiddenSpellError" pre=""-->php print $html; ?></pre>
<hr />
<pre>
<form method=post>Place: <input type="text" name="where" size="40" />
<input type=submit value=go></form>
</div>
</body>
</html>
3. Now place your PHP file in your web server and open the file in any browser.
4. Now in your browser you can see a text box asking for the name of the place.
5. Enter the place-name and hit ‘go’ button.
6. That’s all, you will be shown the latitude and longitude of your location.
-
Aaron
-
http://yahwe.ru Yahwe
-
Gowtham
-
http://www.gantysoft.com Ruthie Marreel
-
Seb
-
http://forum.viper-production.ro/profile.php?mode=viewprofile&u=536627 Lacey Gelber
-
http://www.fineartsonweb.gr/forum/ Dovie Goth
-
http://www.fs.eklamkidodrzwi.pl klamki do okien
-
http://ariel.hanggliding.ru/memberlist.php?mode=viewprofile&u=3844 Jayne Kaller
-
http://www.nuvoleink.com/index.php/member/1157 Claudio Soderquist
-
http://kristaltemizlik.com Ev Temizlik
-
http://web.cfa.arizona.edu/colorguard/phpBB2/profile.php?mode=viewprofile&u=5328 Romeo Tanksley
-
http://www.uczelnia.edu.pl/ Malena Damewood
-
http://www.nauka-jezyka-angielskiego.com.pl/nauka-jezyka-angielskiego-poprzez-konwersacje/ Nauka jezyka angiels
-
http://www.gamewow.info/archives/tag/beast/ Kathaleen Folliard
-
http://chordoma.ru/forum/profile.php?id=226406 Marta Sonseca
-
http://duodenalulcersymptoms.info/what-exactly-is-windows-registry-asset-employed-for.html Mark Sierzenga
-
http://blog-narciarski.pl/?p=5605 Leroy Cousino
-
http://footpainsideoffoot.info/toes-sores.html Scottie Lefevers
-
http://americasbesteyecareo.info/definitely-not-reconcile-returning-outstanding-of-ones-to-prevent-c Jamison Haws
-
http://cataractsurgeryrecoveryo.info/lasek-hurricane-surgical.html Marlene Dull
-
http://hippolyta400.xanga.com/ Buford Beagan
-
http://www.carphotoalbums.com/forum/member.php?u=406314 Matt Riske
