Skip to content

Commit 42b7017

Browse files
feat(aws-android-sdk-location): update models to latest (#2658)
Co-authored-by: Rafael Juliano <[email protected]>
1 parent d4116c1 commit 42b7017

24 files changed

+1474
-415
lines changed

aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/AmazonLocation.java

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,22 @@ BatchPutGeofenceResult batchPutGeofence(BatchPutGeofenceRequest batchPutGeofence
293293
/**
294294
* <p>
295295
* Uploads position update data for one or more devices to a tracker
296-
* resource. Amazon Location uses the data when reporting the last known
297-
* device position and position history.
296+
* resource. Amazon Location uses the data when it reports the last known
297+
* device position and position history. Amazon Location retains location
298+
* data for 30 days.
298299
* </p>
299300
* <note>
300301
* <p>
301-
* Only one position update is stored per sample time. Location data is
302-
* sampled at a fixed rate of one position per 30-second interval and
303-
* retained for 30 days before it's deleted.
302+
* Position updates are handled based on the <code>PositionFiltering</code>
303+
* property of the tracker. When <code>PositionFiltering</code> is set to
304+
* <code>TimeBased</code>, updates are evaluated against linked geofence
305+
* collections, and location data is stored at a maximum of one position per
306+
* 30 second interval. If your update frequency is more often than every 30
307+
* seconds, only one update per 30 seconds is stored for each unique device
308+
* ID. When <code>PositionFiltering</code> is set to
309+
* <code>DistanceBased</code> filtering, location data is stored and
310+
* evaluated against linked geofence collections only if the device has
311+
* moved more than 30 m (98.4 ft).
304312
* </p>
305313
* </note>
306314
*

aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/AmazonLocationClient.java

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -719,14 +719,22 @@ public BatchPutGeofenceResult batchPutGeofence(BatchPutGeofenceRequest batchPutG
719719
/**
720720
* <p>
721721
* Uploads position update data for one or more devices to a tracker
722-
* resource. Amazon Location uses the data when reporting the last known
723-
* device position and position history.
722+
* resource. Amazon Location uses the data when it reports the last known
723+
* device position and position history. Amazon Location retains location
724+
* data for 30 days.
724725
* </p>
725726
* <note>
726727
* <p>
727-
* Only one position update is stored per sample time. Location data is
728-
* sampled at a fixed rate of one position per 30-second interval and
729-
* retained for 30 days before it's deleted.
728+
* Position updates are handled based on the <code>PositionFiltering</code>
729+
* property of the tracker. When <code>PositionFiltering</code> is set to
730+
* <code>TimeBased</code>, updates are evaluated against linked geofence
731+
* collections, and location data is stored at a maximum of one position per
732+
* 30 second interval. If your update frequency is more often than every 30
733+
* seconds, only one update per 30 seconds is stored for each unique device
734+
* ID. When <code>PositionFiltering</code> is set to
735+
* <code>DistanceBased</code> filtering, location data is stored and
736+
* evaluated against linked geofence collections only if the device has
737+
* moved more than 30 m (98.4 ft).
730738
* </p>
731739
* </note>
732740
*

aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/BatchUpdateDevicePositionRequest.java

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,20 @@
2222
/**
2323
* <p>
2424
* Uploads position update data for one or more devices to a tracker resource.
25-
* Amazon Location uses the data when reporting the last known device position
26-
* and position history.
25+
* Amazon Location uses the data when it reports the last known device position
26+
* and position history. Amazon Location retains location data for 30 days.
2727
* </p>
2828
* <note>
2929
* <p>
30-
* Only one position update is stored per sample time. Location data is sampled
31-
* at a fixed rate of one position per 30-second interval and retained for 30
32-
* days before it's deleted.
30+
* Position updates are handled based on the <code>PositionFiltering</code>
31+
* property of the tracker. When <code>PositionFiltering</code> is set to
32+
* <code>TimeBased</code>, updates are evaluated against linked geofence
33+
* collections, and location data is stored at a maximum of one position per 30
34+
* second interval. If your update frequency is more often than every 30
35+
* seconds, only one update per 30 seconds is stored for each unique device ID.
36+
* When <code>PositionFiltering</code> is set to <code>DistanceBased</code>
37+
* filtering, location data is stored and evaluated against linked geofence
38+
* collections only if the device has moved more than 30 m (98.4 ft).
3339
* </p>
3440
* </note>
3541
*/

aws-android-sdk-location/src/main/java/com/amazonaws/services/geo/model/CalculateRouteRequest.java

Lines changed: 76 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ public class CalculateRouteRequest extends AmazonWebServiceRequest implements Se
125125
* If you specify a departure that's not located on a road, Amazon Location
126126
* <a href=
127127
* "https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html#snap-to-nearby-road"
128-
* >moves the position to the nearest road</a>.
128+
* >moves the position to the nearest road</a>. If Esri is the provider for
129+
* your route calculator, specifying a route that is longer than 400 km
130+
* returns a <code>400 RoutesValidationException</code> error.
129131
* </p>
130132
* </note>
131133
* <p>
@@ -283,6 +285,11 @@ public class CalculateRouteRequest extends AmazonWebServiceRequest implements Se
283285
* Specifying more than 23 waypoints returns a
284286
* <code>400 ValidationException</code> error.
285287
* </p>
288+
* <p>
289+
* If Esri is the provider for your route calculator, specifying a route
290+
* that is longer than 400 km returns a
291+
* <code>400 RoutesValidationException</code> error.
292+
* </p>
286293
* </note>
287294
* <p>
288295
* Valid Values: <code>[-180 to 180,-90 to 90]</code>
@@ -572,7 +579,9 @@ public CalculateRouteRequest withDepartNow(Boolean departNow) {
572579
* If you specify a departure that's not located on a road, Amazon Location
573580
* <a href=
574581
* "https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html#snap-to-nearby-road"
575-
* >moves the position to the nearest road</a>.
582+
* >moves the position to the nearest road</a>. If Esri is the provider for
583+
* your route calculator, specifying a route that is longer than 400 km
584+
* returns a <code>400 RoutesValidationException</code> error.
576585
* </p>
577586
* </note>
578587
* <p>
@@ -596,7 +605,10 @@ public CalculateRouteRequest withDepartNow(Boolean departNow) {
596605
* If you specify a departure that's not located on a road, Amazon
597606
* Location <a href=
598607
* "https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html#snap-to-nearby-road"
599-
* >moves the position to the nearest road</a>.
608+
* >moves the position to the nearest road</a>. If Esri is the
609+
* provider for your route calculator, specifying a route that is
610+
* longer than 400 km returns a
611+
* <code>400 RoutesValidationException</code> error.
600612
* </p>
601613
* </note>
602614
* <p>
@@ -625,7 +637,9 @@ public java.util.List<Double> getDeparturePosition() {
625637
* If you specify a departure that's not located on a road, Amazon Location
626638
* <a href=
627639
* "https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html#snap-to-nearby-road"
628-
* >moves the position to the nearest road</a>.
640+
* >moves the position to the nearest road</a>. If Esri is the provider for
641+
* your route calculator, specifying a route that is longer than 400 km
642+
* returns a <code>400 RoutesValidationException</code> error.
629643
* </p>
630644
* </note>
631645
* <p>
@@ -649,7 +663,10 @@ public java.util.List<Double> getDeparturePosition() {
649663
* If you specify a departure that's not located on a road,
650664
* Amazon Location <a href=
651665
* "https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html#snap-to-nearby-road"
652-
* >moves the position to the nearest road</a>.
666+
* >moves the position to the nearest road</a>. If Esri is the
667+
* provider for your route calculator, specifying a route that is
668+
* longer than 400 km returns a
669+
* <code>400 RoutesValidationException</code> error.
653670
* </p>
654671
* </note>
655672
* <p>
@@ -683,7 +700,9 @@ public void setDeparturePosition(java.util.Collection<Double> departurePosition)
683700
* If you specify a departure that's not located on a road, Amazon Location
684701
* <a href=
685702
* "https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html#snap-to-nearby-road"
686-
* >moves the position to the nearest road</a>.
703+
* >moves the position to the nearest road</a>. If Esri is the provider for
704+
* your route calculator, specifying a route that is longer than 400 km
705+
* returns a <code>400 RoutesValidationException</code> error.
687706
* </p>
688707
* </note>
689708
* <p>
@@ -710,7 +729,10 @@ public void setDeparturePosition(java.util.Collection<Double> departurePosition)
710729
* If you specify a departure that's not located on a road,
711730
* Amazon Location <a href=
712731
* "https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html#snap-to-nearby-road"
713-
* >moves the position to the nearest road</a>.
732+
* >moves the position to the nearest road</a>. If Esri is the
733+
* provider for your route calculator, specifying a route that is
734+
* longer than 400 km returns a
735+
* <code>400 RoutesValidationException</code> error.
714736
* </p>
715737
* </note>
716738
* <p>
@@ -747,7 +769,9 @@ public CalculateRouteRequest withDeparturePosition(Double... departurePosition)
747769
* If you specify a departure that's not located on a road, Amazon Location
748770
* <a href=
749771
* "https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html#snap-to-nearby-road"
750-
* >moves the position to the nearest road</a>.
772+
* >moves the position to the nearest road</a>. If Esri is the provider for
773+
* your route calculator, specifying a route that is longer than 400 km
774+
* returns a <code>400 RoutesValidationException</code> error.
751775
* </p>
752776
* </note>
753777
* <p>
@@ -774,7 +798,10 @@ public CalculateRouteRequest withDeparturePosition(Double... departurePosition)
774798
* If you specify a departure that's not located on a road,
775799
* Amazon Location <a href=
776800
* "https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html#snap-to-nearby-road"
777-
* >moves the position to the nearest road</a>.
801+
* >moves the position to the nearest road</a>. If Esri is the
802+
* provider for your route calculator, specifying a route that is
803+
* longer than 400 km returns a
804+
* <code>400 RoutesValidationException</code> error.
778805
* </p>
779806
* </note>
780807
* <p>
@@ -1844,6 +1871,11 @@ public CalculateRouteRequest withTruckModeOptions(
18441871
* Specifying more than 23 waypoints returns a
18451872
* <code>400 ValidationException</code> error.
18461873
* </p>
1874+
* <p>
1875+
* If Esri is the provider for your route calculator, specifying a route
1876+
* that is longer than 400 km returns a
1877+
* <code>400 RoutesValidationException</code> error.
1878+
* </p>
18471879
* </note>
18481880
* <p>
18491881
* Valid Values: <code>[-180 to 180,-90 to 90]</code>
@@ -1875,6 +1907,11 @@ public CalculateRouteRequest withTruckModeOptions(
18751907
* Specifying more than 23 waypoints returns a
18761908
* <code>400 ValidationException</code> error.
18771909
* </p>
1910+
* <p>
1911+
* If Esri is the provider for your route calculator, specifying a
1912+
* route that is longer than 400 km returns a
1913+
* <code>400 RoutesValidationException</code> error.
1914+
* </p>
18781915
* </note>
18791916
* <p>
18801917
* Valid Values: <code>[-180 to 180,-90 to 90]</code>
@@ -1910,6 +1947,11 @@ public java.util.List<java.util.List<Double>> getWaypointPositions() {
19101947
* Specifying more than 23 waypoints returns a
19111948
* <code>400 ValidationException</code> error.
19121949
* </p>
1950+
* <p>
1951+
* If Esri is the provider for your route calculator, specifying a route
1952+
* that is longer than 400 km returns a
1953+
* <code>400 RoutesValidationException</code> error.
1954+
* </p>
19131955
* </note>
19141956
* <p>
19151957
* Valid Values: <code>[-180 to 180,-90 to 90]</code>
@@ -1941,6 +1983,11 @@ public java.util.List<java.util.List<Double>> getWaypointPositions() {
19411983
* Specifying more than 23 waypoints returns a
19421984
* <code>400 ValidationException</code> error.
19431985
* </p>
1986+
* <p>
1987+
* If Esri is the provider for your route calculator, specifying
1988+
* a route that is longer than 400 km returns a
1989+
* <code>400 RoutesValidationException</code> error.
1990+
* </p>
19441991
* </note>
19451992
* <p>
19461993
* Valid Values: <code>[-180 to 180,-90 to 90]</code>
@@ -1981,6 +2028,11 @@ public void setWaypointPositions(java.util.Collection<java.util.List<Double>> wa
19812028
* Specifying more than 23 waypoints returns a
19822029
* <code>400 ValidationException</code> error.
19832030
* </p>
2031+
* <p>
2032+
* If Esri is the provider for your route calculator, specifying a route
2033+
* that is longer than 400 km returns a
2034+
* <code>400 RoutesValidationException</code> error.
2035+
* </p>
19842036
* </note>
19852037
* <p>
19862038
* Valid Values: <code>[-180 to 180,-90 to 90]</code>
@@ -2015,6 +2067,11 @@ public void setWaypointPositions(java.util.Collection<java.util.List<Double>> wa
20152067
* Specifying more than 23 waypoints returns a
20162068
* <code>400 ValidationException</code> error.
20172069
* </p>
2070+
* <p>
2071+
* If Esri is the provider for your route calculator, specifying
2072+
* a route that is longer than 400 km returns a
2073+
* <code>400 RoutesValidationException</code> error.
2074+
* </p>
20182075
* </note>
20192076
* <p>
20202077
* Valid Values: <code>[-180 to 180,-90 to 90]</code>
@@ -2059,6 +2116,11 @@ public CalculateRouteRequest withWaypointPositions(java.util.List<Double>... way
20592116
* Specifying more than 23 waypoints returns a
20602117
* <code>400 ValidationException</code> error.
20612118
* </p>
2119+
* <p>
2120+
* If Esri is the provider for your route calculator, specifying a route
2121+
* that is longer than 400 km returns a
2122+
* <code>400 RoutesValidationException</code> error.
2123+
* </p>
20622124
* </note>
20632125
* <p>
20642126
* Valid Values: <code>[-180 to 180,-90 to 90]</code>
@@ -2093,6 +2155,11 @@ public CalculateRouteRequest withWaypointPositions(java.util.List<Double>... way
20932155
* Specifying more than 23 waypoints returns a
20942156
* <code>400 ValidationException</code> error.
20952157
* </p>
2158+
* <p>
2159+
* If Esri is the provider for your route calculator, specifying
2160+
* a route that is longer than 400 km returns a
2161+
* <code>400 RoutesValidationException</code> error.
2162+
* </p>
20962163
* </note>
20972164
* <p>
20982165
* Valid Values: <code>[-180 to 180,-90 to 90]</code>

0 commit comments

Comments
 (0)