Skip to content

Commit 9a2bcb9

Browse files
committed
Update GTFSRealtimeService
1 parent 782cfa2 commit 9a2bcb9

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

proto/research/gtfs_realtime/v1/gtfs_realtime.proto

+19-2
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,39 @@ syntax = "proto3";
33
package research.gtfs_realtime.v1;
44

55
import "kantacky/foundation/v1/coordinate.proto";
6+
import "kantacky/foundation/v1/result.proto";
67
import "google/protobuf/timestamp.proto";
78

89
service GTFSRealtimeService {
10+
// List positions of all vehicles of the agency
11+
rpc ListVehiclesPositions(ListVehiclesPositionsRequest) returns (ListVehiclesPositionsResponse) {}
12+
13+
// List positions of a specific vehicle of the agency
914
rpc ListVehiclePositions(ListVehiclePositionsRequest) returns (ListVehiclePositionsResponse) {}
1015
}
1116

12-
message ListVehiclePositionsRequest {
17+
message ListVehiclesPositionsRequest {
1318
// Agency ID (UUID)
1419
string agency_id = 1;
1520
google.protobuf.Timestamp timestamp = 2;
1621
int64 buffer_seconds = 3;
1722
}
1823

19-
message ListVehiclePositionsResponse {
24+
message ListVehiclesPositionsResponse {
25+
kantacky.foundation.v1.Result result = 1;
26+
repeated VehiclePosition vehicle_positions = 2;
27+
}
28+
29+
message ListVehiclePositionsRequest {
2030
// Agency ID (UUID)
2131
string agency_id = 1;
32+
string vehicle_id = 2;
33+
google.protobuf.Timestamp timestamp_from = 3;
34+
google.protobuf.Timestamp timestamp_to = 4;
35+
}
36+
37+
message ListVehiclePositionsResponse {
38+
kantacky.foundation.v1.Result result = 1;
2239
repeated VehiclePosition vehicle_positions = 2;
2340
}
2441

0 commit comments

Comments
 (0)