aws-sdk-locationservice 1.22.0 → 1.23.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: 536a6fab433e456f1b431dc9f88322fcc4dc8fb6b3c53804eaae0661bc37213c
4
- data.tar.gz: e81be64160f2ab6701e61780d600eec5ade74a382cd02e1c74dc16df2b2aaa68
3
+ metadata.gz: 5f9baf3628589cb756d9e91dc23595a6456e14efb5344d2f01415bbdf27f3096
4
+ data.tar.gz: 330e97f7b16b30e5fc8dc01f657f57810078b5c022e09b615d96066cc486024e
5
5
  SHA512:
6
- metadata.gz: 17dfd27baad6ab7255699b9d714ef49df0d9779cb87a1906ece5179a344cdcf7ff7e64d0e59e46ef6ebf4d113b6ab24f322597bd3998e1dae79b0be3ac1d189f
7
- data.tar.gz: 0cf84b09bd3d148bce57835eb2ea706112b1d24d10aec8c3daaa55d0ca21b6d3197233d93e7bcb44782d8cb9985aa34af7ece4cac5df56d4515024ea19fb0f8f
6
+ metadata.gz: d538941a32333bb81fa609e42d527cbd8de09ed150e523469300a4f82624c24557a7b909d361e4aebddfbb879ced104dfc673e0178f62bf73967e9bcaa50355b
7
+ data.tar.gz: 1a5d4301ba00d91853eaf2fb86bead0aa9a5a768e861f431532964c2052827ab9ee394fca146c53f822d26886d689d01320ded6fcd84e2d423c1571b9e20d480
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.23.0 (2022-08-09)
5
+ ------------------
6
+
7
+ * Feature - Amazon Location Service now allows circular geofences in BatchPutGeofence, PutGeofence, and GetGeofence APIs.
8
+
4
9
  1.22.0 (2022-05-06)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.22.0
1
+ 1.23.0
@@ -626,6 +626,10 @@ module Aws::LocationService
626
626
  # {
627
627
  # geofence_id: "Id", # required
628
628
  # geometry: { # required
629
+ # circle: {
630
+ # center: [1.0], # required
631
+ # radius: 1.0, # required
632
+ # },
629
633
  # polygon: [
630
634
  # [
631
635
  # [1.0],
@@ -755,6 +759,11 @@ module Aws::LocationService
755
759
  # specify additional route preferences in `CarModeOptions` if
756
760
  # traveling by `Car`, or `TruckModeOptions` if traveling by `Truck`.
757
761
  #
762
+ # <note markdown="1"> If you specify `walking` for the travel mode and your data provider
763
+ # is Esri, the start and destination must be within 40km.
764
+ #
765
+ # </note>
766
+ #
758
767
  #
759
768
  #
760
769
  # [1]: https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html
@@ -857,7 +866,8 @@ module Aws::LocationService
857
866
  #
858
867
  # @option params [String] :travel_mode
859
868
  # Specifies the mode of transport when calculating a route. Used in
860
- # estimating the speed of travel and road compatibility.
869
+ # estimating the speed of travel and road compatibility. You can choose
870
+ # `Car`, `Truck`, or `Walking` as options for the `TravelMode`.
861
871
  #
862
872
  # The `TravelMode` you specify also determines how you specify route
863
873
  # preferences:
@@ -2347,6 +2357,9 @@ module Aws::LocationService
2347
2357
  #
2348
2358
  # resp.create_time #=> Time
2349
2359
  # resp.geofence_id #=> String
2360
+ # resp.geometry.circle.center #=> Array
2361
+ # resp.geometry.circle.center[0] #=> Float
2362
+ # resp.geometry.circle.radius #=> Float
2350
2363
  # resp.geometry.polygon #=> Array
2351
2364
  # resp.geometry.polygon[0] #=> Array
2352
2365
  # resp.geometry.polygon[0][0] #=> Array
@@ -2389,7 +2402,7 @@ module Aws::LocationService
2389
2402
  #
2390
2403
  # Valid font stacks for [HERE Technologies][2] styles:
2391
2404
  #
