-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrequest.proto
41 lines (37 loc) · 1.27 KB
/
request.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
enum StreetNetworkMode {
WALK = 0;
BIKE = 1;
CAR = 3;
BIKE_SHARE = 4;
// Car sharing?
// Various car modes: park’n’ride kiss’n’ride…
}
message StreetNetworkParams{
optional StreetNetworkMode origin_mode = 1;
optional StreetNetworkMode destination_mode = 2;
optional int32 max_duration_to_pt = 4;
optional double walking_speed = 3;
optional double bike_speed = 5;
optional double car_speed = 7;
optional double bss_speed = 9;
// Speed sounds ambigious, do you mean:
// 1) slower speak because the bicycle is fragile
// 2) extra time to park or fetch the bicycle
optional string origin_filter = 11;
optional string destination_filter = 12;
// What are these filters?
}
message JourneysRequest {
required string origin = 1;
optional string destination = 2;
repeated string datetimes = 3;
required bool clockwise = 4;
repeated string forbidden_uris = 5;
required int32 max_duration = 6;
required int32 max_transfers = 7;
optional StreetNetworkParams streetnetwork_params = 8;
required bool wheelchair = 9;
required bool disruption_active = 10;
optional bool show_codes = 11;
optional bool allow_odt = 12;
}