Depreciate timing points list as all points are now timed
--- a/index.php
+++ b/index.php
@@ -26,8 +26,7 @@
<a href="tripPlanner.php" data-role="button" data-icon="navigation">Launch Trip Planner...</a>
<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="b">
<li data-role="list-divider">Timetables - Stops</li>
- <li><a href="stopList.php">Major (Timing Point) Stops</a></li>
- <li><a href="stopList.php?allstops=yes">All Stops</a></li>
+ <li><a href="stopList.php">Stops By Name</a></li>
<li><a href="stopList.php?bysuburbs=yes">Stops By Suburb</a></li>
<li><a class="nearby" href="stopList.php?nearby=yes">Nearby Stops</a></li>
</ul>
--- a/stopList.php
+++ b/stopList.php
@@ -21,7 +21,7 @@
return substr(trim(preg_replace("/\(Platform.*/", "", $stopName)),0,9);
}
function stopGroupTitle($stopName,$stopdesc) {
- if (preg_match("/Dr |Cct |Cir |Av |St /",$stopName)) {
+ if (preg_match("/Dr |Cct |Cir |Av |St |Cr |Parade |Way |Bank /",$stopName)) {
$descParts = explode("<br>",$stopdesc);
return trim(str_replace("Street: ","",$descParts[0]));
} else {
@@ -32,10 +32,9 @@
echo '
<div data-role="navbar">
<ul>
- <li><a href="stopList.php">Timing Points</a></li>
+ <li><a href="stopList.php">Stops by Name</a></li>
<li><a href="stopList.php?bysuburbs=yes">By Suburb</a></li>
<li><a href="stopList.php?nearby=yes">Nearby Stops</a></li>
- <li><a href="stopList.php?allstops=yes">All Stops</a></li>
</ul>
</div>
';
@@ -60,12 +59,7 @@
echo '</ul>';
} else {
// Timing Points / All stops
- if (isset($allstops)) {
- $listType = 'allstops=yes';
- $stops = getStops($firstLetter);
- include_header("All Stops", "stopList");
- navbar();
- } else if (isset($nearby)) {
+ if (isset($nearby)) {
$listType = 'nearby=yes';
include_header("Nearby Stops", "stopList", true, true);
trackEvent("Stop Lists", "Stops Nearby", $_SESSION['lat'] . "," . $_SESSION['lon']);
@@ -96,10 +90,11 @@
navbar();
trackEvent("Stop Lists", "Stops By Suburb", $suburb);
} else {
- $stops = getStops(true, $firstLetter);
- include_header("Timing Points / Major Stops", "stopList");
+ $listType = 'allstops=yes';
+ $stops = getStops($firstLetter);
+ include_header("Stops by Name", "stopList");
navbar();
- }
+ }
echo ' <ul data-role="listview" data-filter="true" data-inset="true" >';
if (!isset($firstLetter) && !isset($suburb) && !isset($nearby)) {
foreach (range('A', 'Z') as $letter) {