Inheritance: extends Component
 /**
  * 位置情報を取得する
  * 取得が成功したら、位置情報を返す
  *
  * @param string $address
  * @return boolean 
  * @access public
  */
 public function getLocation($address)
 {
     $gmap = new BcGmapsComponent();
     if ($gmap->getInfoLocation($address)) {
         return array('latitude' => $gmap->getLatitude(), 'longitude' => $gmap->getLongitude());
     } else {
         return false;
     }
 }
Exemple #2
0
 /**
  * 位置情報を取得する
  *
  * @param string $address
  * @return boolean 
  * @access public
  */
 function getLocation($address)
 {
     App::import("Component", "BcGmaps");
     $gmap = new BcGmapsComponent();
     if ($gmap->getInfoLocation($address)) {
         return array('latitude' => $gmap->getLatitude(), 'longitude' => $gmap->getLongitude());
     } else {
         return false;
     }
 }