From e030d6feff065b0f412d7e51684a0b6e6eca7fec Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Fri, 14 Nov 2025 13:37:05 +0100 Subject: Implement new stop schedule generation format using protobuf --- src/common/stop_schedule.proto | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/common/stop_schedule.proto (limited to 'src/common') diff --git a/src/common/stop_schedule.proto b/src/common/stop_schedule.proto new file mode 100644 index 0000000..e07e26c --- /dev/null +++ b/src/common/stop_schedule.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; + +package proto; + +option csharp_namespace = "Costasdev.Busurbano.Backend.Types"; + +message Epsg25829 { + double x = 1; + double y = 2; +} + +message StopArrivals { + message ScheduledArrival { + string service_id = 1; + string trip_id = 2; + string line = 3; + string route = 4; + string shape_id = 5; + double shape_dist_traveled = 6; + + uint32 stop_sequence = 11; + repeated string next_streets = 12; + + string starting_code = 21; + string starting_name = 22; + string starting_time = 23; + + string calling_time = 33; + uint32 calling_ssm = 34; + + string terminus_code = 41; + string terminus_name = 42; + string terminus_time = 43; + } + + string stop_id = 1; + + Epsg25829 location = 3; + + repeated ScheduledArrival arrivals = 5; +} -- cgit v1.3