Skip to content

Commit bb0de84

Browse files
feat(AWSLocation): update models to latest (#4126)
Co-authored-by: Harshdeep Singh <6162866+harsh62@users.noreply.github.com>
1 parent 704b7ae commit bb0de84

File tree

4 files changed

+53
-41
lines changed

4 files changed

+53
-41
lines changed

AWSLocation/AWSLocationModel.h

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) {
812812
@property (nonatomic, strong) NSNumber * _Nullable departNow;
813813

814814
/**
815-
<p>The start position for the route. Defined in <a href="https://earth-info.nga.mil/GandG/wgs84/index.html">WGS 84</a> format: <code>[longitude, latitude]</code>.</p><ul><li><p>For example, <code>[-123.115, 49.285]</code></p></li></ul><note><p>If you specify a departure that's not located on a road, Amazon Location <a href="https://docs.aws.amazon.com/location/latest/developerguide/snap-to-nearby-road.html">moves the position to the nearest road</a>. If Esri is the provider for your route calculator, specifying a route that is longer than 400 km returns a <code>400 RoutesValidationException</code> error.</p></note><p>Valid Values: <code>[-180 to 180,-90 to 90]</code></p>
815+
<p>The start position for the route. Defined in <a href="https://earth-info.nga.mil/index.php?dir=wgs84&amp;action=wgs84">World Geodetic System (WGS 84)</a> format: <code>[longitude, latitude]</code>.</p><ul><li><p>For example, <code>[-123.115, 49.285]</code></p></li></ul><note><p>If you specify a departure that's not located on a road, Amazon Location <a href="https://docs.aws.amazon.com/location/latest/developerguide/snap-to-nearby-road.html">moves the position to the nearest road</a>. If Esri is the provider for your route calculator, specifying a route that is longer than 400 km returns a <code>400 RoutesValidationException</code> error.</p></note><p>Valid Values: <code>[-180 to 180,-90 to 90]</code></p>
816816
*/
817817
@property (nonatomic, strong) NSArray<NSNumber *> * _Nullable departurePosition;
818818

@@ -822,7 +822,7 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) {
822822
@property (nonatomic, strong) NSDate * _Nullable departureTime;
823823

824824
/**
825-
<p>The finish position for the route. Defined in <a href="https://earth-info.nga.mil/GandG/wgs84/index.html">WGS 84</a> format: <code>[longitude, latitude]</code>.</p><ul><li><p> For example, <code>[-122.339, 47.615]</code></p></li></ul><note><p>If you specify a destination that's not located on a road, Amazon Location <a href="https://docs.aws.amazon.com/location/latest/developerguide/snap-to-nearby-road.html">moves the position to the nearest road</a>. </p></note><p>Valid Values: <code>[-180 to 180,-90 to 90]</code></p>
825+
<p>The finish position for the route. Defined in <a href="https://earth-info.nga.mil/index.php?dir=wgs84&amp;action=wgs84">World Geodetic System (WGS 84)</a> format: <code>[longitude, latitude]</code>.</p><ul><li><p> For example, <code>[-122.339, 47.615]</code></p></li></ul><note><p>If you specify a destination that's not located on a road, Amazon Location <a href="https://docs.aws.amazon.com/location/latest/developerguide/snap-to-nearby-road.html">moves the position to the nearest road</a>. </p></note><p>Valid Values: <code>[-180 to 180,-90 to 90]</code></p>
826826
*/
827827
@property (nonatomic, strong) NSArray<NSNumber *> * _Nullable destinationPosition;
828828

@@ -2358,6 +2358,11 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) {
23582358
*/
23592359
@property (nonatomic, strong) NSString * _Nullable collectionName;
23602360

2361+
/**
2362+
<p>An optional limit for the number of geofences returned in a single call. </p><p>Default value: <code>100</code></p>
2363+
*/
2364+
@property (nonatomic, strong) NSNumber * _Nullable maxResults;
2365+
23612366
/**
23622367
<p>The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page. </p><p>Default value: <code>null</code></p>
23632368
*/
@@ -2765,7 +2770,7 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) {
27652770
@end
27662771

27672772
/**
2768-
<p>Contains details about addresses or points of interest that match the search criteria.</p>
2773+
<p>Contains details about addresses or points of interest that match the search criteria.</p><p>Not all details are included with all responses. Some details may only be returned by specific data partners.</p>
27692774
Required parameters: [Geometry]
27702775
*/
27712776
@interface AWSLocationPlace : AWSModel
@@ -3017,7 +3022,7 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) {
30173022
@property (nonatomic, strong) NSString * _Nullable indexName;
30183023

30193024
/**
3020-
<p>The preferred language used to return results. The value must be a valid <a href="https://tools.ietf.org/search/bcp47">BCP 47</a> language tag, for example, <code>en</code> for English.</p><p>This setting affects the languages used in the results. It does not change which results are returned. If the language is not specified, or not supported for a particular result, the partner automatically chooses a language for the result.</p>
3025+
<p>The preferred language used to return results. The value must be a valid <a href="https://tools.ietf.org/search/bcp47">BCP 47</a> language tag, for example, <code>en</code> for English.</p><p>This setting affects the languages used in the results, but not the results themselves. If no language is specified, or not supported for a particular result, the partner automatically chooses a language for the result.</p><p>For an example, we'll use the Greek language. You search for a location around Athens, Greece, with the <code>language</code> parameter set to <code>en</code>. The <code>city</code> in the results will most likely be returned as <code>Athens</code>.</p><p>If you set the <code>language</code> parameter to <code>el</code>, for Greek, then the <code>city</code> in the results will more likely be returned as <code>Αθήνα</code>.</p><p>If the data provider does not have a value for Greek, the result will be in a language that the provider does support.</p>
30213026
*/
30223027
@property (nonatomic, strong) NSString * _Nullable language;
30233028

@@ -3107,7 +3112,7 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) {
31073112
@property (nonatomic, strong) NSString * _Nullable indexName;
31083113

31093114
/**
3110-
<p>The preferred language used to return results. The value must be a valid <a href="https://tools.ietf.org/search/bcp47">BCP 47</a> language tag, for example, <code>en</code> for English.</p><p>This setting affects the languages used in the results. It does not change which results are returned. If the language is not specified, or not supported for a particular result, the partner automatically chooses a language for the result.</p><p>Used only when the partner selected is Here.</p>
3115+
<p>The preferred language used to return results. The value must be a valid <a href="https://tools.ietf.org/search/bcp47">BCP 47</a> language tag, for example, <code>en</code> for English.</p><p>This setting affects the languages used in the results. If no language is specified, or not supported for a particular result, the partner automatically chooses a language for the result.</p><p>For an example, we'll use the Greek language. You search for <code>Athens, Gr</code> to get suggestions with the <code>language</code> parameter set to <code>en</code>. The results found will most likely be returned as <code>Athens, Greece</code>.</p><p>If you set the <code>language</code> parameter to <code>el</code>, for Greek, then the result found will more likely be returned as <code>Αθήνα, Ελλάδα</code>.</p><p>If the data provider does not have a value for Greek, the result will be in a language that the provider does support.</p>
31113116
*/
31123117
@property (nonatomic, strong) NSString * _Nullable language;
31133118

@@ -3212,7 +3217,7 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) {
32123217
@property (nonatomic, strong) NSString * _Nullable indexName;
32133218

32143219
/**
3215-
<p>The preferred language used to return results. The value must be a valid <a href="https://tools.ietf.org/search/bcp47">BCP 47</a> language tag, for example, <code>en</code> for English.</p><p>This setting affects the languages used in the results. It does not change which results are returned. If the language is not specified, or not supported for a particular result, the partner automatically chooses a language for the result.</p>
3220+
<p>The preferred language used to return results. The value must be a valid <a href="https://tools.ietf.org/search/bcp47">BCP 47</a> language tag, for example, <code>en</code> for English.</p><p>This setting affects the languages used in the results, but not the results themselves. If no language is specified, or not supported for a particular result, the partner automatically chooses a language for the result.</p><p>For an example, we'll use the Greek language. You search for <code>Athens, Greece</code>, with the <code>language</code> parameter set to <code>en</code>. The result found will most likely be returned as <code>Athens</code>.</p><p>If you set the <code>language</code> parameter to <code>el</code>, for Greek, then the result found will more likely be returned as <code>Αθήνα</code>.</p><p>If the data provider does not have a value for Greek, the result will be in a language that the provider does support.</p>
32163221
*/
32173222
@property (nonatomic, strong) NSString * _Nullable language;
32183223

@@ -3235,7 +3240,7 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) {
32353240

32363241

32373242
/**
3238-
<p>A list of Places matching the input text. Each result contains additional information about the specific point of interest. </p>
3243+
<p>A list of Places matching the input text. Each result contains additional information about the specific point of interest. </p><p>Not all response properties are included with all responses. Some properties may only be returned by specific data partners.</p>
32393244
*/
32403245
@property (nonatomic, strong) NSArray<AWSLocationSearchForTextResult *> * _Nullable results;
32413246

AWSLocation/AWSLocationModel.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2417,6 +2417,7 @@ + (BOOL)supportsSecureCoding {
24172417
+ (NSDictionary *)JSONKeyPathsByPropertyKey {
24182418
return @{
24192419
@"collectionName" : @"CollectionName",
2420+
@"maxResults" : @"MaxResults",
24202421
@"nextToken" : @"NextToken",
24212422
};
24222423
}

0 commit comments

Comments
 (0)