{{ stop_name }}

Last updated: {{ data['ResponseData']['LatestUpdate'] }}

Stop deviations:

{%- if data['ResponseData']['StopPointDeviations'] -%} {%- for d in data['ResponseData']['StopPointDeviations'] -%} {%- set stopinfo = d['StopInfo'] -%} {%- set deviation = d['Deviation'] -%}
{{ stopinfo['StopAreaName'] }} ({{ stopinfo['TransportMode'] }})

{{ deviation['ImportanceLevel'] }} :: {{ deviation['Consequence'] }}

{{ deviation['Text'] }}


{%- endfor -%} {%- endif -%}
{%- for transport in ['Trains', 'Metros', 'Buses'] -%} {%- if data['ResponseData'][transport] -%}

:: {{ transport }} ::

{%- for departure in data['ResponseData'][transport] -%} {% if departure['GroupOfLine'] %} {% if departure['GroupOfLine'] == 'tunnelbanans gröna linje' %} {% set color='green' %} {% elif departure['GroupOfLine'] == 'Tunnelbanans röda linje' %} {% set color='red' %} {% elif departure['GroupOfLine'] == 'tunnelbanans blå linje' %} {% set color='blue' %} {% else %} {% set color='black' %} {% endif %} {% endif %}
{% if departure['GroupOfLine'] %}{% endif %} {{ departure['LineNumber'] }} :: {{ departure['Destination'] }} {% if departure['SecondaryDestinationName'] %}({{ departure['SecondaryDestinationName'] }}){% endif %} :: {{ departure['DisplayTime'] }}
{% if transport in ['Trains', 'Buses'] %}

Stop: {{ departure['StopPointDesignation'] }}

{% endif %} {% if departure['GroupOfLine'] %}

{{ departure['GroupOfLine'] }}

{% endif %} {%- if 'TimeTabledDateTime' in departure or 'ExpectedDateTime' in departure -%}
{%- if departure['TimeTabledDateTime'] -%}

Timetable: {{ departure['TimeTabledDateTime'] }}

{%- endif -%} {%- if departure['ExpectedDateTime'] -%}

Expected: {{ departure['ExpectedDateTime'] }}

{%- endif -%}
{%- endif -%} {%- if departure['Deviations'] -%}

Deviations:

{%- for deviation in departure['Deviations'] -%}

{{ deviation['ImportanceLevel'] }} :: {{ deviation['Consequence'] }}

{{ deviation['Text'] }}

{%- endfor -%}
{%- endif -%}
{%- endfor -%}
{%- endif -%} {%- endfor -%}