/** Call database model and query for adjacencies
  * @param int $woeid The WOEID to query
  */
 public function YahooGeoAdjacent($woeid)
 {
     $adjacent = new GeoPlaces();
     $places = $adjacent->getAdjacent($woeid);
     if (count($places)) {
         $html = '<h4>Adjacent places</h4>';
         $html .= '<ul id="legend-items">';
         foreach ($places as $p) {
             $c = array_shift($colours);
             $url = $this->view->url(array('module' => 'database', 'controller' => 'search', 'action' => 'results', 'woeid' => $p['WOE_ID']), null, true);
             $html .= '<li><a href="' . $url . '" title="Find all objects associated 
         with this WOEID">';
             $html .= $p['Name'];
             $html .= '</a></li>';
         }
         $html .= '</ul>';
         return $html;
     }
 }
 /** Get the places from the model
  * @access public
  * @return array
  */
 public function getPlaces()
 {
     $adjacent = new GeoPlaces();
     return $adjacent->getAdjacent($this->getWoeid());
 }