コード例 #1
0
ファイル: TwfyGeo.php プロジェクト: lesleyauk/findsorguk
 /** Get the data for building the map
  * @access public
  * @return method
  */
 public function getMap()
 {
     $data = $this->getData();
     $geo = new Pas_Twfy_Geometry();
     $constituency = $geo->get($data['constituency']);
     return $this->buildMap($constituency, $data);
 }
コード例 #2
0
 /** Get the constituency's geometry
  * @access public
  * @param  string $constituency
  * @return object
  */
 public function getGeometry($constituency)
 {
     $geo = new Pas_Twfy_Geometry();
     return $geo->get($constituency);
 }