2392
- # * VectorHereBerlin – `Fira GO Regular` \| `Fira GO Bold`
2405
+ # * VectorHereContrast – `Fira GO Regular` \| `Fira GO Bold`
2393
2406
  #
2394
2407
  # * VectorHereExplore, VectorHereExploreTruck – `Firo GO Italic` \|
2395
2408
  # `Fira GO Map` \| `Fira GO Map Bold` \| `Noto Sans CJK JP Bold` \|
@@ -2705,6 +2718,9 @@ module Aws::LocationService
2705
2718
  # resp.data.entries #=> Array
2706
2719
  # resp.data.entries[0].create_time #=> Time
2707
2720
  # resp.data.entries[0].geofence_id #=> String
2721
+ # resp.data.entries[0].geometry.circle.center #=> Array
2722
+ # resp.data.entries[0].geometry.circle.center[0] #=> Float
2723
+ # resp.data.entries[0].geometry.circle.radius #=> Float
2708
2724
  # resp.data.entries[0].geometry.polygon #=> Array
2709
2725
  # resp.data.entries[0].geometry.polygon[0] #=> Array
2710
2726
  # resp.data.entries[0].geometry.polygon[0][0] #=> Array
@@ -3009,9 +3025,11 @@ module Aws::LocationService
3009
3025
  # An identifier for the geofence. For example, `ExampleGeofence-1`.
3010
3026
  #
3011
3027
  # @option params [required, Types::GeofenceGeometry] :geometry
3012
- # Contains the polygon details to specify the position of the geofence.
3028
+ # Contains the details to specify the position of the geofence. Can be
3029
+ # either a polygon or a circle. Including both will return a validation
3030
+ # error.
3013
3031
  #
3014
- # <note markdown="1"> Each [geofence polygon][1] can have a maximum of 1,000 vertices.
3032
+ # <note markdown="1"> Each [ geofence polygon][1] can have a maximum of 1,000 vertices.
3015
3033
  #
3016
3034
  # </note>
3017
3035
  #
@@ -3031,6 +3049,10 @@ module Aws::LocationService
3031
3049
  # collection_name: "ResourceName", # required
3032
3050
  # geofence_id: "Id", # required
3033
3051
  # geometry: { # required
3052
+ # circle: {
3053
+ # center: [1.0], # required
3054
+ # radius: 1.0, # required
3055
+ # },
3034
3056
  # polygon: [
3035
3057
  # [
3036
3058
  # [1.0],
@@ -3799,7 +3821,7 @@ module Aws::LocationService
3799
3821
  params: params,
3800
3822
  config: config)
3801
3823
  context[:gem_name] = 'aws-sdk-locationservice'
3802
- context[:gem_version] = '1.22.0'
3824
+ context[:gem_version] = '1.23.0'
3803
3825
  Seahorse::Client::Request.new(handlers, context)
3804
3826
  end
3805
3827
 
@@ -74,6 +74,7 @@ module Aws::LocationService
74
74
  CalculateRouteSummaryDistanceDouble = Shapes::FloatShape.new(name: 'CalculateRouteSummaryDistanceDouble')
75
75
  CalculateRouteSummaryDurationSecondsDouble = Shapes::FloatShape.new(name: 'CalculateRouteSummaryDurationSecondsDouble')
76
76
  CalculateRouteTruckModeOptions = Shapes::StructureShape.new(name: 'CalculateRouteTruckModeOptions')
77
+ Circle = Shapes::StructureShape.new(name: 'Circle')
77
78
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
78
79
  CountryCode = Shapes::StringShape.new(name: 'CountryCode')
79
80
  CountryCodeList = Shapes::ListShape.new(name: 'CountryCodeList')
@@ -469,6 +470,10 @@ module Aws::LocationService
469
470
  CalculateRouteTruckModeOptions.add_member(:weight, Shapes::ShapeRef.new(shape: TruckWeight, location_name: "Weight"))
470
471
  CalculateRouteTruckModeOptions.struct_class = Types::CalculateRouteTruckModeOptions
471
472
 
473
+ Circle.add_member(:center, Shapes::ShapeRef.new(shape: Position, required: true, location_name: "Center"))
474
+ Circle.add_member(:radius, Shapes::ShapeRef.new(shape: Double, required: true, location_name: "Radius"))
475
+ Circle.struct_class = Types::Circle
476
+
472
477
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
473
478
  ConflictException.struct_class = Types::ConflictException
