<html><head>
<script type="text/javascript" src="http://api.maps.yahoo.com/v2.0/fl/javascript/apiloader.js"></script>
<style type="text/css">
#mapContainer { 
height: 600px; 
width: 800px; 

</style> 
<title>GeoCoding API Example</title>
</head><body>
<form action="/php/ymap/geo2.php" method="GET">
<input type="text" size="80" name="location" />
</form>
<?php
include './geo.inc';
if(!empty(
$_REQUEST['location'])) {
  
$a yahoo_geo($_REQUEST['location']);
  echo 
"[ {$a['Latitude']}{$a['Longitude']} ] {$a['precision']}-level coordinate accuracy<br />\n";
  if(!empty(
$a['Address'])) echo $a['Address'].', ';
  if(!empty(
$a['City'])) echo $a['City'].', ';
  if(!empty(
$a['State'])) echo $a['State'].' ';
  if(!empty(
$a['Zip'])) echo $a['Zip'].' ';
  if(!empty(
$a['Country'])) echo $a['Country'].' ';
}
?>
<div id="mapContainer"></div>
<script type="text/javascript">
var latlon = new LatLon(<?php echo $a['Latitude']?><?php echo $a['Longitude']?>);
var map = new Map("mapContainer", "rlerdorf", latlon, 3);
map.addTool( new PanTool(), true );
</script> 
<a href="http://developer.yahoo.net/about"> <img src="http://us.dev1.yimg.com/us.yimg.com/i/us/nt/bdg/websrv_120_1.gif" border="0"></a>
&nbsp;&nbsp;&nbsp;<a href="/php/ymap/geo2.phps">[Source Code]</a>
</body></html>