aws-sdk-locationservice 1.41.0 → 1.43.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcdd1e94874251d822eb6051a35cd999ad50b91ba54dbab0f6607b51c8a3f326
4
- data.tar.gz: 6c5b03537b41260ac54a8f4a4c6bcc2e8217f1f291072860a076b8de853e5d50
3
+ metadata.gz: 2c9148cd30da04794444674a5191403c06f5d33ec019a67cc7d676dc2718df47
4
+ data.tar.gz: d5742794621f3d515ef85d57c35dd8f5ec8656c1178085d01a48593be34aa6b1
5
5
  SHA512:
6
- metadata.gz: 713322d418a4aa888f70af0ad9182ea7fe992f86c2e08f376fb80248da9fb37ca0250adcbedd95479eb1bf24192e89475045f0b9c632fcc5dc0ad78b218ba19c
7
- data.tar.gz: 04c10b1ecbc53404c357f2e3cf0becae5bc80040e8e503e4a05ca2ee4249f044c53dcb2f4cd2922fe95c7c4fe535a702f9929462de83bcd2df5458fe70747ccd
6
+ metadata.gz: 5b452b4c2828bf5aff2a7461129c8039f54683decd790c5469b2484b9461def941aa225dd530215ca40a4bbce3ee4010c6575e94b598ff2cb8c094d6a43f281c
7
+ data.tar.gz: 9b4d7d1e873eb08abdbc3110995525effe90f6f59af23f80e2ce701228d3e9898046578f7d91c44a1d9d5b4c4182789e26a827cc8bee2c1cb7f9228246a50fde
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.43.0 (2023-12-12)
5
+ ------------------
6
+
7
+ * Feature - This release 1) adds sub-municipality field in Places API for searching and getting places information, and 2) allows optimizing route calculation based on expected arrival time.
8
+
9
+ 1.42.0 (2023-11-28)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.41.0 (2023-11-22)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.41.0
1
+ 1.43.0
@@ -812,6 +812,15 @@ module Aws::LocationService
812
812
  # [3]: https://docs.aws.amazon.com/location/latest/developerguide/departure-time.html
813
813
  # [4]: https://docs.aws.amazon.com/location/latest/developerguide/travel-mode.html
814
814
  #
815
+ # @option params [Time,DateTime,Date,Integer,String] :arrival_time
816
+ # Specifies the desired time of arrival. Uses the given time to
817
+ # calculate the route. Otherwise, the best time of day to travel with
818
+ # the best traffic conditions is used to calculate the route.
819
+ #
820
+ # <note markdown="1"> ArrivalTime is not supported Esri.
821
+ #
822
+ # </note>
823
+ #
815
824
  # @option params [required, String] :calculator_name
816
825
  # The name of the route calculator resource that you want to use to
817
826
  # calculate the route.
@@ -858,11 +867,6 @@ module Aws::LocationService
858
867
  # calculate the route. Otherwise, the best time of day to travel with
859
868
  # the best traffic conditions is used to calculate the route.
860
869
  #
861
- # <note markdown="1"> Setting a departure time in the past returns a `400
862
- # ValidationException` error.
863
- #
864
- # </note>
865
- #
866
870
  # * In [ISO 8601][1] format: `YYYY-MM-DDThh:mm:ss.sssZ`. For example,
867
871
  # `2020–07-2T12:15:20.000Z+01:00`
868
872
  #
@@ -912,6 +916,9 @@ module Aws::LocationService
912
916
  #
913
917
  # [1]: https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html
914
918
  #
919
+ # @option params [String] :optimize_for
920
+ # Specifies the distance to optimize for when calculating a route.
921
+ #
915
922
  # @option params [String] :travel_mode
916
923
  # Specifies the mode of transport when calculating a route. Used in
917
924
  # estimating the speed of travel and road compatibility. You can choose
@@ -986,6 +993,7 @@ module Aws::LocationService
986
993
  # @example Request syntax with placeholder values
987
994
  #
988
995
  # resp = client.calculate_route({
996
+ # arrival_time: Time.now,
989
997
  # calculator_name: "ResourceName", # required
