Skip to content

Commit 6f4b425

Browse files
author
Pierre-Etienne Bougue
committed
Doc: the last FeedEntity received with the same id is the one that matters
After hove-io/navitia#3909 (comment)
1 parent 5aa6237 commit 6f4b425

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

kirin_proto_doc.rs

+13
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@
2828
// https://groups.google.com/d/forum/navitia
2929
// www.navitia.io
3030

31+
pub struct FeedMessage {
32+
entity: Vec<FeedEntity>,
33+
}
34+
35+
pub struct FeedEntity {
36+
// Id of the disruption to be added/replaced
37+
// For a same entity id, the last one emitted is always the most up-to-date
38+
// (to sort and/or shortcut multiple FeedMessages to process).
39+
id: String,
40+
41+
// Disruption on a dated-VehicleJourney
42+
trip_update: Option<TripUpdate>,
43+
}
3144

3245
pub struct TripUpdate {
3346
trip: TripDescriptor,

0 commit comments

Comments
 (0)