{%- import "route_symbol.html" as scope -%} {% macro stop_table(trips, current_time) %} {% for trip in trips %} {% if let Tracked(tracked_trip) = trip.trip.tracking_data %} {% else %} {% endif %} {% if let Tracked(tracked_trip) = trip.trip.tracking_data %} {% else %} {% endif %} {% endfor %}
ROUTE DESTINATION BOARDING AREA TIME VEHICLE
{% call scope::route_symbol(trip.trip.route) %}

{{ trip.trip.direction.direction_destination }}

{{ trip.perspective_stop.platform.name }}

{{ &trip.perspective_stop.get_arrival_time(&tracked_trip) | format_time }}

{{ ( trip.perspective_stop.get_arrival_time(&tracked_trip) - current_time) / 60 }} mins

{{ trip.perspective_stop.arrival_time | format_time }}

{{ (trip.perspective_stop.arrival_time - current_time) / 60 }} mins

{{ tracked_trip.vehicle_ids.join(", ") }} -

Updated at: {{ current_time | format_time_with_seconds }}

{% endmacro %}