_address = (string) $address; } public function getAddress() { return $this->_address; } public function __toString() { return $this->getAddress(); } public function setPoint(Point $point) { $this->_point = $point; } public function getPoint() { return $this->_point; } public function setAccuracy($accuracy) { $this->_accuracy = (int) $accuracy; } public function getAccuracy() { return $this->_accuracy; } public static function FromSimpleXml($xml) { require_once('Point.php'); $point = Point::Create($xml->Point->coordinates); $placemark = new self; $placemark->setPoint($point); $placemark->setAddress($xml->address); $placemark->setAccuracy($xml->AddressDetails['Accuracy']); return $placemark; } } ?>