--- a/stop.php +++ b/stop.php @@ -1,5 +1,5 @@ <?php -include ('common.inc.php'); +include ('include/common.inc.php'); $stopid = filter_var($_REQUEST['stopid'], FILTER_SANITIZE_NUMBER_INT); $stopcode = filter_var($_REQUEST['stopcode'], FILTER_SANITIZE_STRING); $url = $APIurl . "/json/stop?stop_id=" . $stopid; @@ -51,9 +51,12 @@ echo '<div data-role="content" class="ui-content" role="main"> <a name="maincontent" id="maincontent"></a>'; echo $stopLinks; if (sizeof($stops) > 0) { + trackEvent("View Stops","View Combined Stops", $stop[1], $stop[0]); + echo '<p>' . staticmap($stopPositions) . '</p>'; } else { + trackEvent("View Stops","View Single Stop", $stop[1], $stop[0]); echo '<p>' . staticmap(Array( 0 => Array( $stop[2],