--- a/busui/stopList.php
+++ b/busui/stopList.php
@@ -1,10 +1,20 @@
+
+
+ ';
echo ' ';
-$url = $APIurl."/json/stops";
+$url = $APIurl."/json/timingpoints";
+if ($_REQUEST['allstops']) $url = $APIurl."/json/stops";
if ($_REQUEST['lat'] && $_REQUEST['lon']) $url = $APIurl."/json/neareststops?lat={$_REQUEST['lat']}&lon={$_REQUEST['lon']}&limit=15";
$contents = json_decode(getPage($url));
+debug(print_r($contents,true));
foreach ($contents as $key => $row) {
$stopName[$key] = $row[1];
}
@@ -19,16 +29,7 @@
echo '- '.$row[1].'
';
}
echo '
';
-/*
-
-
-*/
+
include_footer();
?>