'lat' => $pointsOfInterest[$i][0],
                        'lng' => $pointsOfInterest[$i][1],
                        'attr' => array('ozone_level' => $ozoneValue,
                                    'exp' => $explanation,
                                    'gridpoint' => "$gridPoint")
                    );
                }
                $data[] = array('timestamp' => $t, 'data' => $latlngData);
        */
    }
}
$end = microtime(true);
//printObj($extent);
//printObj($grid);
if ($requestType == 'json') {
    sendJsonResponse($data, $timestamp, $timestamp2, $errMsg);
    exit(0);
}
echo "<pre>Timestamp: {$timestamp} (" . date("Y-m-d H:i:s T", $timestamp) . "), Timestamp2: {$timestamp2} (" . date("Y-m-d H:i:s T", $timestamp2) . ")\n";
echo "Using step resolution {$stepSize}\n";
print "Execution Time : " . ($end - $start) . "sec\n";
print "Time taken by query manager: {$queryTime} sec\n";
print "</pre>";
print "Extent<br/>";
//printObj(java_values($driver->gridExtent));
print "Points of interest<br/>";
printObj($pointsOfInterest);
print "Data<br/>";
printObj($data);
// Utility Functions.. Once this utility function grows large, they can be
// pinched and put to a separate file
Esempio n. 2
0
function sendError($message)
{
    sendJsonResponse(array('error' => $message));
}