aws-sdk-georoutes 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-georoutes/client.rb +2234 -0
- data/lib/aws-sdk-georoutes/client_api.rb +1933 -0
- data/lib/aws-sdk-georoutes/customizations.rb +0 -0
- data/lib/aws-sdk-georoutes/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-georoutes/endpoint_provider.rb +78 -0
- data/lib/aws-sdk-georoutes/endpoints.rb +20 -0
- data/lib/aws-sdk-georoutes/errors.rb +120 -0
- data/lib/aws-sdk-georoutes/plugins/endpoints.rb +77 -0
- data/lib/aws-sdk-georoutes/resource.rb +26 -0
- data/lib/aws-sdk-georoutes/types.rb +6849 -0
- data/lib/aws-sdk-georoutes.rb +61 -0
- data/sig/client.rbs +801 -0
- data/sig/errors.rbs +30 -0
- data/sig/resource.rbs +82 -0
- data/sig/types.rbs +1580 -0
- data/sig/waiters.rbs +13 -0
- metadata +99 -0
data/sig/client.rbs
ADDED
@@ -0,0 +1,801 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module GeoRoutes
|
10
|
+
class Client < ::Seahorse::Client::Base
|
11
|
+
include ::Aws::ClientStubs
|
12
|
+
|
13
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GeoRoutes/Client.html#initialize-instance_method
|
14
|
+
def self.new: (
|
15
|
+
?credentials: untyped,
|
16
|
+
?region: String,
|
17
|
+
?access_key_id: String,
|
18
|
+
?account_id: String,
|
19
|
+
?active_endpoint_cache: bool,
|
20
|
+
?adaptive_retry_wait_to_fill: bool,
|
21
|
+
?client_side_monitoring: bool,
|
22
|
+
?client_side_monitoring_client_id: String,
|
23
|
+
?client_side_monitoring_host: String,
|
24
|
+
?client_side_monitoring_port: Integer,
|
25
|
+
?client_side_monitoring_publisher: untyped,
|
26
|
+
?convert_params: bool,
|
27
|
+
?correct_clock_skew: bool,
|
28
|
+
?defaults_mode: String,
|
29
|
+
?disable_host_prefix_injection: bool,
|
30
|
+
?disable_request_compression: bool,
|
31
|
+
?endpoint: String,
|
32
|
+
?endpoint_cache_max_entries: Integer,
|
33
|
+
?endpoint_cache_max_threads: Integer,
|
34
|
+
?endpoint_cache_poll_interval: Integer,
|
35
|
+
?endpoint_discovery: bool,
|
36
|
+
?ignore_configured_endpoint_urls: bool,
|
37
|
+
?log_formatter: untyped,
|
38
|
+
?log_level: Symbol,
|
39
|
+
?logger: untyped,
|
40
|
+
?max_attempts: Integer,
|
41
|
+
?profile: String,
|
42
|
+
?request_min_compression_size_bytes: Integer,
|
43
|
+
?retry_backoff: Proc,
|
44
|
+
?retry_base_delay: Float,
|
45
|
+
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
46
|
+
?retry_limit: Integer,
|
47
|
+
?retry_max_delay: Integer,
|
48
|
+
?retry_mode: ("legacy" | "standard" | "adaptive"),
|
49
|
+
?sdk_ua_app_id: String,
|
50
|
+
?secret_access_key: String,
|
51
|
+
?session_token: String,
|
52
|
+
?sigv4a_signing_region_set: Array[String],
|
53
|
+
?stub_responses: untyped,
|
54
|
+
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
|
55
|
+
?token_provider: untyped,
|
56
|
+
?use_dualstack_endpoint: bool,
|
57
|
+
?use_fips_endpoint: bool,
|
58
|
+
?validate_params: bool,
|
59
|
+
?endpoint_provider: untyped,
|
60
|
+
?http_proxy: String,
|
61
|
+
?http_open_timeout: (Float | Integer),
|
62
|
+
?http_read_timeout: (Float | Integer),
|
63
|
+
?http_idle_timeout: (Float | Integer),
|
64
|
+
?http_continue_timeout: (Float | Integer),
|
65
|
+
?ssl_timeout: (Float | Integer | nil),
|
66
|
+
?http_wire_trace: bool,
|
67
|
+
?ssl_verify_peer: bool,
|
68
|
+
?ssl_ca_bundle: String,
|
69
|
+
?ssl_ca_directory: String,
|
70
|
+
?ssl_ca_store: String,
|
71
|
+
?on_chunk_received: Proc,
|
72
|
+
?on_chunk_sent: Proc,
|
73
|
+
?raise_response_errors: bool
|
74
|
+
) -> instance
|
75
|
+
| (?Hash[Symbol, untyped]) -> instance
|
76
|
+
|
77
|
+
|
78
|
+
interface _CalculateIsolinesResponseSuccess
|
79
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CalculateIsolinesResponse]
|
80
|
+
def arrival_time: () -> ::String
|
81
|
+
def departure_time: () -> ::String
|
82
|
+
def isoline_geometry_format: () -> ("FlexiblePolyline" | "Simple")
|
83
|
+
def isolines: () -> ::Array[Types::Isoline]
|
84
|
+
def pricing_bucket: () -> ::String
|
85
|
+
def snapped_destination: () -> ::Array[::Float]
|
86
|
+
def snapped_origin: () -> ::Array[::Float]
|
87
|
+
end
|
88
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GeoRoutes/Client.html#calculate_isolines-instance_method
|
89
|
+
def calculate_isolines: (
|
90
|
+
?allow: {
|
91
|
+
hot: bool?,
|
92
|
+
hov: bool?
|
93
|
+
},
|
94
|
+
?arrival_time: ::String,
|
95
|
+
?avoid: {
|
96
|
+
areas: Array[
|
97
|
+
{
|
98
|
+
except: Array[
|
99
|
+
{
|
100
|
+
bounding_box: Array[::Float]?,
|
101
|
+
corridor: {
|
102
|
+
line_string: Array[
|
103
|
+
Array[::Float],
|
104
|
+
],
|
105
|
+
radius: ::Integer
|
106
|
+
}?,
|
107
|
+
polygon: Array[
|
108
|
+
Array[
|
109
|
+
Array[::Float],
|
110
|
+
],
|
111
|
+
]?,
|
112
|
+
polyline_corridor: {
|
113
|
+
polyline: ::String,
|
114
|
+
radius: ::Integer
|
115
|
+
}?,
|
116
|
+
polyline_polygon: Array[::String]?
|
117
|
+
},
|
118
|
+
]?,
|
119
|
+
geometry: {
|
120
|
+
bounding_box: Array[::Float]?,
|
121
|
+
corridor: {
|
122
|
+
line_string: Array[
|
123
|
+
Array[::Float],
|
124
|
+
],
|
125
|
+
radius: ::Integer
|
126
|
+
}?,
|
127
|
+
polygon: Array[
|
128
|
+
Array[
|
129
|
+
Array[::Float],
|
130
|
+
],
|
131
|
+
]?,
|
132
|
+
polyline_corridor: {
|
133
|
+
polyline: ::String,
|
134
|
+
radius: ::Integer
|
135
|
+
}?,
|
136
|
+
polyline_polygon: Array[::String]?
|
137
|
+
}
|
138
|
+
},
|
139
|
+
]?,
|
140
|
+
car_shuttle_trains: bool?,
|
141
|
+
controlled_access_highways: bool?,
|
142
|
+
dirt_roads: bool?,
|
143
|
+
ferries: bool?,
|
144
|
+
seasonal_closure: bool?,
|
145
|
+
toll_roads: bool?,
|
146
|
+
toll_transponders: bool?,
|
147
|
+
truck_road_types: Array[::String]?,
|
148
|
+
tunnels: bool?,
|
149
|
+
u_turns: bool?,
|
150
|
+
zone_categories: Array[
|
151
|
+
{
|
152
|
+
category: ("CongestionPricing" | "Environmental" | "Vignette")?
|
153
|
+
},
|
154
|
+
]?
|
155
|
+
},
|
156
|
+
?depart_now: bool,
|
157
|
+
?departure_time: ::String,
|
158
|
+
?destination: Array[::Float],
|
159
|
+
?destination_options: {
|
160
|
+
avoid_actions_for_distance: ::Integer?,
|
161
|
+
heading: ::Float?,
|
162
|
+
matching: {
|
163
|
+
name_hint: ::String?,
|
164
|
+
on_road_threshold: ::Integer?,
|
165
|
+
radius: ::Integer?,
|
166
|
+
strategy: ("MatchAny" | "MatchMostSignificantRoad")?
|
167
|
+
}?,
|
168
|
+
side_of_street: {
|
169
|
+
position: Array[::Float],
|
170
|
+
use_with: ("AnyStreet" | "DividedStreetOnly")?
|
171
|
+
}?
|
172
|
+
},
|
173
|
+
?isoline_geometry_format: ("FlexiblePolyline" | "Simple"),
|
174
|
+
?isoline_granularity: {
|
175
|
+
max_points: ::Integer?,
|
176
|
+
max_resolution: ::Integer?
|
177
|
+
},
|
178
|
+
?key: ::String,
|
179
|
+
?optimize_isoline_for: ("AccurateCalculation" | "BalancedCalculation" | "FastCalculation"),
|
180
|
+
?optimize_routing_for: ("FastestRoute" | "ShortestRoute"),
|
181
|
+
?origin: Array[::Float],
|
182
|
+
?origin_options: {
|
183
|
+
avoid_actions_for_distance: ::Integer?,
|
184
|
+
heading: ::Float?,
|
185
|
+
matching: {
|
186
|
+
name_hint: ::String?,
|
187
|
+
on_road_threshold: ::Integer?,
|
188
|
+
radius: ::Integer?,
|
189
|
+
strategy: ("MatchAny" | "MatchMostSignificantRoad")?
|
190
|
+
}?,
|
191
|
+
side_of_street: {
|
192
|
+
position: Array[::Float],
|
193
|
+
use_with: ("AnyStreet" | "DividedStreetOnly")?
|
194
|
+
}?
|
195
|
+
},
|
196
|
+
thresholds: {
|
197
|
+
distance: Array[::Integer]?,
|
198
|
+
time: Array[::Integer]?
|
199
|
+
},
|
200
|
+
?traffic: {
|
201
|
+
flow_event_threshold_override: ::Integer?,
|
202
|
+
usage: ("IgnoreTrafficData" | "UseTrafficData")?
|
203
|
+
},
|
204
|
+
?travel_mode: ("Car" | "Pedestrian" | "Scooter" | "Truck"),
|
205
|
+
?travel_mode_options: {
|
206
|
+
car: {
|
207
|
+
engine_type: ("Electric" | "InternalCombustion" | "PluginHybrid")?,
|
208
|
+
license_plate: {
|
209
|
+
last_character: ::String?
|
210
|
+
}?,
|
211
|
+
max_speed: ::Float?,
|
212
|
+
occupancy: ::Integer?
|
213
|
+
}?,
|
214
|
+
scooter: {
|
215
|
+
engine_type: ("Electric" | "InternalCombustion" | "PluginHybrid")?,
|
216
|
+
license_plate: {
|
217
|
+
last_character: ::String?
|
218
|
+
}?,
|
219
|
+
max_speed: ::Float?,
|
220
|
+
occupancy: ::Integer?
|
221
|
+
}?,
|
222
|
+
truck: {
|
223
|
+
axle_count: ::Integer?,
|
224
|
+
engine_type: ("Electric" | "InternalCombustion" | "PluginHybrid")?,
|
225
|
+
gross_weight: ::Integer?,
|
226
|
+
hazardous_cargos: Array[("Combustible" | "Corrosive" | "Explosive" | "Flammable" | "Gas" | "HarmfulToWater" | "Organic" | "Other" | "Poison" | "PoisonousInhalation" | "Radioactive")]?,
|
227
|
+
height: ::Integer?,
|
228
|
+
height_above_first_axle: ::Integer?,
|
229
|
+
kpra_length: ::Integer?,
|
230
|
+
length: ::Integer?,
|
231
|
+
license_plate: {
|
232
|
+
last_character: ::String?
|
233
|
+
}?,
|
234
|
+
max_speed: ::Float?,
|
235
|
+
occupancy: ::Integer?,
|
236
|
+
payload_capacity: ::Integer?,
|
237
|
+
tire_count: ::Integer?,
|
238
|
+
trailer: {
|
239
|
+
axle_count: ::Integer?,
|
240
|
+
trailer_count: ::Integer?
|
241
|
+
}?,
|
242
|
+
truck_type: ("LightTruck" | "StraightTruck" | "Tractor")?,
|
243
|
+
tunnel_restriction_code: ::String?,
|
244
|
+
weight_per_axle: ::Integer?,
|
245
|
+
weight_per_axle_group: {
|
246
|
+
single: ::Integer?,
|
247
|
+
tandem: ::Integer?,
|
248
|
+
triple: ::Integer?,
|
249
|
+
quad: ::Integer?,
|
250
|
+
quint: ::Integer?
|
251
|
+
}?,
|
252
|
+
width: ::Integer?
|
253
|
+
}?
|
254
|
+
}
|
255
|
+
) -> _CalculateIsolinesResponseSuccess
|
256
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CalculateIsolinesResponseSuccess
|
257
|
+
|
258
|
+
interface _CalculateRouteMatrixResponseSuccess
|
259
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CalculateRouteMatrixResponse]
|
260
|
+
def error_count: () -> ::Integer
|
261
|
+
def pricing_bucket: () -> ::String
|
262
|
+
def route_matrix: () -> ::Array[::Array[Types::RouteMatrixEntry]]
|
263
|
+
def routing_boundary: () -> Types::RouteMatrixBoundary
|
264
|
+
end
|
265
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GeoRoutes/Client.html#calculate_route_matrix-instance_method
|
266
|
+
def calculate_route_matrix: (
|
267
|
+
?allow: {
|
268
|
+
hot: bool?,
|
269
|
+
hov: bool?
|
270
|
+
},
|
271
|
+
?avoid: {
|
272
|
+
areas: Array[
|
273
|
+
{
|
274
|
+
geometry: {
|
275
|
+
bounding_box: Array[::Float]?,
|
276
|
+
polygon: Array[
|
277
|
+
Array[
|
278
|
+
Array[::Float],
|
279
|
+
],
|
280
|
+
]?,
|
281
|
+
polyline_polygon: Array[::String]?
|
282
|
+
}
|
283
|
+
},
|
284
|
+
]?,
|
285
|
+
car_shuttle_trains: bool?,
|
286
|
+
controlled_access_highways: bool?,
|
287
|
+
dirt_roads: bool?,
|
288
|
+
ferries: bool?,
|
289
|
+
toll_roads: bool?,
|
290
|
+
toll_transponders: bool?,
|
291
|
+
truck_road_types: Array[::String]?,
|
292
|
+
tunnels: bool?,
|
293
|
+
u_turns: bool?,
|
294
|
+
zone_categories: Array[
|
295
|
+
{
|
296
|
+
category: ("CongestionPricing" | "Environmental" | "Vignette")?
|
297
|
+
},
|
298
|
+
]?
|
299
|
+
},
|
300
|
+
?depart_now: bool,
|
301
|
+
?departure_time: ::String,
|
302
|
+
destinations: Array[
|
303
|
+
{
|
304
|
+
options: {
|
305
|
+
avoid_actions_for_distance: ::Integer?,
|
306
|
+
heading: ::Float?,
|
307
|
+
matching: {
|
308
|
+
name_hint: ::String?,
|
309
|
+
on_road_threshold: ::Integer?,
|
310
|
+
radius: ::Integer?,
|
311
|
+
strategy: ("MatchAny" | "MatchMostSignificantRoad")?
|
312
|
+
}?,
|
313
|
+
side_of_street: {
|
314
|
+
position: Array[::Float],
|
315
|
+
use_with: ("AnyStreet" | "DividedStreetOnly")?
|
316
|
+
}?
|
317
|
+
}?,
|
318
|
+
position: Array[::Float]
|
319
|
+
},
|
320
|
+
],
|
321
|
+
?exclude: {
|
322
|
+
countries: Array[::String]
|
323
|
+
},
|
324
|
+
?key: ::String,
|
325
|
+
?optimize_routing_for: ("FastestRoute" | "ShortestRoute"),
|
326
|
+
origins: Array[
|
327
|
+
{
|
328
|
+
options: {
|
329
|
+
avoid_actions_for_distance: ::Integer?,
|
330
|
+
heading: ::Float?,
|
331
|
+
matching: {
|
332
|
+
name_hint: ::String?,
|
333
|
+
on_road_threshold: ::Integer?,
|
334
|
+
radius: ::Integer?,
|
335
|
+
strategy: ("MatchAny" | "MatchMostSignificantRoad")?
|
336
|
+
}?,
|
337
|
+
side_of_street: {
|
338
|
+
position: Array[::Float],
|
339
|
+
use_with: ("AnyStreet" | "DividedStreetOnly")?
|
340
|
+
}?
|
341
|
+
}?,
|
342
|
+
position: Array[::Float]
|
343
|
+
},
|
344
|
+
],
|
345
|
+
routing_boundary: {
|
346
|
+
geometry: {
|
347
|
+
auto_circle: {
|
348
|
+
margin: ::Integer?,
|
349
|
+
max_radius: ::Integer?
|
350
|
+
}?,
|
351
|
+
circle: {
|
352
|
+
center: Array[::Float],
|
353
|
+
radius: ::Float
|
354
|
+
}?,
|
355
|
+
bounding_box: Array[::Float]?,
|
356
|
+
polygon: Array[
|
357
|
+
Array[
|
358
|
+
Array[::Float],
|
359
|
+
],
|
360
|
+
]?
|
361
|
+
}?,
|
362
|
+
unbounded: bool?
|
363
|
+
},
|
364
|
+
?traffic: {
|
365
|
+
flow_event_threshold_override: ::Integer?,
|
366
|
+
usage: ("IgnoreTrafficData" | "UseTrafficData")?
|
367
|
+
},
|
368
|
+
?travel_mode: ("Car" | "Pedestrian" | "Scooter" | "Truck"),
|
369
|
+
?travel_mode_options: {
|
370
|
+
car: {
|
371
|
+
license_plate: {
|
372
|
+
last_character: ::String?
|
373
|
+
}?,
|
374
|
+
max_speed: ::Float?,
|
375
|
+
occupancy: ::Integer?
|
376
|
+
}?,
|
377
|
+
scooter: {
|
378
|
+
license_plate: {
|
379
|
+
last_character: ::String?
|
380
|
+
}?,
|
381
|
+
max_speed: ::Float?,
|
382
|
+
occupancy: ::Integer?
|
383
|
+
}?,
|
384
|
+
truck: {
|
385
|
+
axle_count: ::Integer?,
|
386
|
+
gross_weight: ::Integer?,
|
387
|
+
hazardous_cargos: Array[("Combustible" | "Corrosive" | "Explosive" | "Flammable" | "Gas" | "HarmfulToWater" | "Organic" | "Other" | "Poison" | "PoisonousInhalation" | "Radioactive")]?,
|
388
|
+
height: ::Integer?,
|
389
|
+
kpra_length: ::Integer?,
|
390
|
+
length: ::Integer?,
|
391
|
+
license_plate: {
|
392
|
+
last_character: ::String?
|
393
|
+
}?,
|
394
|
+
max_speed: ::Float?,
|
395
|
+
occupancy: ::Integer?,
|
396
|
+
payload_capacity: ::Integer?,
|
397
|
+
trailer: {
|
398
|
+
trailer_count: ::Integer?
|
399
|
+
}?,
|
400
|
+
truck_type: ("LightTruck" | "StraightTruck" | "Tractor")?,
|
401
|
+
tunnel_restriction_code: ::String?,
|
402
|
+
weight_per_axle: ::Integer?,
|
403
|
+
weight_per_axle_group: {
|
404
|
+
single: ::Integer?,
|
405
|
+
tandem: ::Integer?,
|
406
|
+
triple: ::Integer?,
|
407
|
+
quad: ::Integer?,
|
408
|
+
quint: ::Integer?
|
409
|
+
}?,
|
410
|
+
width: ::Integer?
|
411
|
+
}?
|
412
|
+
}
|
413
|
+
) -> _CalculateRouteMatrixResponseSuccess
|
414
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CalculateRouteMatrixResponseSuccess
|
415
|
+
|
416
|
+
interface _CalculateRoutesResponseSuccess
|
417
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CalculateRoutesResponse]
|
418
|
+
def leg_geometry_format: () -> ("FlexiblePolyline" | "Simple")
|
419
|
+
def notices: () -> ::Array[Types::RouteResponseNotice]
|
420
|
+
def pricing_bucket: () -> ::String
|
421
|
+
def routes: () -> ::Array[Types::Route]
|
422
|
+
end
|
423
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GeoRoutes/Client.html#calculate_routes-instance_method
|
424
|
+
def calculate_routes: (
|
425
|
+
?allow: {
|
426
|
+
hot: bool?,
|
427
|
+
hov: bool?
|
428
|
+
},
|
429
|
+
?arrival_time: ::String,
|
430
|
+
?avoid: {
|
431
|
+
areas: Array[
|
432
|
+
{
|
433
|
+
except: Array[
|
434
|
+
{
|
435
|
+
corridor: {
|
436
|
+
line_string: Array[
|
437
|
+
Array[::Float],
|
438
|
+
],
|
439
|
+
radius: ::Integer
|
440
|
+
}?,
|
441
|
+
bounding_box: Array[::Float]?,
|
442
|
+
polygon: Array[
|
443
|
+
Array[
|
444
|
+
Array[::Float],
|
445
|
+
],
|
446
|
+
]?,
|
447
|
+
polyline_corridor: {
|
448
|
+
polyline: ::String,
|
449
|
+
radius: ::Integer
|
450
|
+
}?,
|
451
|
+
polyline_polygon: Array[::String]?
|
452
|
+
},
|
453
|
+
]?,
|
454
|
+
geometry: {
|
455
|
+
corridor: {
|
456
|
+
line_string: Array[
|
457
|
+
Array[::Float],
|
458
|
+
],
|
459
|
+
radius: ::Integer
|
460
|
+
}?,
|
461
|
+
bounding_box: Array[::Float]?,
|
462
|
+
polygon: Array[
|
463
|
+
Array[
|
464
|
+
Array[::Float],
|
465
|
+
],
|
466
|
+
]?,
|
467
|
+
polyline_corridor: {
|
468
|
+
polyline: ::String,
|
469
|
+
radius: ::Integer
|
470
|
+
}?,
|
471
|
+
polyline_polygon: Array[::String]?
|
472
|
+
}
|
473
|
+
},
|
474
|
+
]?,
|
475
|
+
car_shuttle_trains: bool?,
|
476
|
+
controlled_access_highways: bool?,
|
477
|
+
dirt_roads: bool?,
|
478
|
+
ferries: bool?,
|
479
|
+
seasonal_closure: bool?,
|
480
|
+
toll_roads: bool?,
|
481
|
+
toll_transponders: bool?,
|
482
|
+
truck_road_types: Array[::String]?,
|
483
|
+
tunnels: bool?,
|
484
|
+
u_turns: bool?,
|
485
|
+
zone_categories: Array[
|
486
|
+
{
|
487
|
+
category: ("CongestionPricing" | "Environmental" | "Vignette")
|
488
|
+
},
|
489
|
+
]?
|
490
|
+
},
|
491
|
+
?depart_now: bool,
|
492
|
+
?departure_time: ::String,
|
493
|
+
destination: Array[::Float],
|
494
|
+
?destination_options: {
|
495
|
+
avoid_actions_for_distance: ::Integer?,
|
496
|
+
avoid_u_turns: bool?,
|
497
|
+
heading: ::Float?,
|
498
|
+
matching: {
|
499
|
+
name_hint: ::String?,
|
500
|
+
on_road_threshold: ::Integer?,
|
501
|
+
radius: ::Integer?,
|
502
|
+
strategy: ("MatchAny" | "MatchMostSignificantRoad")?
|
503
|
+
}?,
|
504
|
+
side_of_street: {
|
505
|
+
position: Array[::Float],
|
506
|
+
use_with: ("AnyStreet" | "DividedStreetOnly")?
|
507
|
+
}?,
|
508
|
+
stop_duration: ::Integer?
|
509
|
+
},
|
510
|
+
?driver: {
|
511
|
+
schedule: Array[
|
512
|
+
{
|
513
|
+
drive_duration: ::Integer,
|
514
|
+
rest_duration: ::Integer
|
515
|
+
},
|
516
|
+
]?
|
517
|
+
},
|
518
|
+
?exclude: {
|
519
|
+
countries: Array[::String]
|
520
|
+
},
|
521
|
+
?instructions_measurement_system: ("Metric" | "Imperial"),
|
522
|
+
?key: ::String,
|
523
|
+
?languages: Array[::String],
|
524
|
+
?leg_additional_features: Array[("Elevation" | "Incidents" | "PassThroughWaypoints" | "Summary" | "Tolls" | "TravelStepInstructions" | "TruckRoadTypes" | "TypicalDuration" | "Zones")],
|
525
|
+
?leg_geometry_format: ("FlexiblePolyline" | "Simple"),
|
526
|
+
?max_alternatives: ::Integer,
|
527
|
+
?optimize_routing_for: ("FastestRoute" | "ShortestRoute"),
|
528
|
+
origin: Array[::Float],
|
529
|
+
?origin_options: {
|
530
|
+
avoid_actions_for_distance: ::Integer?,
|
531
|
+
avoid_u_turns: bool?,
|
532
|
+
heading: ::Float?,
|
533
|
+
matching: {
|
534
|
+
name_hint: ::String?,
|
535
|
+
on_road_threshold: ::Integer?,
|
536
|
+
radius: ::Integer?,
|
537
|
+
strategy: ("MatchAny" | "MatchMostSignificantRoad")?
|
538
|
+
}?,
|
539
|
+
side_of_street: {
|
540
|
+
position: Array[::Float],
|
541
|
+
use_with: ("AnyStreet" | "DividedStreetOnly")?
|
542
|
+
}?
|
543
|
+
},
|
544
|
+
?span_additional_features: Array[("BestCaseDuration" | "CarAccess" | "Country" | "Distance" | "Duration" | "DynamicSpeed" | "FunctionalClassification" | "Gates" | "Incidents" | "Names" | "Notices" | "PedestrianAccess" | "RailwayCrossings" | "Region" | "RoadAttributes" | "RouteNumbers" | "ScooterAccess" | "SpeedLimit" | "TollSystems" | "TruckAccess" | "TruckRoadTypes" | "TypicalDuration" | "Zones" | "Consumption")],
|
545
|
+
?tolls: {
|
546
|
+
all_transponders: bool?,
|
547
|
+
all_vignettes: bool?,
|
548
|
+
currency: ::String?,
|
549
|
+
emission_type: {
|
550
|
+
co_2_emission_class: ::String?,
|
551
|
+
type: ::String
|
552
|
+
}?,
|
553
|
+
vehicle_category: ("Minibus")?
|
554
|
+
},
|
555
|
+
?traffic: {
|
556
|
+
flow_event_threshold_override: ::Integer?,
|
557
|
+
usage: ("IgnoreTrafficData" | "UseTrafficData")?
|
558
|
+
},
|
559
|
+
?travel_mode: ("Car" | "Pedestrian" | "Scooter" | "Truck"),
|
560
|
+
?travel_mode_options: {
|
561
|
+
car: {
|
562
|
+
engine_type: ("Electric" | "InternalCombustion" | "PluginHybrid")?,
|
563
|
+
license_plate: {
|
564
|
+
last_character: ::String?
|
565
|
+
}?,
|
566
|
+
max_speed: ::Float?,
|
567
|
+
occupancy: ::Integer?
|
568
|
+
}?,
|
569
|
+
pedestrian: {
|
570
|
+
speed: ::Float?
|
571
|
+
}?,
|
572
|
+
scooter: {
|
573
|
+
engine_type: ("Electric" | "InternalCombustion" | "PluginHybrid")?,
|
574
|
+
license_plate: {
|
575
|
+
last_character: ::String?
|
576
|
+
}?,
|
577
|
+
max_speed: ::Float?,
|
578
|
+
occupancy: ::Integer?
|
579
|
+
}?,
|
580
|
+
truck: {
|
581
|
+
axle_count: ::Integer?,
|
582
|
+
engine_type: ("Electric" | "InternalCombustion" | "PluginHybrid")?,
|
583
|
+
gross_weight: ::Integer?,
|
584
|
+
hazardous_cargos: Array[("Combustible" | "Corrosive" | "Explosive" | "Flammable" | "Gas" | "HarmfulToWater" | "Organic" | "Other" | "Poison" | "PoisonousInhalation" | "Radioactive")]?,
|
585
|
+
height: ::Integer?,
|
586
|
+
height_above_first_axle: ::Integer?,
|
587
|
+
kpra_length: ::Integer?,
|
588
|
+
length: ::Integer?,
|
589
|
+
license_plate: {
|
590
|
+
last_character: ::String?
|
591
|
+
}?,
|
592
|
+
max_speed: ::Float?,
|
593
|
+
occupancy: ::Integer?,
|
594
|
+
payload_capacity: ::Integer?,
|
595
|
+
tire_count: ::Integer?,
|
596
|
+
trailer: {
|
597
|
+
axle_count: ::Integer?,
|
598
|
+
trailer_count: ::Integer?
|
599
|
+
}?,
|
600
|
+
truck_type: ("LightTruck" | "StraightTruck" | "Tractor")?,
|
601
|
+
tunnel_restriction_code: ::String?,
|
602
|
+
weight_per_axle: ::Integer?,
|
603
|
+
weight_per_axle_group: {
|
604
|
+
single: ::Integer?,
|
605
|
+
tandem: ::Integer?,
|
606
|
+
triple: ::Integer?,
|
607
|
+
quad: ::Integer?,
|
608
|
+
quint: ::Integer?
|
609
|
+
}?,
|
610
|
+
width: ::Integer?
|
611
|
+
}?
|
612
|
+
},
|
613
|
+
?travel_step_type: ("Default" | "TurnByTurn"),
|
614
|
+
?waypoints: Array[
|
615
|
+
{
|
616
|
+
avoid_actions_for_distance: ::Integer?,
|
617
|
+
avoid_u_turns: bool?,
|
618
|
+
heading: ::Float?,
|
619
|
+
matching: {
|
620
|
+
name_hint: ::String?,
|
621
|
+
on_road_threshold: ::Integer?,
|
622
|
+
radius: ::Integer?,
|
623
|
+
strategy: ("MatchAny" | "MatchMostSignificantRoad")?
|
624
|
+
}?,
|
625
|
+
pass_through: bool?,
|
626
|
+
position: Array[::Float],
|
627
|
+
side_of_street: {
|
628
|
+
position: Array[::Float],
|
629
|
+
use_with: ("AnyStreet" | "DividedStreetOnly")?
|
630
|
+
}?,
|
631
|
+
stop_duration: ::Integer?
|
632
|
+
},
|
633
|
+
]
|
634
|
+
) -> _CalculateRoutesResponseSuccess
|
635
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CalculateRoutesResponseSuccess
|
636
|
+
|
637
|
+
interface _OptimizeWaypointsResponseSuccess
|
638
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::OptimizeWaypointsResponse]
|
639
|
+
def connections: () -> ::Array[Types::WaypointOptimizationConnection]
|
640
|
+
def distance: () -> ::Integer
|
641
|
+
def duration: () -> ::Integer
|
642
|
+
def impeding_waypoints: () -> ::Array[Types::WaypointOptimizationImpedingWaypoint]
|
643
|
+
def optimized_waypoints: () -> ::Array[Types::WaypointOptimizationOptimizedWaypoint]
|
644
|
+
def pricing_bucket: () -> ::String
|
645
|
+
def time_breakdown: () -> Types::WaypointOptimizationTimeBreakdown
|
646
|
+
end
|
647
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GeoRoutes/Client.html#optimize_waypoints-instance_method
|
648
|
+
def optimize_waypoints: (
|
649
|
+
?avoid: {
|
650
|
+
areas: Array[
|
651
|
+
{
|
652
|
+
geometry: {
|
653
|
+
bounding_box: Array[::Float]?
|
654
|
+
}
|
655
|
+
},
|
656
|
+
]?,
|
657
|
+
car_shuttle_trains: bool?,
|
658
|
+
controlled_access_highways: bool?,
|
659
|
+
dirt_roads: bool?,
|
660
|
+
ferries: bool?,
|
661
|
+
toll_roads: bool?,
|
662
|
+
tunnels: bool?,
|
663
|
+
u_turns: bool?
|
664
|
+
},
|
665
|
+
?departure_time: ::String,
|
666
|
+
?destination: Array[::Float],
|
667
|
+
?destination_options: {
|
668
|
+
access_hours: {
|
669
|
+
from: {
|
670
|
+
day_of_week: ("Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday"),
|
671
|
+
time_of_day: ::String
|
672
|
+
},
|
673
|
+
to: {
|
674
|
+
day_of_week: ("Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday"),
|
675
|
+
time_of_day: ::String
|
676
|
+
}
|
677
|
+
}?,
|
678
|
+
appointment_time: ::String?,
|
679
|
+
heading: ::Float?,
|
680
|
+
id: ::String?,
|
681
|
+
service_duration: ::Integer?,
|
682
|
+
side_of_street: {
|
683
|
+
position: Array[::Float],
|
684
|
+
use_with: ("AnyStreet" | "DividedStreetOnly")?
|
685
|
+
}?
|
686
|
+
},
|
687
|
+
?driver: {
|
688
|
+
rest_cycles: {
|
689
|
+
long_cycle: {
|
690
|
+
rest_duration: ::Integer,
|
691
|
+
work_duration: ::Integer
|
692
|
+
},
|
693
|
+
short_cycle: {
|
694
|
+
rest_duration: ::Integer,
|
695
|
+
work_duration: ::Integer
|
696
|
+
}
|
697
|
+
}?,
|
698
|
+
rest_profile: {
|
699
|
+
profile: ::String
|
700
|
+
}?,
|
701
|
+
treat_service_time_as: ("Rest" | "Work")?
|
702
|
+
},
|
703
|
+
?exclude: {
|
704
|
+
countries: Array[::String]
|
705
|
+
},
|
706
|
+
?key: ::String,
|
707
|
+
?optimize_sequencing_for: ("FastestRoute" | "ShortestRoute"),
|
708
|
+
origin: Array[::Float],
|
709
|
+
?origin_options: {
|
710
|
+
id: ::String?
|
711
|
+
},
|
712
|
+
?traffic: {
|
713
|
+
usage: ("IgnoreTrafficData" | "UseTrafficData")?
|
714
|
+
},
|
715
|
+
?travel_mode: ("Car" | "Pedestrian" | "Scooter" | "Truck"),
|
716
|
+
?travel_mode_options: {
|
717
|
+
pedestrian: {
|
718
|
+
speed: ::Float?
|
719
|
+
}?,
|
720
|
+
truck: {
|
721
|
+
gross_weight: ::Integer?,
|
722
|
+
hazardous_cargos: Array[("Combustible" | "Corrosive" | "Explosive" | "Flammable" | "Gas" | "HarmfulToWater" | "Organic" | "Other" | "Poison" | "PoisonousInhalation" | "Radioactive")]?,
|
723
|
+
height: ::Integer?,
|
724
|
+
length: ::Integer?,
|
725
|
+
trailer: {
|
726
|
+
trailer_count: ::Integer?
|
727
|
+
}?,
|
728
|
+
truck_type: ("StraightTruck" | "Tractor")?,
|
729
|
+
tunnel_restriction_code: ::String?,
|
730
|
+
weight_per_axle: ::Integer?,
|
731
|
+
width: ::Integer?
|
732
|
+
}?
|
733
|
+
},
|
734
|
+
?waypoints: Array[
|
735
|
+
{
|
736
|
+
access_hours: {
|
737
|
+
from: {
|
738
|
+
day_of_week: ("Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday"),
|
739
|
+
time_of_day: ::String
|
740
|
+
},
|
741
|
+
to: {
|
742
|
+
day_of_week: ("Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday"),
|
743
|
+
time_of_day: ::String
|
744
|
+
}
|
745
|
+
}?,
|
746
|
+
appointment_time: ::String?,
|
747
|
+
before: Array[::Integer]?,
|
748
|
+
heading: ::Float?,
|
749
|
+
id: ::String?,
|
750
|
+
position: Array[::Float],
|
751
|
+
service_duration: ::Integer?,
|
752
|
+
side_of_street: {
|
753
|
+
position: Array[::Float],
|
754
|
+
use_with: ("AnyStreet" | "DividedStreetOnly")?
|
755
|
+
}?
|
756
|
+
},
|
757
|
+
]
|
758
|
+
) -> _OptimizeWaypointsResponseSuccess
|
759
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _OptimizeWaypointsResponseSuccess
|
760
|
+
|
761
|
+
interface _SnapToRoadsResponseSuccess
|
762
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::SnapToRoadsResponse]
|
763
|
+
def notices: () -> ::Array[Types::RoadSnapNotice]
|
764
|
+
def pricing_bucket: () -> ::String
|
765
|
+
def snapped_geometry: () -> Types::RoadSnapSnappedGeometry
|
766
|
+
def snapped_geometry_format: () -> ("FlexiblePolyline" | "Simple")
|
767
|
+
def snapped_trace_points: () -> ::Array[Types::RoadSnapSnappedTracePoint]
|
768
|
+
end
|
769
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/GeoRoutes/Client.html#snap_to_roads-instance_method
|
770
|
+
def snap_to_roads: (
|
771
|
+
?key: ::String,
|
772
|
+
?snapped_geometry_format: ("FlexiblePolyline" | "Simple"),
|
773
|
+
?snap_radius: ::Integer,
|
774
|
+
trace_points: Array[
|
775
|
+
{
|
776
|
+
heading: ::Float?,
|
777
|
+
position: Array[::Float],
|
778
|
+
speed: ::Float?,
|
779
|
+
timestamp: ::String?
|
780
|
+
},
|
781
|
+
],
|
782
|
+
?travel_mode: ("Car" | "Pedestrian" | "Scooter" | "Truck"),
|
783
|
+
?travel_mode_options: {
|
784
|
+
truck: {
|
785
|
+
gross_weight: ::Integer?,
|
786
|
+
hazardous_cargos: Array[("Combustible" | "Corrosive" | "Explosive" | "Flammable" | "Gas" | "HarmfulToWater" | "Organic" | "Other" | "Poison" | "PoisonousInhalation" | "Radioactive")]?,
|
787
|
+
height: ::Integer?,
|
788
|
+
length: ::Integer?,
|
789
|
+
trailer: {
|
790
|
+
trailer_count: ::Integer?
|
791
|
+
}?,
|
792
|
+
tunnel_restriction_code: ::String?,
|
793
|
+
width: ::Integer?
|
794
|
+
}?
|
795
|
+
}
|
796
|
+
) -> _SnapToRoadsResponseSuccess
|
797
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SnapToRoadsResponseSuccess
|
798
|
+
end
|
799
|
+
end
|
800
|
+
end
|
801
|
+
|