474
479
 
@@ -659,6 +664,7 @@ module Aws::LocationService
659
664
 
660
665
  DisassociateTrackerConsumerResponse.struct_class = Types::DisassociateTrackerConsumerResponse
661
666
 
667
+ GeofenceGeometry.add_member(:circle, Shapes::ShapeRef.new(shape: Circle, location_name: "Circle"))
662
668
  GeofenceGeometry.add_member(:polygon, Shapes::ShapeRef.new(shape: LinearRings, location_name: "Polygon"))
663
669
  GeofenceGeometry.struct_class = Types::GeofenceGeometry
664
670
 
@@ -380,6 +380,10 @@ module Aws::LocationService
380
380
  # {
381
381
  # geofence_id: "Id", # required
382
382
  # geometry: { # required
383
+ # circle: {
384
+ # center: [1.0], # required
385
+ # radius: 1.0, # required
386
+ # },
383
387
  # polygon: [
384
388
  # [
385
389
  # [1.0],
@@ -415,6 +419,10 @@ module Aws::LocationService
415
419
  # {
416
420
  # geofence_id: "Id", # required
417
421
  # geometry: { # required
422
+ # circle: {
423
+ # center: [1.0], # required
424
+ # radius: 1.0, # required
425
+ # },
418
426
  # polygon: [
419
427
  # [
420
428
  # [1.0],
@@ -429,10 +437,11 @@ module Aws::LocationService
429
437
  # @return [String]
430
438
  #
431
439
  # @!attribute [rw] geometry
432
- # Contains the polygon details to specify the position of the
433
- # geofence.
440
+ # Contains the details of the position of the geofence. Can be either
441
+ # a polygon or a circle. Including both will return a validation
442
+ # error.
434
443
  #
435
- # <note markdown="1"> Each [geofence polygon][1] can have a maximum of 1,000 vertices.
444
+ # <note markdown="1"> Each [ geofence polygon][1] can have a maximum of 1,000 vertices.
436
445
  #
437
446
  # </note>
438
447
  #
@@ -1019,7 +1028,8 @@ module Aws::LocationService
1019
1028
  #
1020
1029
  # @!attribute [rw] travel_mode
1021
1030
  # Specifies the mode of transport when calculating a route. Used in
1022
- # estimating the speed of travel and road compatibility.
1031
+ # estimating the speed of travel and road compatibility. You can
1032
+ # choose `Car`, `Truck`, or `Walking` as options for the `TravelMode`.
1023
1033
  #
1024
1034
  # The `TravelMode` you specify also determines how you specify route
1025
1035
  # preferences:
@@ -1266,6 +1276,39 @@ module Aws::LocationService
1266
1276
  include Aws::Structure
1267
1277
  end
1268
1278
 
1279
+ # A circle on the earth, as defined by a center point and a radius.
1280
+ #
1281
+ # @note When making an API call, you may pass Circle
1282
+ # data as a hash:
1283
+ #
1284
+ # {
1285
+ # center: [1.0], # required
1286
+ # radius: 1.0, # required
1287
+ # }
1288
+ #
1289
+ # @!attribute [rw] center
1290
+ # A single point geometry, specifying the center of the circle, using
1291
+ # [WGS 84][1] coordinates, in the form `[longitude, latitude]`.
1292
+ #
1293
+ #
1294
+ #
1295
+ # [1]: https://gisgeography.com/wgs84-world-geodetic-system/
1296
+ # @return [Array<Float>]
1297
+ #
1298
+ # @!attribute [rw] radius
1299
+ # The radius of the circle in meters. Must be greater than zero and no
1300
+ # larger than 100,000 (100 kilometers).
1301
+ # @return [Float]
1302
+ #
1303
+ # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/Circle AWS API Documentation
1304
+ #
1305
+ class Circle < Struct.new(
1306
+ :center,
1307
+ :radius)
1308
+ SENSITIVE = [:center]
1309
+ include Aws::Structure
1310
+ end
1311
+
1269
1312
  # The request was unsuccessful because of a conflict.
1270
1313
  #
1271
1314
  # @!attribute [rw] message
@@ -2745,6 +2788,10 @@ module Aws::LocationService
2745
2788
 
2746
2789
  # Contains the geofence geometry details.
2747
2790
  #
2791
+ # A geofence geometry is made up of either a polygon or a circle. Can be
2792
+ # either a polygon or a circle. Including both will return a validation
2793
+ # error.
2794
+ #
2748
2795
  # <note markdown="1"> Amazon Location doesn't currently support polygons with holes,
2749
2796
  # multipolygons, polygons that are wound clockwise, or that cross the
2750
2797
  # antimeridian.
@@ -2755,6 +2802,10 @@ module Aws::LocationService
2755
2802
  # data as a hash:
2756
2803
  #
2757
2804
  # {
2805
+ # circle: {
2806
+ # center: [1.0], # required
2807
+ # radius: 1.0, # required
2808
+ # },
2758
2809
  # polygon: [
2759
2810
  # [
2760
2811
  # [1.0],
@@ -2762,6 +2813,10 @@ module Aws::LocationService
2762
2813
  # ],
2763
2814
  # }
2764
2815
  #
2816
+ # @!attribute [rw] circle
2817
+ # A circle on the earth, as defined by a center point and a radius.
2818
+ # @return [Types::Circle]
2819
+ #
2765
2820
  # @!attribute [rw] polygon
2766
2821
  # An array of 1 or more linear rings. A linear ring is an array of 4
2767
2822
  # or more vertices, where the first and last vertex are the same to
@@ -2775,13 +2830,16 @@ module Aws::LocationService
2775
2830
  # side is the polygon's exterior. Inner rings must list their
2776
2831
  # vertices in clockwise order, where the left side is the polygon's
2777
2832
  # interior.
2833
+ #
2834
+ # A geofence polygon can consist of between 4 and 1,000 vertices.
2778
2835
  # @return [Array<Array<Array<Float>>>]
2779
2836
  #
2780
2837
  # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GeofenceGeometry AWS API Documentation
2781
2838
  #
2782
2839
  class GeofenceGeometry < Struct.new(
2840
+ :circle,
2783
2841
  :polygon)
2784
- SENSITIVE = []
2842
+ SENSITIVE = [:circle]
2785
2843
  include Aws::Structure
2786
2844
  end
2787
2845
 
@@ -2998,7 +3056,8 @@ module Aws::LocationService
2998
3056
  # @return [String]
2999
3057
  #
3000
3058
  # @!attribute [rw] geometry
3001
- # Contains the geofence geometry details describing a polygon.
3059
+ # Contains the geofence geometry details describing a polygon or a
3060
+ # circle.
3002
3061
  # @return [Types::GeofenceGeometry]
3003
3062
  #
3004
3063
  # @!attribute [rw] status
@@ -3070,7 +3129,7 @@ module Aws::LocationService
3070
3129
  #
3071
3130
  # Valid font stacks for [HERE Technologies][2] styles:
3072
3131
  #
3073
- # * VectorHereBerlin – `Fira GO Regular` \| `Fira GO Bold`
3132
+ # * VectorHereContrast – `Fira GO Regular` \| `Fira GO Bold`
3074
3133
  #
3075
3134
  # * VectorHereExplore, VectorHereExploreTruck – `Firo GO Italic` \|
3076
3135
  # `Fira GO Map` \| `Fira GO Map Bold` \| `Noto Sans CJK JP Bold` \|
@@ -3614,7 +3673,8 @@ module Aws::LocationService
3614
3673
  # @return [String]
3615
3674
  #
3616
3675
  # @!attribute [rw] geometry
3617
- # Contains the geofence geometry details describing a polygon.
3676
+ # Contains the geofence geometry details describing a polygon or a
3677
+ # circle.
3618
3678
  # @return [Types::GeofenceGeometry]
3619
3679
  #
3620
3680
  # @!attribute [rw] status
@@ -4288,8 +4348,9 @@ module Aws::LocationService
4288
4348
  #
4289
4349
  # Valid [HERE Technologies map styles][2]\:
4290
4350
  #
