--- a/stop.php +++ b/stop.php @@ -133,7 +133,9 @@ } else { foreach ($trips as $trip) { echo '
  • '; - echo '

    ' . $trip['route_short_name'] . " " . $trip['route_long_name'] . "

    "; + + $destination = getTripDestination($trip['trip_id']); + echo '

    ' . $trip['route_short_name'] . " " . $destination['stop_name'] . "

    "; $viaPoints = viaPointNames($trip['trip_id'], $trip['stop_sequence']); if ($viaPoints != "") echo '
    Via: ' . $viaPoints . '';