예제 #1
0
 /** To string function
  * @access public
  * @return string
  */
 public function __toString()
 {
     if ($this->getWoeid()) {
         $place = $this->_geoplanet->reverseGeocode($this->getLat(), $this->getLon());
         $placeData = $this->_geoplanet->getPlace($place['woeid']);
     } else {
         $placeData = $this->_geoplanet->getPlace($this->getWoeid());
     }
     return $this->buildHtml($placeData);
 }