API: Expose HAFAS JourneyID, if available (#85)

This commit is contained in:
Birte Kristina Friesel 2023-08-30 21:54:05 +02:00
parent 155ac555f1
commit 26ebd3d644
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA
2 changed files with 6 additions and 4 deletions

View file

@ -1856,6 +1856,7 @@ sub startup {
line => $status->{train_line}, line => $status->{train_line},
no => $status->{train_no}, no => $status->{train_no},
id => $status->{train_id}, id => $status->{train_id},
hafasId => $status->{extra_data}{trip_id},
}, },
intermediateStops => [], intermediateStops => [],
visibility => { visibility => {

View file

@ -63,6 +63,7 @@
"line" : "6", (Linie als String, nicht immer numerisch, ggf. null)<br/> "line" : "6", (Linie als String, nicht immer numerisch, ggf. null)<br/>
"no" : "30634", (Fahrtnummer als String, ggf. null oder leer)<br/> "no" : "30634", (Fahrtnummer als String, ggf. null oder leer)<br/>
"id" : "7512500863736016593" (IRIS- oder HAFAS-spezifische Fahrt-ID)<br/> "id" : "7512500863736016593" (IRIS- oder HAFAS-spezifische Fahrt-ID)<br/>
"hafasId" : "1|224479|0|80|30082023" (HAFAS-spezifische Fahrt-ID falls bekannt, ggf. null)<br/>
},<br/> },<br/>
"visibility" : {<br/> "visibility" : {<br/>
"desc": "private" / "unlisted" / "followers" / "travelynx" / "public",<br/> "desc": "private" / "unlisted" / "followers" / "travelynx" / "public",<br/>