@googlemaps/routing 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/LICENSE +202 -0
- package/README.md +238 -0
- package/build/protos/google/geo/type/viewport.proto +69 -0
- package/build/protos/google/maps/routing/v2/fallback_info.proto +72 -0
- package/build/protos/google/maps/routing/v2/location.proto +43 -0
- package/build/protos/google/maps/routing/v2/maneuver.proto +88 -0
- package/build/protos/google/maps/routing/v2/navigation_instruction.proto +40 -0
- package/build/protos/google/maps/routing/v2/polyline.proto +74 -0
- package/build/protos/google/maps/routing/v2/route.proto +208 -0
- package/build/protos/google/maps/routing/v2/route_modifiers.proto +64 -0
- package/build/protos/google/maps/routing/v2/route_travel_mode.proto +46 -0
- package/build/protos/google/maps/routing/v2/routes_service.proto +311 -0
- package/build/protos/google/maps/routing/v2/routing_preference.proto +55 -0
- package/build/protos/google/maps/routing/v2/speed_reading_interval.proto +57 -0
- package/build/protos/google/maps/routing/v2/toll_info.proto +40 -0
- package/build/protos/google/maps/routing/v2/toll_passes.proto +321 -0
- package/build/protos/google/maps/routing/v2/units.proto +40 -0
- package/build/protos/google/maps/routing/v2/vehicle_emission_type.proto +43 -0
- package/build/protos/google/maps/routing/v2/vehicle_info.proto +37 -0
- package/build/protos/google/maps/routing/v2/waypoint.proto +71 -0
- package/build/protos/protos.d.ts +8392 -0
- package/build/protos/protos.js +22576 -0
- package/build/protos/protos.json +2144 -0
- package/build/src/index.d.ts +11 -0
- package/build/src/index.js +28 -0
- package/build/src/index.js.map +1 -0
- package/build/src/v2/index.d.ts +1 -0
- package/build/src/v2/index.js +23 -0
- package/build/src/v2/index.js.map +1 -0
- package/build/src/v2/routes_client.d.ts +289 -0
- package/build/src/v2/routes_client.js +356 -0
- package/build/src/v2/routes_client.js.map +1 -0
- package/build/src/v2/routes_client_config.json +34 -0
- package/package.json +66 -0
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
// Copyright 2022 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.maps.routing.v2;
|
|
18
|
+
|
|
19
|
+
option cc_enable_arenas = true;
|
|
20
|
+
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
21
|
+
option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing";
|
|
22
|
+
option java_multiple_files = true;
|
|
23
|
+
option java_outer_classname = "TollPassesProto";
|
|
24
|
+
option java_package = "com.google.maps.routing.v2";
|
|
25
|
+
option objc_class_prefix = "GMRV2";
|
|
26
|
+
option php_namespace = "Google\\Maps\\Routing\\V2";
|
|
27
|
+
option ruby_package = "Google::Maps::Routing::V2";
|
|
28
|
+
|
|
29
|
+
// List of toll passes around the world that we support.
|
|
30
|
+
enum TollPass {
|
|
31
|
+
// Not used. If this value is used, then the request fails.
|
|
32
|
+
TOLL_PASS_UNSPECIFIED = 0;
|
|
33
|
+
|
|
34
|
+
// Sydney toll pass. See additional details at https://www.myetoll.com.au.
|
|
35
|
+
AU_ETOLL_TAG = 82;
|
|
36
|
+
|
|
37
|
+
// Sydney toll pass. See additional details at https://www.tollpay.com.au.
|
|
38
|
+
AU_EWAY_TAG = 83;
|
|
39
|
+
|
|
40
|
+
// Australia-wide toll pass.
|
|
41
|
+
// See additional details at https://www.linkt.com.au/.
|
|
42
|
+
AU_LINKT = 2;
|
|
43
|
+
|
|
44
|
+
// Argentina toll pass. See additional details at https://telepase.com.ar
|
|
45
|
+
AR_TELEPASE = 3;
|
|
46
|
+
|
|
47
|
+
// Brazil toll pass. See additional details at https://www.autoexpreso.com
|
|
48
|
+
BR_AUTO_EXPRESO = 81;
|
|
49
|
+
|
|
50
|
+
// Brazil toll pass. See additional details at https://conectcar.com.
|
|
51
|
+
BR_CONECTCAR = 7;
|
|
52
|
+
|
|
53
|
+
// Brazil toll pass. See additional details at https://movemais.com.
|
|
54
|
+
BR_MOVE_MAIS = 8;
|
|
55
|
+
|
|
56
|
+
// Brazil toll pass. See additional details at https://pasorapido.gob.do/
|
|
57
|
+
BR_PASSA_RAPIDO = 88;
|
|
58
|
+
|
|
59
|
+
// Brazil toll pass. See additional details at https://www.semparar.com.br.
|
|
60
|
+
BR_SEM_PARAR = 9;
|
|
61
|
+
|
|
62
|
+
// Brazil toll pass. See additional details at https://taggy.com.br.
|
|
63
|
+
BR_TAGGY = 10;
|
|
64
|
+
|
|
65
|
+
// Brazil toll pass. See additional details at
|
|
66
|
+
// https://veloe.com.br/site/onde-usar.
|
|
67
|
+
BR_VELOE = 11;
|
|
68
|
+
|
|
69
|
+
// Canada to United States border crossing.
|
|
70
|
+
CA_US_AKWASASNE_SEAWAY_CORPORATE_CARD = 84;
|
|
71
|
+
|
|
72
|
+
// Canada to United States border crossing.
|
|
73
|
+
CA_US_AKWASASNE_SEAWAY_TRANSIT_CARD = 85;
|
|
74
|
+
|
|
75
|
+
// Ontario, Canada to Michigan, United States border crossing.
|
|
76
|
+
CA_US_BLUE_WATER_EDGE_PASS = 18;
|
|
77
|
+
|
|
78
|
+
// Ontario, Canada to Michigan, United States border crossing.
|
|
79
|
+
CA_US_CONNEXION = 19;
|
|
80
|
+
|
|
81
|
+
// Canada to United States border crossing.
|
|
82
|
+
CA_US_NEXUS_CARD = 20;
|
|
83
|
+
|
|
84
|
+
// Indonesia.
|
|
85
|
+
// E-card provided by multiple banks used to pay for tolls. All e-cards
|
|
86
|
+
// via banks are charged the same so only one enum value is needed. E.g.
|
|
87
|
+
// - Bank Mandiri https://www.bankmandiri.co.id/e-money
|
|
88
|
+
// - BCA https://www.bca.co.id/flazz
|
|
89
|
+
// - BNI https://www.bni.co.id/id-id/ebanking/tapcash
|
|
90
|
+
ID_E_TOLL = 16;
|
|
91
|
+
|
|
92
|
+
// India.
|
|
93
|
+
IN_FASTAG = 78;
|
|
94
|
+
|
|
95
|
+
// India, HP state plate exemption.
|
|
96
|
+
IN_LOCAL_HP_PLATE_EXEMPT = 79;
|
|
97
|
+
|
|
98
|
+
// Mexico toll pass.
|
|
99
|
+
// https://iave.capufe.gob.mx/#/
|
|
100
|
+
MX_IAVE = 90;
|
|
101
|
+
|
|
102
|
+
// Mexico
|
|
103
|
+
// https://www.pase.com.mx
|
|
104
|
+
MX_PASE = 91;
|
|
105
|
+
|
|
106
|
+
// Mexico
|
|
107
|
+
// https://operadoravial.com/quick-pass/
|
|
108
|
+
MX_QUICKPASS = 93;
|
|
109
|
+
|
|
110
|
+
// http://appsh.chihuahua.gob.mx/transparencia/?doc=/ingresos/TelepeajeFormato4.pdf
|
|
111
|
+
MX_SISTEMA_TELEPEAJE_CHIHUAHUA = 89;
|
|
112
|
+
|
|
113
|
+
// Mexico
|
|
114
|
+
MX_TAG_IAVE = 12;
|
|
115
|
+
|
|
116
|
+
// Mexico toll pass company. One of many operating in Mexico City. See
|
|
117
|
+
// additional details at https://www.televia.com.mx.
|
|
118
|
+
MX_TAG_TELEVIA = 13;
|
|
119
|
+
|
|
120
|
+
// Mexico toll pass company. One of many operating in Mexico City.
|
|
121
|
+
// https://www.televia.com.mx
|
|
122
|
+
MX_TELEVIA = 92;
|
|
123
|
+
|
|
124
|
+
// Mexico toll pass. See additional details at
|
|
125
|
+
// https://www.viapass.com.mx/viapass/web_home.aspx.
|
|
126
|
+
MX_VIAPASS = 14;
|
|
127
|
+
|
|
128
|
+
// AL, USA.
|
|
129
|
+
US_AL_FREEDOM_PASS = 21;
|
|
130
|
+
|
|
131
|
+
// AK, USA.
|
|
132
|
+
US_AK_ANTON_ANDERSON_TUNNEL_BOOK_OF_10_TICKETS = 22;
|
|
133
|
+
|
|
134
|
+
// CA, USA.
|
|
135
|
+
US_CA_FASTRAK = 4;
|
|
136
|
+
|
|
137
|
+
// Indicates driver has any FasTrak pass in addition to the DMV issued Clean
|
|
138
|
+
// Air Vehicle (CAV) sticker.
|
|
139
|
+
// https://www.bayareafastrak.org/en/guide/doINeedFlex.shtml
|
|
140
|
+
US_CA_FASTRAK_CAV_STICKER = 86;
|
|
141
|
+
|
|
142
|
+
// CO, USA.
|
|
143
|
+
US_CO_EXPRESSTOLL = 23;
|
|
144
|
+
|
|
145
|
+
// CO, USA.
|
|
146
|
+
US_CO_GO_PASS = 24;
|
|
147
|
+
|
|
148
|
+
// DE, USA.
|
|
149
|
+
US_DE_EZPASSDE = 25;
|
|
150
|
+
|
|
151
|
+
// FL, USA.
|
|
152
|
+
US_FL_BOB_SIKES_TOLL_BRIDGE_PASS = 65;
|
|
153
|
+
|
|
154
|
+
// FL, USA.
|
|
155
|
+
US_FL_DUNES_COMMUNITY_DEVELOPMENT_DISTRICT_EXPRESSCARD = 66;
|
|
156
|
+
|
|
157
|
+
// FL, USA.
|
|
158
|
+
US_FL_EPASS = 67;
|
|
159
|
+
|
|
160
|
+
// FL, USA.
|
|
161
|
+
US_FL_GIBA_TOLL_PASS = 68;
|
|
162
|
+
|
|
163
|
+
// FL, USA.
|
|
164
|
+
US_FL_LEEWAY = 69;
|
|
165
|
+
|
|
166
|
+
// FL, USA.
|
|
167
|
+
US_FL_SUNPASS = 70;
|
|
168
|
+
|
|
169
|
+
// FL, USA.
|
|
170
|
+
US_FL_SUNPASS_PRO = 71;
|
|
171
|
+
|
|
172
|
+
// IL, USA.
|
|
173
|
+
US_IL_EZPASSIL = 73;
|
|
174
|
+
|
|
175
|
+
// IL, USA.
|
|
176
|
+
US_IL_IPASS = 72;
|
|
177
|
+
|
|
178
|
+
// IN, USA.
|
|
179
|
+
US_IN_EZPASSIN = 26;
|
|
180
|
+
|
|
181
|
+
// KS, USA.
|
|
182
|
+
US_KS_BESTPASS_HORIZON = 27;
|
|
183
|
+
|
|
184
|
+
// KS, USA.
|
|
185
|
+
US_KS_KTAG = 28;
|
|
186
|
+
|
|
187
|
+
// KS, USA.
|
|
188
|
+
US_KS_NATIONALPASS = 29;
|
|
189
|
+
|
|
190
|
+
// KS, USA.
|
|
191
|
+
US_KS_PREPASS_ELITEPASS = 30;
|
|
192
|
+
|
|
193
|
+
// KY, USA.
|
|
194
|
+
US_KY_RIVERLINK = 31;
|
|
195
|
+
|
|
196
|
+
// LA, USA.
|
|
197
|
+
US_LA_GEAUXPASS = 32;
|
|
198
|
+
|
|
199
|
+
// LA, USA.
|
|
200
|
+
US_LA_TOLL_TAG = 33;
|
|
201
|
+
|
|
202
|
+
// MA, USA.
|
|
203
|
+
US_MA_EZPASSMA = 6;
|
|
204
|
+
|
|
205
|
+
// MD, USA.
|
|
206
|
+
US_MD_EZPASSMD = 34;
|
|
207
|
+
|
|
208
|
+
// ME, USA.
|
|
209
|
+
US_ME_EZPASSME = 35;
|
|
210
|
+
|
|
211
|
+
// MI, USA.
|
|
212
|
+
US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD = 36;
|
|
213
|
+
|
|
214
|
+
// MI, USA.
|
|
215
|
+
US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG = 37;
|
|
216
|
+
|
|
217
|
+
// MI, USA.
|
|
218
|
+
US_MI_IQ_PROX_CARD = 38;
|
|
219
|
+
|
|
220
|
+
// MI, USA.
|
|
221
|
+
US_MI_MACKINAC_BRIDGE_MAC_PASS = 39;
|
|
222
|
+
|
|
223
|
+
// MI, USA.
|
|
224
|
+
US_MI_NEXPRESS_TOLL = 40;
|
|
225
|
+
|
|
226
|
+
// MN, USA.
|
|
227
|
+
US_MN_EZPASSMN = 41;
|
|
228
|
+
|
|
229
|
+
// NC, USA.
|
|
230
|
+
US_NC_EZPASSNC = 42;
|
|
231
|
+
|
|
232
|
+
// NC, USA.
|
|
233
|
+
US_NC_PEACH_PASS = 87;
|
|
234
|
+
|
|
235
|
+
// NC, USA.
|
|
236
|
+
US_NC_QUICK_PASS = 43;
|
|
237
|
+
|
|
238
|
+
// NH, USA.
|
|
239
|
+
US_NH_EZPASSNH = 80;
|
|
240
|
+
|
|
241
|
+
// NJ, USA.
|
|
242
|
+
US_NJ_DOWNBEACH_EXPRESS_PASS = 75;
|
|
243
|
+
|
|
244
|
+
// NJ, USA.
|
|
245
|
+
US_NJ_EZPASSNJ = 74;
|
|
246
|
+
|
|
247
|
+
// NY, USA.
|
|
248
|
+
US_NY_EXPRESSPASS = 76;
|
|
249
|
+
|
|
250
|
+
// NY, USA.
|
|
251
|
+
US_NY_EZPASSNY = 77;
|
|
252
|
+
|
|
253
|
+
// OH, USA.
|
|
254
|
+
US_OH_EZPASSOH = 44;
|
|
255
|
+
|
|
256
|
+
// PA, USA.
|
|
257
|
+
US_PA_EZPASSPA = 45;
|
|
258
|
+
|
|
259
|
+
// RI, USA.
|
|
260
|
+
US_RI_EZPASSRI = 46;
|
|
261
|
+
|
|
262
|
+
// SC, USA.
|
|
263
|
+
US_SC_PALPASS = 47;
|
|
264
|
+
|
|
265
|
+
// TX, USA.
|
|
266
|
+
US_TX_BANCPASS = 48;
|
|
267
|
+
|
|
268
|
+
// TX, USA.
|
|
269
|
+
US_TX_DEL_RIO_PASS = 49;
|
|
270
|
+
|
|
271
|
+
// TX, USA.
|
|
272
|
+
US_TX_EFAST_PASS = 50;
|
|
273
|
+
|
|
274
|
+
// TX, USA.
|
|
275
|
+
US_TX_EAGLE_PASS_EXPRESS_CARD = 51;
|
|
276
|
+
|
|
277
|
+
// TX, USA.
|
|
278
|
+
US_TX_EPTOLL = 52;
|
|
279
|
+
|
|
280
|
+
// TX, USA.
|
|
281
|
+
US_TX_EZ_CROSS = 53;
|
|
282
|
+
|
|
283
|
+
// TX, USA.
|
|
284
|
+
US_TX_EZTAG = 54;
|
|
285
|
+
|
|
286
|
+
// TX, USA.
|
|
287
|
+
US_TX_LAREDO_TRADE_TAG = 55;
|
|
288
|
+
|
|
289
|
+
// TX, USA.
|
|
290
|
+
US_TX_PLUSPASS = 56;
|
|
291
|
+
|
|
292
|
+
// TX, USA.
|
|
293
|
+
US_TX_TOLLTAG = 57;
|
|
294
|
+
|
|
295
|
+
// TX, USA.
|
|
296
|
+
US_TX_TXTAG = 58;
|
|
297
|
+
|
|
298
|
+
// TX, USA.
|
|
299
|
+
US_TX_XPRESS_CARD = 59;
|
|
300
|
+
|
|
301
|
+
// UT, USA.
|
|
302
|
+
US_UT_ADAMS_AVE_PARKWAY_EXPRESSCARD = 60;
|
|
303
|
+
|
|
304
|
+
// VA, USA.
|
|
305
|
+
US_VA_EZPASSVA = 61;
|
|
306
|
+
|
|
307
|
+
// WA, USA.
|
|
308
|
+
US_WA_BREEZEBY = 17;
|
|
309
|
+
|
|
310
|
+
// WA, USA.
|
|
311
|
+
US_WA_GOOD_TO_GO = 1;
|
|
312
|
+
|
|
313
|
+
// WV, USA.
|
|
314
|
+
US_WV_EZPASSWV = 62;
|
|
315
|
+
|
|
316
|
+
// WV, USA.
|
|
317
|
+
US_WV_MEMORIAL_BRIDGE_TICKETS = 63;
|
|
318
|
+
|
|
319
|
+
// WV, USA.
|
|
320
|
+
US_WV_NEWELL_TOLL_BRIDGE_TICKET = 64;
|
|
321
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Copyright 2022 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.maps.routing.v2;
|
|
18
|
+
|
|
19
|
+
option cc_enable_arenas = true;
|
|
20
|
+
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
21
|
+
option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing";
|
|
22
|
+
option java_multiple_files = true;
|
|
23
|
+
option java_outer_classname = "UnitsProto";
|
|
24
|
+
option java_package = "com.google.maps.routing.v2";
|
|
25
|
+
option objc_class_prefix = "GMRV2";
|
|
26
|
+
option php_namespace = "Google\\Maps\\Routing\\V2";
|
|
27
|
+
option ruby_package = "Google::Maps::Routing::V2";
|
|
28
|
+
|
|
29
|
+
// A set of values that specify the unit of measure used in the display.
|
|
30
|
+
enum Units {
|
|
31
|
+
// Units of measure not specified. Defaults to the unit of measure inferred
|
|
32
|
+
// from the request.
|
|
33
|
+
UNITS_UNSPECIFIED = 0;
|
|
34
|
+
|
|
35
|
+
// Metric units of measure.
|
|
36
|
+
METRIC = 1;
|
|
37
|
+
|
|
38
|
+
// Imperial (English) units of measure.
|
|
39
|
+
IMPERIAL = 2;
|
|
40
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright 2022 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.maps.routing.v2;
|
|
18
|
+
|
|
19
|
+
option cc_enable_arenas = true;
|
|
20
|
+
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
21
|
+
option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing";
|
|
22
|
+
option java_multiple_files = true;
|
|
23
|
+
option java_outer_classname = "VehicleEmissionTypeProto";
|
|
24
|
+
option java_package = "com.google.maps.routing.v2";
|
|
25
|
+
option objc_class_prefix = "GMRV2";
|
|
26
|
+
option php_namespace = "Google\\Maps\\Routing\\V2";
|
|
27
|
+
option ruby_package = "Google::Maps::Routing::V2";
|
|
28
|
+
|
|
29
|
+
// A set of values describing the vehicle's emission type.
|
|
30
|
+
// Applies only to the DRIVE travel mode.
|
|
31
|
+
enum VehicleEmissionType {
|
|
32
|
+
// No emission type specified. Default to GASOLINE.
|
|
33
|
+
VEHICLE_EMISSION_TYPE_UNSPECIFIED = 0;
|
|
34
|
+
|
|
35
|
+
// Gasoline/petrol fueled vehicle.
|
|
36
|
+
GASOLINE = 1;
|
|
37
|
+
|
|
38
|
+
// Electricity powered vehicle.
|
|
39
|
+
ELECTRIC = 2;
|
|
40
|
+
|
|
41
|
+
// Hybrid fuel (such as gasoline + electric) vehicle.
|
|
42
|
+
HYBRID = 3;
|
|
43
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Copyright 2022 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.maps.routing.v2;
|
|
18
|
+
|
|
19
|
+
import "google/maps/routing/v2/vehicle_emission_type.proto";
|
|
20
|
+
|
|
21
|
+
option cc_enable_arenas = true;
|
|
22
|
+
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
23
|
+
option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing";
|
|
24
|
+
option java_multiple_files = true;
|
|
25
|
+
option java_outer_classname = "VehicleInfoProto";
|
|
26
|
+
option java_package = "com.google.maps.routing.v2";
|
|
27
|
+
option objc_class_prefix = "GMRV2";
|
|
28
|
+
option php_namespace = "Google\\Maps\\Routing\\V2";
|
|
29
|
+
option ruby_package = "Google::Maps::Routing::V2";
|
|
30
|
+
|
|
31
|
+
// Encapsulates the vehicle information, such as the license plate last
|
|
32
|
+
// character.
|
|
33
|
+
message VehicleInfo {
|
|
34
|
+
// Describes the vehicle's emission type.
|
|
35
|
+
// Applies only to the DRIVE travel mode.
|
|
36
|
+
VehicleEmissionType emission_type = 2;
|
|
37
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// Copyright 2022 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.maps.routing.v2;
|
|
18
|
+
|
|
19
|
+
import "google/maps/routing/v2/location.proto";
|
|
20
|
+
|
|
21
|
+
option cc_enable_arenas = true;
|
|
22
|
+
option csharp_namespace = "Google.Maps.Routing.V2";
|
|
23
|
+
option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing";
|
|
24
|
+
option java_multiple_files = true;
|
|
25
|
+
option java_outer_classname = "WaypointProto";
|
|
26
|
+
option java_package = "com.google.maps.routing.v2";
|
|
27
|
+
option objc_class_prefix = "GMRV2";
|
|
28
|
+
option php_namespace = "Google\\Maps\\Routing\\V2";
|
|
29
|
+
option ruby_package = "Google::Maps::Routing::V2";
|
|
30
|
+
|
|
31
|
+
// Encapsulates a waypoint. Waypoints mark both the beginning and end of a
|
|
32
|
+
// route, and include intermediate stops along the route.
|
|
33
|
+
message Waypoint {
|
|
34
|
+
// Different ways to represent a location.
|
|
35
|
+
oneof location_type {
|
|
36
|
+
// A point specified using geographic coordinates, including an optional
|
|
37
|
+
// heading.
|
|
38
|
+
Location location = 1;
|
|
39
|
+
|
|
40
|
+
// The POI Place ID associated with the waypoint.
|
|
41
|
+
string place_id = 2;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Marks this waypoint as a milestone rather a stopping point. For
|
|
45
|
+
// each non-via waypoint in the request, the response appends an entry to the
|
|
46
|
+
// `legs` array to provide the details for stopovers on that leg of the
|
|
47
|
+
// trip. Set this value to true when you want the route to pass through this
|
|
48
|
+
// waypoint without stopping over. Via waypoints don't cause an entry to be
|
|
49
|
+
// added to the `legs` array, but they do route the journey through the
|
|
50
|
+
// waypoint. You can only set this value on waypoints that are intermediates.
|
|
51
|
+
// The request fails if you set this field on terminal waypoints.
|
|
52
|
+
// If `ComputeRoutesRequest.optimize_waypoint_order`
|
|
53
|
+
// is set to true then this field cannot be set to
|
|
54
|
+
// true; otherwise, the request fails.
|
|
55
|
+
bool via = 3;
|
|
56
|
+
|
|
57
|
+
// Indicates that the waypoint is meant for vehicles to stop at, where the
|
|
58
|
+
// intention is to either pickup or drop-off. When you set this value, the
|
|
59
|
+
// calculated route won't include non-`via` waypoints on roads that are
|
|
60
|
+
// unsuitable for pickup and drop-off. This option works only for `DRIVE` and
|
|
61
|
+
// `TWO_WHEELER` travel modes, and when the `location_type` is `location`.
|
|
62
|
+
bool vehicle_stopover = 4;
|
|
63
|
+
|
|
64
|
+
// Indicates that the location of this waypoint is meant to have a preference
|
|
65
|
+
// for the vehicle to stop at a particular side of road. When you set this
|
|
66
|
+
// value, the route will pass through the location so that the vehicle can
|
|
67
|
+
// stop at the side of road that the location is biased towards from the
|
|
68
|
+
// center of the road. This option works only for 'DRIVE' and 'TWO_WHEELER'
|
|
69
|
+
// travel modes.
|
|
70
|
+
bool side_of_road = 5;
|
|
71
|
+
}
|