cities

ÖPNV-Haltestellen je Stadt (DELFI und HVV GTFS)

Changed on

Normalisierte ÖPNV-Haltestellen einer Stadt aus dem bundesweiten DELFI-GTFS-Feed bzw. dem HVV-Feed im kanonischen Envelope. Die Daten werden offline aufbereitet und als Snapshot je Stadt gehalten, sodass der Abruf schnell antwortet, ohne den Feed pro Request zu parsen. Sonderfälle: sind beide Quellen deaktiviert, kommt 200 mit source_status="disabled"; liegt noch kein Snapshot vor, kommt 200 mit source_status="not_ingested" und leeren data, nie ein 5xx. Mit q (Namenssuche) oder near (Umkreissuche) lassen sich gezielt einzelne Haltestellen finden, statt die Vollliste abzurufen.

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

Request

Path parameters

slugstring required

Query parameters

qstring

Case-insensitiver Substring-Filter auf den Haltestellennamen (stop_name), z.B. alsterdorf.

nearstring

"lat,lon"; liefert nur Haltestellen im Umkreis, aufsteigend nach Distanz sortiert. Ungültige Werte -> 400.

radius_minteger

Suchradius für near in Metern (Default 1000).

pageinteger

Seitennummer der Default-Paginierung ohne q/near (Default 50 Einträge, Cap 200); meta.pagination weist total/returned/limit/offset/truncated aus.

limitinteger

Einträge pro Seite der Default-Paginierung ohne q/near (Default 50, Cap 200).

Response

Transit-Envelope. data ist eine Liste von CanonicalRecord (TransitStopPayload) oder null/leer, je nach source_status ("ok"|"disabled"|"not_ingested").

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