--- a/stopList.php +++ b/stopList.php @@ -40,19 +40,32 @@ $stops = getStops(); include_header("All Stops", "stopList"); navbar(); - timePlaceSettings(); } else if (isset($nearby)) { $listType = 'nearby=yes'; include_header("Nearby Stops", "stopList", true, true); trackEvent("Stop Lists", "Stops Nearby", $_SESSION['lat'] . "," . $_SESSION['lon']); navbar(); - timePlaceSettings(true); if (!isset($_SESSION['lat']) || !isset($_SESSION['lat']) || $_SESSION['lat'] == "" || $_SESSION['lon'] == "") { + placeSettings(); include_footer(); die(); } $stops = getNearbyStops($_SESSION['lat'], $_SESSION['lon'], 15); + echo ''; + $stopPositions[] = Array( + $_SESSION['lat'], + $_SESSION['lon'] + ); + foreach ($stops as $sub_stop) { + $stopPositions[] = Array( + $sub_stop["stop_lat"], + $sub_stop["stop_lon"] + ); + } + echo staticmap($stopPositions, 0, "iconb", true, true); + placeSettings(); + echo ''; } else if (isset($suburb)) { $stops = getStopsBySuburb($suburb); @@ -64,7 +77,6 @@ $stops = getStops(true, $firstLetter); include_header("Timing Points / Major Stops", "stopList"); navbar(); - timePlaceSettings(); } echo ' '; + if (isset($nearby)) echo ''; } include_footer(); ?>