Undefined property: stdClass::$intersection

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Undefined property: stdClass::$intersection

Jin Fan
<?php
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);

require_once 'Services/GeoNames.php';

$geo = new Services_GeoNames('interference');

$address = $geo->findNearestIntersection(array(
    'lat'     => 39.14791,
    'lng'     => -78.43056,
));
var_dump($address);
print_r($address);
foreach ($address as $add) {
//    printf(" - %s (%s)\n", $code->postalCode, $code->placeName);
    print_r($add);
}
echo "\n";

?>

Trying to run the above codes, and keep the following error.
*Notice*: Undefined property: stdClass::$intersection in
*/usr/share/php/Services/GeoNames.php* on line *284*