cities

Baustellen und Verkehrsmeldungen je Stadt (Autobahn-API)

Changed on

Baustellen (roadworks) und Verkehrswarnungen (warnings) im Umfeld einer Stadt aus der Autobahn-API im kanonischen Envelope. Die Meldungen werden per Bounding-Box um die Stadt-Koordinaten gefiltert, data enthält die passenden Einträge. Flächendeckend: jeder der 84 Städte sind die nahen Autobahnen kuratiert zugeordnet (datengetrieben aus der Autobahn-API), eine Stadt ohne aktuelle Meldung antwortet ehrlich mit no_data. Stau/Verkehrslage: jede Verkehrswarnung trägt zusätzlich ein congestion-Feld (level stau/stockend/dicht/unspezifisch aus dem DATEX-abnormalTrafficType, delay_minutes = Reisezeitverlust, blocked), und payload.congestion_summary verdichtet die Stau-Lage je Stadt (count/stau/stockend/blocked/ max_delay_minutes; null wenn keine Stau-Meldung). Geometrie: die Antwort ist per Default schlank (die Roh-Polyline je Meldung ist weggelassen); mit include=geometry (oder ?full=1) bleibt das geometry-Feld in roadworks und warnings erhalten. Feldnamen: jedes Ereignis trägt die Werte zusätzlich in der API-Konvention (is_blocked als echtes Boolean, start_timestamp, delay_minutes, average_speed_kmh, abnormal_traffic_type, name, description_text sowie bbox/lat/lon aus extent); die sechs camelCase-Rohfelder des Autobahn-Feeds mit kanonischem Nachfolger (isBlocked, extent, startTimestamp, delayTimeValue, averageSpeed, abnormalTrafficType) waren zum 2026-08-01 abgekündigt und sind seit dem 2026-08-31 entfernt. Weitere Sonderfälle: deaktivierte Quelle liefert 200 mit source_status="disabled"; toter Upstream ohne Cache liefert 503 mit Hint auf GET /api/v1/health.

get/api/v1/cities/{slug}/traffic

Request

Path parameters

slugstring required

Query parameters

include'geometry'

Feld-Opt-in: include=geometry behält die Roh-Polyline (geometry) je roadwork/warning; Default ist schlank (geometry weggelassen).

fullboolean

Äquivalentes Flag zu include=geometry (?full=1 behält die Polyline).

Response

Verkehrs-Envelope (CanonicalRecord oder null)

Example response

{
  "data": {
    "attribution": {
      "text": "Wikidata"
    }
  }
}

Changes

    • breaking

      added to the ///// response property oneOf list for the response status

    • warning

      added the new amtliches_werk enum value to the ///// response property for the response status

    • warning

      added the new ec_reuse enum value to the ///// response property for the response status

    • info

      added the optional property ////////// to the response with the status

    • info

      added the optional property ////////// to the response with the status

    • info

      added the optional property ////////// to the response with the status

    • info

      added the optional property ////////// to the response with the status

    • info

      added the optional property ////////// to the response with the status

    • info

      added city_base air_quality weather poi traffic_event transit_stop charging_station water_level flood_warning pollen_uv demographics energy_asset admin_boundary election_result holiday hospital road_event accident bathing_water bike_parking business_registrations charging_status_city charging_status civil_protection_warning count_station crime_stats district_heating event fire_danger fuel_price hospital_atlas indicator_series indicators insolvencies land_values mobility_point office_wait_times park_and_ride parking_onstreet parking population_density power public_tender regional_stat sharing solar solar_roofs station_arrivals station_catalog station_departures station_facilities tax_rates traffic_flow transit_departure transit_route_status transit_trip vehicle_registration weather_warning discriminator mapping keys to the ///// response property for the response status

    • info

      removed from the ///// response property oneOf list for the response status