lib/aws-sdk-locationservice/client.rb in aws-sdk-locationservice-1.42.0 vs lib/aws-sdk-locationservice/client.rb in aws-sdk-locationservice-1.43.0
- old
+ new
@@ -810,10 +810,19 @@
# [1]: https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html
# [2]: https://docs.aws.amazon.com/location-routes/latest/APIReference/API_CreateRouteCalculator.html
# [3]: https://docs.aws.amazon.com/location/latest/developerguide/departure-time.html
# [4]: https://docs.aws.amazon.com/location/latest/developerguide/travel-mode.html
#
+ # @option params [Time,DateTime,Date,Integer,String] :arrival_time
+ # Specifies the desired time of arrival. Uses the given time to
+ # calculate the route. Otherwise, the best time of day to travel with
+ # the best traffic conditions is used to calculate the route.
+ #
+ # <note markdown="1"> ArrivalTime is not supported Esri.
+ #
+ # </note>
+ #
# @option params [required, String] :calculator_name
# The name of the route calculator resource that you want to use to
# calculate the route.
#
# @option params [Types::CalculateRouteCarModeOptions] :car_mode_options
@@ -856,15 +865,10 @@
# @option params [Time,DateTime,Date,Integer,String] :departure_time
# Specifies the desired time of departure. Uses the given time to
# calculate the route. Otherwise, the best time of day to travel with
# the best traffic conditions is used to calculate the route.
#
- # <note markdown="1"> Setting a departure time in the past returns a `400
- # ValidationException` error.
- #
- # </note>
- #
# * In [ISO 8601][1] format: `YYYY-MM-DDThh:mm:ss.sssZ`. For example,
# `2020–07-2T12:15:20.000Z+01:00`
#
# ^
#
@@ -910,10 +914,13 @@
#
#
#
# [1]: https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html
#
+ # @option params [String] :optimize_for
+ # Specifies the distance to optimize for when calculating a route.
+ #
# @option params [String] :travel_mode
# Specifies the mode of transport when calculating a route. Used in
# estimating the speed of travel and road compatibility. You can choose
# `Car`, `Truck`, `Walking`, `Bicycle` or `Motorcycle` as options for
# the `TravelMode`.
@@ -984,10 +991,11 @@
# * {Types::CalculateRouteResponse#summary #summary} => Types::CalculateRouteSummary
#
# @example Request syntax with placeholder values
#
# resp = client.calculate_route({
+ # arrival_time: Time.now,
# calculator_name: "ResourceName", # required
# car_mode_options: {
# avoid_ferries: false,
# avoid_tolls: false,
# },
@@ -996,10 +1004,11 @@
# departure_time: Time.now,
# destination_position: [1.0], # required
# distance_unit: "Kilometers", # accepts Kilometers, Miles
# include_leg_geometry: false,
# key: "ApiKey",
+ # optimize_for: "FastestRoute", # accepts FastestRoute, ShortestRoute
# travel_mode: "Car", # accepts Car, Truck, Walking, Bicycle, Motorcycle
# truck_mode_options: {
# avoid_ferries: false,
# avoid_tolls: false,
# dimensions: {
@@ -3064,10 +3073,11 @@
# resp.place.municipality #=> String
# resp.place.neighborhood #=> String
# resp.place.postal_code #=> String
# resp.place.region #=> String
# resp.place.street #=> String
+ # resp.place.sub_municipality #=> String
# resp.place.sub_region #=> String
# resp.place.supplemental_categories #=> Array
# resp.place.supplemental_categories[0] #=> String
# resp.place.time_zone.name #=> String
# resp.place.time_zone.offset #=> Integer
@@ -3084,11 +3094,11 @@
end
# A batch request to retrieve all device positions.
#
# @option params [Types::TrackingFilterGeometry] :filter_geometry
- # The geomerty used to filter device positions.
+ # The geometry used to filter device positions.
#
# @option params [Integer] :max_results
# An optional limit for the number of entries returned in a single call.
#
# Default value: `100`
@@ -3743,10 +3753,11 @@
# resp.results[0].place.municipality #=> String
# resp.results[0].place.neighborhood #=> String
# resp.results[0].place.postal_code #=> String
# resp.results[0].place.region #=> String
# resp.results[0].place.street #=> String
+ # resp.results[0].place.sub_municipality #=> String
# resp.results[0].place.sub_region #=> String
# resp.results[0].place.supplemental_categories #=> Array
# resp.results[0].place.supplemental_categories[0] #=> String
# resp.results[0].place.time_zone.name #=> String
# resp.results[0].place.time_zone.offset #=> Integer
@@ -4093,10 +4104,11 @@
# resp.results[0].place.municipality #=> String
# resp.results[0].place.neighborhood #=> String
# resp.results[0].place.postal_code #=> String
# resp.results[0].place.region #=> String
# resp.results[0].place.street #=> String
+ # resp.results[0].place.sub_municipality #=> String
# resp.results[0].place.sub_region #=> String
# resp.results[0].place.supplemental_categories #=> Array
# resp.results[0].place.supplemental_categories[0] #=> String
# resp.results[0].place.time_zone.name #=> String
# resp.results[0].place.time_zone.offset #=> Integer
@@ -4588,10 +4600,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-locationservice'
- context[:gem_version] = '1.42.0'
+ context[:gem_version] = '1.43.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated