'.staticmap(Array(0 => Array($stop[2],$stop[3]))).'
'; +echo '- ';
$url = $APIurl."/json/stoptrips?stop=".$_REQUEST['stopid']."&time=".midnight_seconds()."&service_period=".service_period();
-$page = getPage($url);
-echo $page;
-foreach (json_decode($page) as $row)
+$trips = json_decode(getPage($url));
+debug(print_r($trips,true));
+foreach ($trips as $row)
{
-echo '
- '.midnight_seconds_to_time($row[0]).' '.$row[1][1].' '; +echo '
- ';
+echo '
'.$row[1][1]; +echo '
'; +echo '
Via: '.viaPointNames($row[1][0],$_REQUEST['stopid']).''.midnight_seconds_to_time($row[0]).'
'; +echo ' ';
}
-echo '