forked from hove-io/navitia-proto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequest.proto
248 lines (221 loc) · 9.12 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
syntax = "proto2";
import "type.proto";
package pbnavitia;
message CalendarsRequest {
optional string start_date = 1;
optional string end_date = 2;
optional int32 depth = 3;
optional int32 start_page = 4;
optional int32 count = 5;
optional string filter = 6;
repeated string forbidden_uris = 7;
}
message TrafficReportsRequest {
optional uint64 application_period_begin = 8;
optional uint64 application_period_end = 9;
optional uint64 _current_datetime = 10; // to be removed
optional int32 depth = 3;
optional int32 start_page = 4;
optional int32 count = 5;
optional string filter = 6;
repeated string forbidden_uris = 7;
}
message LineReportsRequest {
optional int32 depth = 1;
optional int32 start_page = 2;
optional int32 count = 3;
optional string filter = 4;
repeated string forbidden_uris = 5;
optional uint64 since_datetime = 6;
optional uint64 until_datetime = 7;
}
message PlacesRequest {
required string q = 1;
repeated NavitiaType types = 2;
required int32 depth = 3;
required int32 count = 4;
repeated string admin_uris = 5;
optional int32 search_type = 6;
}
message NextStopTimeRequest {
required string departure_filter = 1;
required string arrival_filter = 2;
optional uint64 from_datetime = 3;
required int32 duration = 4;
required int32 depth = 5;
required int32 nb_stoptimes = 7;
optional int32 interface_version = 8; // to be removed
required int32 start_page = 9;
required int32 count = 10;
optional int32 max_date_times = 11; // to be removed
repeated string forbidden_uri = 12;
optional string calendar = 13;
optional bool show_codes = 14; // to be removed
optional uint64 until_datetime = 15;
optional uint64 _current_datetime = 16; // to be removed
optional RTLevel realtime_level = 17;
optional int32 items_per_schedule = 18;
optional bool disable_geojson = 19;
}
message StreetNetworkParams {
optional string origin_mode = 1;
optional string destination_mode = 2;
optional double walking_speed = 3;
optional double bike_speed = 5;
optional double car_speed = 7;
optional double bss_speed = 9;
optional string origin_filter = 11;
optional string destination_filter = 12;
optional int32 max_walking_duration_to_pt = 13;
optional int32 max_bike_duration_to_pt = 14;
optional int32 max_bss_duration_to_pt = 15;
optional int32 max_car_duration_to_pt = 16;
optional bool enable_direct_path = 17 [default=true];
optional double car_no_park_speed = 18;
optional int32 max_car_no_park_duration_to_pt = 19;
}
message JourneysRequest {
repeated LocationContext origin = 1;
repeated LocationContext destination = 2;
repeated uint64 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;
optional bool wheelchair = 9 [default=false];
optional bool show_codes = 11; // to be removed
optional bool details = 13; //to be removed
optional RTLevel realtime_level = 14;
optional int32 max_extra_second_pass = 15 [default=0];
optional int32 walking_transfer_penalty = 16 [default=120];
optional int32 direct_path_duration = 17;
optional bool bike_in_pt = 18;
repeated string allowed_id = 19;
optional int32 free_radius_from = 20 [default=0]; // meters
optional int32 free_radius_to = 21 [default=0]; // meters
optional int32 min_nb_journeys = 22;
optional double night_bus_filter_max_factor = 23 [default=1.5];
optional int32 night_bus_filter_base_factor = 24 [default=900]; // seconds
optional uint32 timeframe_duration = 25; // seconds
}
message PlacesNearbyRequest {
required string uri = 1;
required double distance = 2;
repeated NavitiaType types = 3;
required int32 depth = 4;
required int32 count = 5;
required int32 start_page = 6;
optional string filter = 7;
}
message PlaceUriRequest {
required string uri = 1;
optional int32 depth = 2 [default = 1];
}
message PlaceCodeRequest {
enum Type {
StopArea = 0;
Network = 1;
Company = 2;
Line = 3;
Route = 4;
VehicleJourney = 5;
StopPoint = 6;
Calendar = 7;
}
required Type type = 1;
required string type_code = 2;
required string code = 3;
}
message PTRefRequest {
required NavitiaType requested_type = 1;
required string filter = 2;
required int32 depth = 3;
required int32 start_page = 4;
required int32 count = 5;
optional bool show_codes = 7; // to be removed
optional OdtLevel odt_level = 8;
repeated string forbidden_uri = 6;
optional uint64 datetime = 9; // to be removed
optional uint64 since_datetime = 10;
optional uint64 until_datetime = 11;
optional bool disable_geojson = 12;
}
message CarCO2EmissionRequest {
optional LocationContext origin = 1;
optional LocationContext destination = 2;
}
message DirectPathRequest {
optional LocationContext origin = 1;
optional LocationContext destination = 2;
optional uint64 datetime = 3;
required bool clockwise = 4;
optional StreetNetworkParams streetnetwork_params = 5;
}
message StreetNetworkRoutingMatrixRequest {
repeated LocationContext origins = 1;
repeated LocationContext destinations = 2;
optional string mode = 3;
optional float speed = 4;
optional int32 max_duration = 5;
}
message MatchingRoute {
optional string line_uri = 1;
optional string start_stop_point_uri = 2;
optional string destination_code_key = 3;
optional string destination_code = 4;
}
message Request {
required API requested_api = 1;
optional PlacesRequest places = 2;
optional NextStopTimeRequest next_stop_times = 3;
optional PlacesNearbyRequest places_nearby = 4;
optional JourneysRequest journeys = 5;
optional PTRefRequest ptref = 6;
optional PlaceUriRequest place_uri = 7;
optional TrafficReportsRequest traffic_reports = 13;
optional CalendarsRequest calendars = 9;
optional PtobjectRequest pt_objects = 10;
optional PlaceCodeRequest place_code = 11;
optional NearestStopPointsRequest nearest_stop_points = 14;
optional uint64 _current_datetime = 15;
optional GraphicalIsochroneRequest isochrone = 16;
optional CarCO2EmissionRequest car_co2_emission = 17;
optional DirectPathRequest direct_path = 18;
optional HeatMapRequest heat_map = 19;
optional StreetNetworkRoutingMatrixRequest sn_routing_matrix = 20;
optional GeographicalCoord coord = 21;
optional MatchingRoute matching_routes = 23;
optional LineReportsRequest line_reports = 24;
optional string request_id = 12;
optional bool disable_feedpublisher = 22;
}
message NearestStopPointsRequest {
optional string place = 1;
optional string mode = 2;
optional double walking_speed = 3;
optional double bike_speed = 4;
optional double car_speed = 5;
optional double bss_speed = 6;
optional string filter = 7;
optional int32 max_duration = 8;
optional bool reverse = 9;
optional double car_no_park_speed = 10;
}
message GraphicalIsochroneRequest {
optional JourneysRequest journeys_request = 1;
repeated int32 boundary_duration = 2;
}
message HeatMapRequest {
optional JourneysRequest journeys_request = 1;
optional int32 resolution = 2;
}
message PtobjectRequest {
required string q = 1;
repeated NavitiaType types = 2;
required int32 depth = 3;
required int32 count = 4;
repeated string admin_uris = 5;
optional int32 search_type = 6;
optional bool disable_geojson = 7;
}