--- a/trip.php +++ b/trip.php @@ -24,8 +24,10 @@ $trip = getTrip($tripid); $routeid = $trip["route_id"]; } -include_header("Stops on " . $trip['route_short_name'] . ' ' . $trip['route_long_name'], "trip"); -trackEvent("Route/Trip View", "View Route", $trip['route_short_name'] . ' ' . $trip['route_long_name'], $routeid); + + $destination = getTripDestination($trip['trip_id']); +include_header("Stops on " . $trip['route_short_name'] . ' ' . $destination['stop_name'], "trip"); +trackEvent("Route/Trip View", "View Route", $trip['route_short_name'] . ' ' . $destination['stop_name'], $routeid); echo ''; echo 'View Original Timetable/Map'; echo '

Via:

' . viaPointNames($tripid) . ''; @@ -66,7 +68,7 @@ echo '