diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-14 13:37:05 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-14 13:37:26 +0100 |
| commit | e030d6feff065b0f412d7e51684a0b6e6eca7fec (patch) | |
| tree | 18827cbfbaa5e6faf30fdb0aaec21eba84c39db9 /src/common | |
| parent | 08eaea3264f2e4628c40c8e79e3952f630b55221 (diff) | |
Implement new stop schedule generation format using protobuf
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/stop_schedule.proto | 41 |
1 files changed, 41 insertions, 0 deletions
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; +} |
