--- a/routeList.php +++ b/routeList.php @@ -19,7 +19,7 @@ echo '
" . $route['route_long_name'] . " (" . ucwords($route['service_id']) . ")
"; if ($_REQUEST['nearby']) { - echo '' .floor($route['distance']) . 'm away'; + $time = getTimeInterpolatedRouteAtStop($route['route_id'], $route['stop_id']); + echo ''.($time['arrival_time']?$time['arrival_time']:"No more trips today")."