4291
- # * `VectorHereBerlin` – The HERE Berlin map style is a high contrast
4292
- # detailed base map of the world that blends 3D and 2D rendering.
4351
+ # * `VectorHereContrast` – The HERE Contrast (Berlin) map style is a
4352
+ # high contrast detailed base map of the world that blends 3D and 2D
4353
+ # rendering.
4293
4354
  #
4294
4355
  # * `VectorHereExplore` – A default HERE map style containing a
4295
4356
  # neutral, global map and its features including roads, buildings,
@@ -4301,6 +4362,12 @@ module Aws::LocationService
4301
4362
  # symbolized with highlighted segments and icons on top of HERE
4302
4363
  # Explore to support use cases within transport and logistics.
4303
4364
  #
4365
+ # <note markdown="1"> The `VectorHereContrast` style has been renamed from
4366
+ # `VectorHereBerlin`. `VectorHereBerlin` has been deprecated, but will
4367
+ # continue to work in applications that use it.
4368
+ #
4369
+ # </note>
4370
+ #
4304
4371
  #
4305
4372
  #
4306
4373
  # [1]: https://docs.aws.amazon.com/location/latest/developerguide/esri.html
@@ -4461,6 +4528,10 @@ module Aws::LocationService
4461
4528
  # collection_name: "ResourceName", # required
4462
4529
  # geofence_id: "Id", # required
4463
4530
  # geometry: { # required
4531
+ # circle: {
4532
+ # center: [1.0], # required
4533
+ # radius: 1.0, # required
4534
+ # },
4464
4535
  # polygon: [
4465
4536
  # [
4466
4537
  # [1.0],
@@ -4478,10 +4549,11 @@ module Aws::LocationService
4478
4549
  # @return [String]
4479
4550
  #
4480
4551
  # @!attribute [rw] geometry
4481
- # Contains the polygon details to specify the position of the
4482
- # geofence.
4552
+ # Contains the details to specify the position of the geofence. Can be
4553
+ # either a polygon or a circle. Including both will return a
4554
+ # validation error.
4483
4555
  #
4484
- # <note markdown="1"> Each [geofence polygon][1] can have a maximum of 1,000 vertices.
4556
+ # <note markdown="1"> Each [ geofence polygon][1] can have a maximum of 1,000 vertices.
4485
4557
  #
4486
4558
  # </note>
4487
4559
  #
@@ -5466,6 +5538,11 @@ module Aws::LocationService
5466
5538
  # * For example, `4.5`.
5467
5539
  #
5468
5540
  # ^
5541
+ #
5542
+ # <note markdown="1"> For routes calculated with a HERE resource, this value must be
5543
+ # between 0 and 50 meters.
5544
+ #
5545
+ # </note>
5469
5546
  # @return [Float]
5470
5547
  #
5471
5548
  # @!attribute [rw] length
@@ -5474,6 +5551,11 @@ module Aws::LocationService
5474
5551
  # * For example, `15.5`.
5475
5552
  #
5476
5553
  # ^
5554
+ #
5555
+ # <note markdown="1"> For routes calculated with a HERE resource, this value must be
5556
+ # between 0 and 300 meters.
5557
+ #
5558
+ # </note>
5477
5559
  # @return [Float]
5478
5560
  #
5479
5561
  # @!attribute [rw] unit
@@ -5488,6 +5570,11 @@ module Aws::LocationService
5488
5570
  # * For example, `4.5`.
5489
5571
  #
5490
5572
  # ^
5573
+ #
5574
+ # <note markdown="1"> For routes calculated with a HERE resource, this value must be
5575
+ # between 0 and 50 meters.
5576
+ #
5577
+ # </note>
5491
5578
  # @return [Float]
5492
5579
  #
5493
5580
  # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/TruckDimensions AWS API Documentation
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-locationservice/customizations'
48
48
  # @!group service
49
49
  module Aws::LocationService
50
50
 
51
- GEM_VERSION = '1.22.0'
51
+ GEM_VERSION = '1.23.0'
52
52
 
53
53
  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.22.0
4
+ version: 1.23.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: 2022-05-06 00:00:00.000000000 Z
11
+ date: 2022-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core