990
998
  # car_mode_options: {
991
999
  # avoid_ferries: false,
@@ -998,6 +1006,7 @@ module Aws::LocationService
998
1006
  # distance_unit: "Kilometers", # accepts Kilometers, Miles
999
1007
  # include_leg_geometry: false,
1000
1008
  # key: "ApiKey",
1009
+ # optimize_for: "FastestRoute", # accepts FastestRoute, ShortestRoute
1001
1010
  # travel_mode: "Car", # accepts Car, Truck, Walking, Bicycle, Motorcycle
1002
1011
  # truck_mode_options: {
1003
1012
  # avoid_ferries: false,
@@ -3066,6 +3075,7 @@ module Aws::LocationService
3066
3075
  # resp.place.postal_code #=> String
3067
3076
  # resp.place.region #=> String
3068
3077
  # resp.place.street #=> String
3078
+ # resp.place.sub_municipality #=> String
3069
3079
  # resp.place.sub_region #=> String
3070
3080
  # resp.place.supplemental_categories #=> Array
3071
3081
  # resp.place.supplemental_categories[0] #=> String
@@ -3086,7 +3096,7 @@ module Aws::LocationService
3086
3096
  # A batch request to retrieve all device positions.
3087
3097
  #
3088
3098
  # @option params [Types::TrackingFilterGeometry] :filter_geometry
3089
- # The geomerty used to filter device positions.
3099
+ # The geometry used to filter device positions.
3090
3100
  #
3091
3101
  # @option params [Integer] :max_results
3092
3102
  # An optional limit for the number of entries returned in a single call.
@@ -3745,6 +3755,7 @@ module Aws::LocationService
3745
3755
  # resp.results[0].place.postal_code #=> String
3746
3756
  # resp.results[0].place.region #=> String
3747
3757
  # resp.results[0].place.street #=> String
3758
+ # resp.results[0].place.sub_municipality #=> String
3748
3759
  # resp.results[0].place.sub_region #=> String
3749
3760
  # resp.results[0].place.supplemental_categories #=> Array
3750
3761
  # resp.results[0].place.supplemental_categories[0] #=> String
@@ -4095,6 +4106,7 @@ module Aws::LocationService
4095
4106
  # resp.results[0].place.postal_code #=> String
4096
4107
  # resp.results[0].place.region #=> String
4097
4108
  # resp.results[0].place.street #=> String
4109
+ # resp.results[0].place.sub_municipality #=> String
4098
4110
  # resp.results[0].place.sub_region #=> String
4099
4111
  # resp.results[0].place.supplemental_categories #=> Array
4100
4112
  # resp.results[0].place.supplemental_categories[0] #=> String
@@ -4590,7 +4602,7 @@ module Aws::LocationService
4590
4602
  params: params,
4591
4603
  config: config)
4592
4604
  context[:gem_name] = 'aws-sdk-locationservice'
4593
- context[:gem_version] = '1.41.0'
4605
+ context[:gem_version] = '1.43.0'
4594
4606
  Seahorse::Client::Request.new(handlers, context)
4595
4607
  end
4596
4608
 
@@ -220,6 +220,7 @@ module Aws::LocationService
220
220
  MapConfiguration = Shapes::StructureShape.new(name: 'MapConfiguration')
221
221
  MapConfigurationUpdate = Shapes::StructureShape.new(name: 'MapConfigurationUpdate')
222
222
  MapStyle = Shapes::StringShape.new(name: 'MapStyle')
223
+ OptimizationMode = Shapes::StringShape.new(name: 'OptimizationMode')
223
224
  Place = Shapes::StructureShape.new(name: 'Place')
224
225
  PlaceCategory = Shapes::StringShape.new(name: 'PlaceCategory')
225
226
  PlaceCategoryList = Shapes::ListShape.new(name: 'PlaceCategoryList')
@@ -490,6 +491,7 @@ module Aws::LocationService
490
491
  CalculateRouteMatrixSummary.add_member(:route_count, Shapes::ShapeRef.new(shape: CalculateRouteMatrixSummaryRouteCountInteger, required: true, location_name: "RouteCount"))
