{%- import "route_symbol.html" as scope -%} {% macro stop_table(trips, current_time, stop_id, query_str) %}
{% 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 %} {% if let Tracked(tracked_trip) = trip.trip.tracking_data %} {% if let Some(seat_avail) = tracked_trip.seat_availability %} {% else %} {% endif %} {% else %} {% endif %} {% endfor %}
ROUTE DESTINATION BOARDING AREA TIME VEHICLE TRIP CROWDING
{% call scope::route_symbol(trip.trip.route) %} {% endcall %}

{{ 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

{{ tracked_trip.delay.round() }} late

{{ trip.perspective_stop.arrival_time | format_time }}

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

{{ tracked_trip.vehicle_ids.join(", ") }}-{{ trip.trip.trip_id }}{{ seat_avail.to_human_string() }}N/A-

Updated at: {{ current_time | format_time_with_seconds }}

{% endmacro %}