{%- import "route_symbol.html" as scope -%} {% macro stop_table(trips, current_time) %}
| ROUTE | DESTINATION | BOARDING AREA | TIME | VEHICLE | ||
|---|---|---|---|---|---|---|
| {% call scope::route_symbol(trip.trip.route) %} |
{{ trip.trip.direction.direction_destination }} |
{{ trip.perspective_stop.platform.name }} |
{% if let Tracked(tracked_trip) = trip.trip.tracking_data %}
{{ &trip.perspective_stop.get_arrival_time(&tracked_trip) | format_time }} {{ ( trip.perspective_stop.get_arrival_time(&tracked_trip) - current_time) / 60 }} mins |
{% else %}
{{ trip.perspective_stop.arrival_time | format_time }} {{ (trip.perspective_stop.arrival_time - current_time) / 60 }} mins |
{% endif %}
{% if let Tracked(tracked_trip) = trip.trip.tracking_data %}
{{ tracked_trip.vehicle_ids.join(", ") }} | {% else %}- | {% endif %}
|
Updated at: {{ current_time | format_time_with_seconds }} |
||||||