コード例 #1
0
ファイル: Geometry.php プロジェクト: Gnafu/wiz
 /**
  * Calculate the service area holding the geometry passed as id or wkt.
  * @param object $id_or_wkt ID as integer or WKT as string 
  * @return array The service area info row, NULL if none is found.
  */
 public static function Get_Service_Area_Detailed($id_or_wkt)
 {
     if (!is_numeric($id_or_wkt)) {
         $sas = Geometry::Get_Service_Area_ByWKT($id_or_wkt);
     } else {
         $sas = Geometry::Get_Service_Area_ByID($id_or_wkt);
     }
     if (count($sas)) {
         return $sas[0];
     } else {
         return null;
     }
 }