<?php
error_reporting(E_ALL);
ini_set("display_errors","1");
require "google-geocode.php";
$geoCode = new Geocoder_google();
$address = "columbus,ohio";
$result = $geoCode->getLocationCoordinate($address);
$resultInfo = $geoCode->getLocationInfo($address);
echo "result for “$address” (method : ".$geoCode->requestmethod.") : <br>";
if(is_array($result)){
echo "<pre>";
print_r($result);
"</pre>";
}
else{
echo "can't retrieve result";
}
echo "<hr>";
if(is_array($resultInfo)){
echo "<pre>";
print_r($resultInfo);
echo "</pre>";
}
else{
echo "can't retrieve info";
}
?>
|