public function setCordinates(Application_Model_Geocoder_Location_Address $address) { $search = new Application_Model_Geocoder_Search(); $search->setAddress($address->getFullAddress(', ')); $geometry = $search->fetchGeometry(); $this->LatLng->setLat($geometry->location->lat); $this->LatLng->setLng($geometry->location->lng); }
private function _getGeometry() { $search = new Application_Model_Geocoder_Search(); $search->setAddress($this->getAddress()); return $search->fetchGeometry(); }