API: Details verkehr.autobahn.de/o/…

https://verkehr.autobahn.de/o/autobahn/details/warning/{warning.identifier}
gives details of a warnings (list of warnings, see here)

Local stored JSON: https://api.json-content-importer.com/extra/json/nZpel9fTE1TLU5JL3JfTE1TLU5JLzI0MDQ5M19EICBOSSBMTVMtTkkgIC4w.json

JCI-Template:

  • name: detail-autobahn
  • URL:
    “dummyrequest” does not do a http-request but gives basic info about the page. With that you can catch errors etc.
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
{% set url = "dummyrequest" %}
{% if urlparam.warningid %}
{% set url = "https://verkehr.autobahn.de/o/autobahn/details/warning/" ~ urlparam.warningid %}
{% endif %}
{{url}}
{% set url = "dummyrequest" %} {% if urlparam.warningid %} {% set url = "https://verkehr.autobahn.de/o/autobahn/details/warning/" ~ urlparam.warningid %} {% endif %} {{url}}
{% set url = "dummyrequest" %}
{% if urlparam.warningid %}
{% set url = "https://verkehr.autobahn.de/o/autobahn/details/warning/" ~ urlparam.warningid %}
{% endif %}
{{url}}
  • urlparam4twig: warningid
  • twig-template:
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<a href="/api-verkehr-autobahn-de-o/">back to list</a><hr>
{% if subtitle %}
<strong>{{subtitle}}</strong><br>
{{description.0}}<br>
coordinates: {{coordinate.lat}},{{coordinate.long}}<br>
{% for k,v in description %}
{% if v %}
{{v}}<br>
{% endif %}
{% endfor %}
{% else %}
no warning found
{% endif %}
<a href="/api-verkehr-autobahn-de-o/">back to list</a><hr> {% if subtitle %} <strong>{{subtitle}}</strong><br> {{description.0}}<br> coordinates: {{coordinate.lat}},{{coordinate.long}}<br> {% for k,v in description %} {% if v %} {{v}}<br> {% endif %} {% endfor %} {% else %} no warning found {% endif %}
<a href="/api-verkehr-autobahn-de-o/">back to list</a><hr>
{% if subtitle %}
    <strong>{{subtitle}}</strong><br>
    {{description.0}}<br>
    coordinates: {{coordinate.lat}},{{coordinate.long}}<br>
    {% for k,v in description %}
        {% if v %}
            {{v}}<br>
        {% endif %}
    {% endfor %}
{% else %}
no warning found
{% endif %}

Shortcode:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
[jsoncontentimporterpro nameoftemplate="detail-autobahn"]
[jsoncontentimporterpro nameoftemplate="detail-autobahn"]
[jsoncontentimporterpro nameoftemplate="detail-autobahn"]

In Action:

back to list
warningid: undefined–vi-avl.2025-06-04_05-17-00-000.f.de0


coordinates: ,