Undefined property: stdClass::$intersection
Jin Fan <[email protected]> Wed, 21 Jun 2017 01:38:31 -0500
| Newsgroups | gmane.comp.php.pear.general |
|---|---|
| Message-ID | <CAOvx2Fni+zDnCEfXQnK7FWF1MzwdbJUOgMinJz6h28y4MxsB8Q@mail.gmail.com> |
--001a11410b4ee0ebb10552729d74
Content-Type: text/plain; charset="UTF-8"
<?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*
--001a11410b4ee0ebb10552729d74--