array(
'method' => "GET",
'header' => "Accept: application/json\r\n" .
"Authorization: Server-Token ${catalogToken}\r\n"
)
);
$context = stream_context_create($opts);
$body = file_get_contents($url, false, $context);
$result = json_decode($body,true);
$data = array();
if (is_array($result)) {
if (isset($result["data"])) {
$data = $result["data"];
}
if (isset($result["pub1"])) {
$pub1 = $result["pub1"];
}
if (isset($result["pub2"])) {
$pub2 = $result["pub2"];
}
if (isset($result["taxi"])) {
$taxi = $result["taxi"];
}
if (isset($result["taxi0"])) {
$taxi0 = $result["taxi0"];
}
if (isset($result["public_vs_rideshare"])) {
$public_vs_rideshare = $result["public_vs_rideshare"];
}
/*
if (isset($result[""])) {
$ = $result[""];
}
*/
}
require_once('templates/header.js.php');
?>
Download CSV
| Travel Date (Start) | End Time | Duration | Distance | Travel From | Travel To | Cost | Provider | Routes | Member ID | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ".$f["travel_date"]." | "; $f_end_date = getEndDateTime($f["travel_date"],$f["travel_date_end"],$f["duration"]); $str.= "".$f_end_date." | "; $f_duration = getDuration($f["duration"],$f["travel_date"],$f["travel_date_end"]); $str.= "".$f_duration." | "; $str.= "".$f["distance"]." | "; $str.= "".$f["location_start"]." | "; $str.= "".$f["location_end"]." | "; $str.= "".$f["cost_raw"]." | "; $f_transport_provider = getTransportProvider($f["transport_provider_id"]); $str.= "".$f_transport_provider." | "; $str.= "".$f["routes"]." | "; $str.= "".$f["member_id"]." | "; $str.= "||||||||||||||||
";
echo "click to hide (#".$f["tid"].")...";
$str = " \n";
echo "\n";
if ($i%10==0) {
echo '' . "\n";
}
echo "".$f["travel_date"]." | Duration: | ".$f_duration." | ";
$str.= "Cost: | ".$f["cost_raw"]." | ";
$str.= "Routes: | ".$f["routes"]." | ".$f["location_start"]." | ".$f_end_date." | Distance: | ".$f["distance"]." | ";
$str.= "Vendor: | ".$f_transport_provider." | ";
$str.= "Member: | ".$f["member_id"]." | ".$f["location_end"]." | | |||||||||