Exemple #1
0
 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);
 }
Exemple #2
0
 private function _getGeometry()
 {
     $search = new Application_Model_Geocoder_Search();
     $search->setAddress($this->getAddress());
     return $search->fetchGeometry();
 }