Inofficial GTFS Realtime feed for Hamburg

This endpoint provides realtime transit data for Hamburg in the GTFS Realtime (GTFS-RT) format.

API status

Underneath, it works by polling the HVV HAFAS endpoint underneath. Those interested in delays of all vehicles, instead of a particular one, don't have to poll HVV's API brute-force: They're able to fetch the data efficiently from here.

Note: This feed is run by people not related to HVV and the government.

Why use this API?

Getting Started

Note: This project is work-in-progress, the feed might go offline at any time! I'm happy to receive any kind of feedback via the hamburg-gtfs-rt-server GitHub Issues.

The URL of the GTFS-RT feed is https://v0.hamburg-gtfs-rt.transport.rest/feed.

As an example, let's use print-gtfs-rt-cli and jq to inspect it:

curl 'https://v0.hamburg-gtfs-rt.transport.rest/feed' -s | print-gtfs-rt --json | head -n 1 | jq
{
	"id": "20510",
	"is_deleted": false,
	"trip_update": null,
	"vehicle": {
		"trip": {
			"trip_id": "22227991",
			"route_id": "9475_109",
			"direction_id": 0,
			"start_time": "",
			"start_date": "",
			"schedule_relationship": 0
		},
		"vehicle": {
			"id": "s3",
			"label": "Harburg Rathaus",
			"license_plate": ""
		},
		"position": {
			"latitude": 53.46302795410156,
			"longitude": 9.97325325012207,
			"bearing": 0,
			"odometer": 0,
			"speed": 0
		},
		"current_stop_sequence": 0,
		"stop_id": "107580",
		"current_status": 2,
		"timestamp": 0,
		"congestion_level": 0,
		"occupancy_status": 0
	},
	"alert": null
}