Exemplo n.º 1
0
 public function testGetAddress()
 {
     $lat = "-37.13009600";
     $lon = "145.07711000";
     $Place = new Place($lat, $lon);
     $this->assertInternalType("array", $Place->getAddress());
 }
Exemplo n.º 2
0
 /**
  * Get the street address of this event if applicable
  * @since Version 3.10.0
  * @return string
  */
 public function getAddress()
 {
     if (!empty($this->meta['address'])) {
         return $this->meta['address'];
     }
     if (!$this->Place instanceof Place) {
         return;
     }
     if ($this->Place instanceof Place) {
         $this->meta['address'] = $this->Place->getAddress();
         $this->commit();
         return $this->meta['address'];
     }
 }