491
492
  CalculateRouteMatrixSummary.struct_class = Types::CalculateRouteMatrixSummary
492
493
 
494
+ CalculateRouteRequest.add_member(:arrival_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ArrivalTime"))
493
495
  CalculateRouteRequest.add_member(:calculator_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "CalculatorName"))
494
496
  CalculateRouteRequest.add_member(:car_mode_options, Shapes::ShapeRef.new(shape: CalculateRouteCarModeOptions, location_name: "CarModeOptions"))
495
497
  CalculateRouteRequest.add_member(:depart_now, Shapes::ShapeRef.new(shape: Boolean, location_name: "DepartNow"))
@@ -499,6 +501,7 @@ module Aws::LocationService
499
501
  CalculateRouteRequest.add_member(:distance_unit, Shapes::ShapeRef.new(shape: DistanceUnit, location_name: "DistanceUnit"))
500
502
  CalculateRouteRequest.add_member(:include_leg_geometry, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeLegGeometry"))
501
503
  CalculateRouteRequest.add_member(:key, Shapes::ShapeRef.new(shape: ApiKey, location: "querystring", location_name: "key"))
504
+ CalculateRouteRequest.add_member(:optimize_for, Shapes::ShapeRef.new(shape: OptimizationMode, location_name: "OptimizeFor"))
502
505
  CalculateRouteRequest.add_member(:travel_mode, Shapes::ShapeRef.new(shape: TravelMode, location_name: "TravelMode"))
503
506
  CalculateRouteRequest.add_member(:truck_mode_options, Shapes::ShapeRef.new(shape: CalculateRouteTruckModeOptions, location_name: "TruckModeOptions"))
504
507
  CalculateRouteRequest.add_member(:waypoint_positions, Shapes::ShapeRef.new(shape: CalculateRouteRequestWaypointPositionsList, location_name: "WaypointPositions"))
@@ -1058,6 +1061,7 @@ module Aws::LocationService
1058
1061
  Place.add_member(:postal_code, Shapes::ShapeRef.new(shape: String, location_name: "PostalCode"))
1059
1062
  Place.add_member(:region, Shapes::ShapeRef.new(shape: String, location_name: "Region"))
1060
1063
  Place.add_member(:street, Shapes::ShapeRef.new(shape: String, location_name: "Street"))
1064
+ Place.add_member(:sub_municipality, Shapes::ShapeRef.new(shape: String, location_name: "SubMunicipality"))
1061
1065
  Place.add_member(:sub_region, Shapes::ShapeRef.new(shape: String, location_name: "SubRegion"))
1062
1066
  Place.add_member(:supplemental_categories, Shapes::ShapeRef.new(shape: PlaceSupplementalCategoryList, location_name: "SupplementalCategories"))
1063
1067
  Place.add_member(:time_zone, Shapes::ShapeRef.new(shape: TimeZone, location_name: "TimeZone"))
@@ -25,16 +25,17 @@ module Aws::LocationService
25
25
  # @api private
26
26
  class Handler < Seahorse::Client::Handler
27
27
  def call(context)
28
- # If endpoint was discovered, do not resolve or apply the endpoint.
29
28
  unless context[:discovered_endpoint]
30
29
  params = parameters_for_operation(context)
31
30
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
31
 
33
32
  context.http_request.endpoint = endpoint.url
34
33
  apply_endpoint_headers(context, endpoint.headers)
34
+
35
+ context[:endpoint_params] = params
36
+ context[:endpoint_properties] = endpoint.properties
35
37
  end
36
38
 
37
- context[:endpoint_params] = params
38
39
  context[:auth_scheme] =
39
40
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
41
 
@@ -888,6 +888,16 @@ module Aws::LocationService
888
888
  include Aws::Structure
889
889
  end
890
890
 
891
+ # @!attribute [rw] arrival_time
892
+ # Specifies the desired time of arrival. Uses the given time to
893
+ # calculate the route. Otherwise, the best time of day to travel with
894
+ # the best traffic conditions is used to calculate the route.
895
+ #
896
+ # <note markdown="1"> ArrivalTime is not supported Esri.
897
+ #
898
+ # </note>
899
+ # @return [Time]
900
+ #
891
901
  # @!attribute [rw] calculator_name
892
902
  # The name of the route calculator resource that you want to use to
893
903
  # calculate the route.
@@ -938,11 +948,6 @@ module Aws::LocationService
938
948
  # calculate the route. Otherwise, the best time of day to travel with
939
949
  # the best traffic conditions is used to calculate the route.
940
950
  #
941
- # <note markdown="1"> Setting a departure time in the past returns a `400
942
- # ValidationException` error.
943
- #
944
- # </note>
945
- #
946
951
  # * In [ISO 8601][1] format: `YYYY-MM-DDThh:mm:ss.sssZ`. For example,
947
952
  # `2020–07-2T12:15:20.000Z+01:00`
948
953
  #
@@ -997,6 +1002,10 @@ module Aws::LocationService
997
1002
  # [1]: https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html
998
1003
  # @return [String]
999
1004
  #
1005
+ # @!attribute [rw] optimize_for
1006
+ # Specifies the distance to optimize for when calculating a route.
1007
+ # @return [String]
1008
+ #
1000
1009
  # @!attribute [rw] travel_mode
1001
1010
  # Specifies the mode of transport when calculating a route. Used in
1002
1011
  # estimating the speed of travel and road compatibility. You can
@@ -1069,6 +1078,7 @@ module Aws::LocationService
1069
1078
  # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CalculateRouteRequest AWS API Documentation
1070
1079
  #
1071
1080
  class CalculateRouteRequest < Struct.new(
1081
+ :arrival_time,
1072
1082
  :calculator_name,
1073
1083
  :car_mode_options,
1074
1084
  :depart_now,
@@ -1078,6 +1088,7 @@ module Aws::LocationService
1078
1088
  :distance_unit,
1079
1089
  :include_leg_geometry,
1080
1090
  :key,
1091
+ :optimize_for,
1081
1092
  :travel_mode,
1082
1093
  :truck_mode_options,
1083
1094
  :waypoint_positions)
@@ -3656,7 +3667,7 @@ module Aws::LocationService
3656
3667
  end
3657
3668
 
3658
3669
  # @!attribute [rw] filter_geometry
3659
- # The geomerty used to filter device positions.
3670
+ # The geometry used to filter device positions.
3660
3671
  # @return [Types::TrackingFilterGeometry]
3661
3672
  #
3662
3673
  # @!attribute [rw] max_results
@@ -4802,6 +4813,16 @@ module Aws::LocationService
4802
4813
  # `Main Street`.
4803
4814
  # @return [String]
4804
4815
  #
4816
+ # @!attribute [rw] sub_municipality
4817
+ # An area that's part of a larger municipality. For example,
4818
+ # `Blissville ` is a submunicipality in the Queen County in New York.
4819
+ #
4820
+ # <note markdown="1"> This property supported by Esri and OpenData. The Esri property is
4821
+ # `district`, and the OpenData property is `borough`.
4822
+ #
4823
+ # </note>
4824
+ # @return [String]
4825
+ #
4805
4826
  # @!attribute [rw] sub_region
4806
4827
  # A county, or an area that's part of a larger region. For example,
4807
4828
  # `Metro Vancouver`.
@@ -4850,6 +4871,7 @@ module Aws::LocationService
4850
4871
  :postal_code,
4851
4872
  :region,
4852
4873
  :street,
4874
+ :sub_municipality,
4853
4875
  :sub_region,
4854
4876
  :supplemental_categories,
4855
4877
  :time_zone,
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-locationservice/customizations'
52
52
  # @!group service
53
53
  module Aws::LocationService
54
54
 
55
- GEM_VERSION = '1.41.0'
55
+ GEM_VERSION = '1.43.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-locationservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.41.0
4
+ version: 1.43.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-22 00:00:00.000000000 Z
11
+ date: 2023-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core