'.staticmap(Array(0 => Array($stop[2],$stop[3]))).'

'; echo '
    '; -$url = $APIurl."/json/stoptrips?stop=".$_REQUEST['stopid']."&time=".midnight_seconds()."&service_period=".service_period(); +$url = $APIurl."/json/stoptrips?stop=".$stopid."&time=".midnight_seconds()."&service_period=".service_period(); $trips = json_decode(getPage($url)); debug(print_r($trips,true)); foreach ($trips as $row) { echo '
  • '; -echo '

    '.$row[1][1]; +echo '

    '.$row[1][1]; if (isFastDevice()) { - $viaPoints = viaPointNames($row[1][0],$_REQUEST['stopid']); + $viaPoints = viaPointNames($row[1][0],$stopid); if ($viaPoints != "") echo '
    Via: '.$viaPoints.'

    '; } echo '

    '.midnight_seconds_to_time($row[0]).'

    '; --- a/stopList.php +++ b/stopList.php @@ -36,8 +36,9 @@ navbar(); timePlaceSettings(true); } else if ($_REQUEST['suburb']) { - $url = $APIurl."/json/stopzonesearch?q=".filter_var($_REQUEST['suburb'], FILTER_SANITIZE_STRING); -include_header("Stops in ".ucwords(filter_var($_REQUEST['suburb'], FILTER_SANITIZE_STRING)),"stopList"); + $suburb = filter_var($_REQUEST['suburb'], FILTER_SANITIZE_STRING); + $url = $APIurl."/json/stopzonesearch?q=".$suburb; +include_header("Stops in ".ucwords($suburb),"stopList"); if (isMetricsOn()) { // Create a new Instance of the tracker $owa = new owa_php($config); @@ -48,7 +49,7 @@ // Set the Event Type, in this case a "video_play" $event->setEventType('view_stop_list_suburb'); // Set a property -$event->set('stop_list_suburb',$_REQUEST['suburb']); +$event->set('stop_list_suburb',$suburb); // Track the event $owa->trackEvent($event); } --- a/trip.php +++ b/trip.php @@ -2,8 +2,9 @@ include('common.inc.php'); $tripid = filter_var($_REQUEST['tripid'],FILTER_SANITIZE_NUMBER_INT); $stopid = filter_var($_REQUEST['stopid'],FILTER_SANITIZE_NUMBER_INT); +$routeid = filter_var($_REQUEST['routeid'],FILTER_SANITIZE_NUMBER_INT); if ($_REQUEST['routeid']) { - $url = $APIurl."/json/routetrips?route_id=".filter_var($_REQUEST['routeid'],FILTER_SANITIZE_NUMBER_INT); + $url = $APIurl."/json/routetrips?route_id=".$routeid; $trips = json_decode(getPage($url)); debug(print_r($trips,true)); foreach ($trips as $trip) @@ -31,6 +32,7 @@ // Set a property $event->set('trip_id',$tripid); $event->set('route_id',$routeid); +$event->set('stop_id',$stopid); // Track the event $owa->trackEvent($event); }