--- a/trip.php +++ b/trip.php @@ -1,38 +1,42 @@ '; +echo 'View Original Timetable/Map'; echo '
' . $stopsGrouped['startTime'] . ' to ' . $stopsGrouped['endTime']; - echo '
'; - if (isset($_SESSION['lat']) && isset($_SESSION['lon'])) { - echo '' . distance($stop['stop_lat'],$stop['stop_lon'], $_SESSION['lat'], $_SESSION['lon'], true) . 'm away'; - } + if (isset($_SESSION['lat']) && isset($_SESSION['lon'])) { + echo '' . $tripStopTime['arrival_time'] . '
'; + echo '' . $tripStopTime['arrival_time'];
if (isset($_SESSION['lat']) && isset($_SESSION['lon'])) {
- echo '' . distance($stop['stop_lat'],$stop['stop_lon'], $_SESSION['lat'], $_SESSION['lon'], true) . 'm away';
- }
- echo bracketsMeanNewLine($tripStopTime['stop_name']);
+ echo '
' . distance($tripStopTime['stop_lat'], $tripStopTime['stop_lon'], $_SESSION['lat'], $_SESSION['lon'], true) . 'm away';
+ }
+ echo '