--- a/trip.php +++ b/trip.php @@ -25,8 +25,9 @@ $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) . ''; @@ -67,11 +68,11 @@ echo '