Commit 9a2bcb9 1 parent 782cfa2 commit 9a2bcb9 Copy full SHA for 9a2bcb9
File tree 1 file changed +19
-2
lines changed
proto/research/gtfs_realtime/v1
1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -3,22 +3,39 @@ syntax = "proto3";
3
3
package research.gtfs_realtime.v1 ;
4
4
5
5
import "kantacky/foundation/v1/coordinate.proto" ;
6
+ import "kantacky/foundation/v1/result.proto" ;
6
7
import "google/protobuf/timestamp.proto" ;
7
8
8
9
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
9
14
rpc ListVehiclePositions (ListVehiclePositionsRequest ) returns (ListVehiclePositionsResponse ) {}
10
15
}
11
16
12
- message ListVehiclePositionsRequest {
17
+ message ListVehiclesPositionsRequest {
13
18
// Agency ID (UUID)
14
19
string agency_id = 1 ;
15
20
google.protobuf.Timestamp timestamp = 2 ;
16
21
int64 buffer_seconds = 3 ;
17
22
}
18
23
19
- message ListVehiclePositionsResponse {
24
+ message ListVehiclesPositionsResponse {
25
+ kantacky.foundation.v1.Result result = 1 ;
26
+ repeated VehiclePosition vehicle_positions = 2 ;
27
+ }
28
+
29
+ message ListVehiclePositionsRequest {
20
30
// Agency ID (UUID)
21
31
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 ;
22
39
repeated VehiclePosition vehicle_positions = 2 ;
23
40
}
24
41
You can’t perform that action at this time.
0 commit comments