public function getParkingData()
 {
     echo 'こんにちは';
     Logger::DEBUG("getParkingData()");
     //半径1kmあたりの座標
     //$latScale = 0.009027;
     //$lngScale = 0.011111;
     $distance = (double) $_GET['radius'] * 0.000157;
     //mongodbからデータ取得
     //$selectParData = DB::collection("parking_space")->get();
     $selectParData = DB::getMongoDB()->Command(array('geoNear' => 'location', 'near' => array((double) $_GET['lng'], (double) $_GET['lat']), 'spherical' => 'true', 'maxDistance' => $distance));
     //Redisアクセス
     $redisData = Redis::connection();
     foreach ($selectParData['results'] as $id => $obj) {
         $key_Id = "parking_data_" . $obj['obj']['parking_space_id'];
         $redisList = $redisData->get($key_Id);
         $getredisList = json_decode($redisList, true, JSON_UNESCAPED_UNICODE);
         $getDataList[] = array('parking_space_id' => $obj['obj']['parking_space_id'], 'lat' => $obj['obj']['lnglat'][0], 'lng' => $obj['obj']['lnglat'][1], 'name' => $getredisList[0]['parking_name'], 'prefecture' => $getredisList[0]['prefecture'], 'city' => $getredisList[0]['city'], 'address' => $getredisList[0]['address'], 'utilization_start_time' => $getredisList[0]['utilization_start_time'], 'utilization_end_time' => $getredisList[0]['utilization_end_time']);
     }
     $getDataList = array('results' => $getDataList);
     //var_dump($latMin);
     return json_encode($getDataList, true);
     //return "aaa";
 }