$cityname = $citybyid->getCityName(); echo "The Country is: " . $cityname . "<br>"; //getAddressesByCityId $addressbycityid = $LocationManager->getAddressesByCityId($cityid); echo "<br/><br/><br/><b>ADDRESSES BY CITY</b><br>"; $userCount = count($addressbycityid); echo "Address:<br>"; if ($userCount > 0) { foreach ($addressbycityid as $add) { $addressid = $add->getAddressId(); $address = $add->getAddress(); $postalcode = $add->getPostalCode(); echo $address . "<br>"; } } $addressbycityid = $LocationManager->getAddressByPostalCode($postalcode); echo "<br/><br/><br/><b>ADDRESSES POSTALCODE</b><br>"; $addressid = $add->getAddressId(); $address = $add->getAddress(); $postalcode = $add->getPostalCode(); echo "The Address is: " . $address . "<br>"; ?> <!DOCTYPE HTML> <html> <head> <title>TESTING PAGE</title> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>