Skip to content

Commit 9a42e63

Browse files
Geocode, ReverseGeocode, and GetPlace APIs added Intersections and SecondaryAddresses. To use, add to the AdditionalFeatures list in your request. This provides info about nearby intersections and secondary addresses that are associated with a main address. Also added MainAddress and ParsedQuery.
1 parent 768189d commit 9a42e63

File tree

86 files changed

+4333
-634
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+4333
-634
lines changed

generator/ServiceModels/geo-places/geo-places-2020-11-19.api.json

Lines changed: 409 additions & 107 deletions
Large diffs are not rendered by default.

generator/ServiceModels/geo-places/geo-places-2020-11-19.docs.json

Lines changed: 274 additions & 79 deletions
Large diffs are not rendered by default.

generator/ServiceModels/geo-places/geo-places-2020-11-19.endpoint-rule-set.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
}
329329
],
330330
"endpoint": {
331-
"url": "https://places.geo.{Region}.us-gov.{PartitionResult#dnsSuffix}/v2",
331+
"url": "https://places.geo.{Region}.{PartitionResult#dnsSuffix}/v2",
332332
"properties": {},
333333
"headers": {}
334334
},
@@ -371,7 +371,7 @@
371371
}
372372
],
373373
"endpoint": {
374-
"url": "https://places.geo-fips.{Region}.us-gov.{PartitionResult#dualStackDnsSuffix}/v2",
374+
"url": "https://places.geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}/v2",
375375
"properties": {},
376376
"headers": {}
377377
},
@@ -414,7 +414,7 @@
414414
}
415415
],
416416
"endpoint": {
417-
"url": "https://places.geo-fips.{Region}.us-gov.{PartitionResult#dnsSuffix}/v2",
417+
"url": "https://places.geo-fips.{Region}.{PartitionResult#dnsSuffix}/v2",
418418
"properties": {},
419419
"headers": {}
420420
},
@@ -457,7 +457,7 @@
457457
}
458458
],
459459
"endpoint": {
460-
"url": "https://places.geo.{Region}.us-gov.{PartitionResult#dualStackDnsSuffix}/v2",
460+
"url": "https://places.geo.{Region}.{PartitionResult#dualStackDnsSuffix}/v2",
461461
"properties": {},
462462
"headers": {}
463463
},

generator/ServiceModels/geo-places/geo-places-2020-11-19.endpoint-tests.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled",
142142
"expect": {
143143
"endpoint": {
144-
"url": "https://places.geo-fips.us-gov-west-1.us-gov.api.aws/v2"
144+
"url": "https://places.geo-fips.us-gov-west-1.api.aws/v2"
145145
}
146146
},
147147
"params": {
@@ -154,7 +154,7 @@
154154
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled",
155155
"expect": {
156156
"endpoint": {
157-
"url": "https://places.geo-fips.us-gov-west-1.us-gov.amazonaws.com/v2"
157+
"url": "https://places.geo-fips.us-gov-west-1.amazonaws.com/v2"
158158
}
159159
},
160160
"params": {
@@ -167,7 +167,7 @@
167167
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled",
168168
"expect": {
169169
"endpoint": {
170-
"url": "https://places.geo.us-gov-west-1.us-gov.api.aws/v2"
170+
"url": "https://places.geo.us-gov-west-1.api.aws/v2"
171171
}
172172
},
173173
"params": {
@@ -180,7 +180,7 @@
180180
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
181181
"expect": {
182182
"endpoint": {
183-
"url": "https://places.geo.us-gov-west-1.us-gov.amazonaws.com/v2"
183+
"url": "https://places.geo.us-gov-west-1.amazonaws.com/v2"
184184
}
185185
},
186186
"params": {

generator/ServiceModels/geo-places/geo-places-2020-11-19.normal.json

Lines changed: 610 additions & 163 deletions
Large diffs are not rendered by default.

generator/ServiceModels/geo-places/geo-places-2020-11-19.smoke2.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"version" : 2,
33
"testCases" : [ {
4-
"id" : "AutocompleteSuccess",
5-
"operationName" : "Autocomplete",
4+
"id" : "ReverseGeocodeSuccess",
5+
"operationName" : "ReverseGeocode",
66
"input" : {
7-
"QueryText" : "Star"
7+
"QueryPosition" : [ 2.2945, 48.85824 ]
88
},
99
"expectation" : {
1010
"success" : { }
@@ -16,11 +16,10 @@
1616
"useAccountIdRouting" : true
1717
}
1818
}, {
19-
"id" : "SuggestSuccess",
20-
"operationName" : "Suggest",
19+
"id" : "AutocompleteSuccess",
20+
"operationName" : "Autocomplete",
2121
"input" : {
22-
"QueryText" : "Taj Mahal",
23-
"BiasPosition" : [ 78.0421, 27.1753 ]
22+
"QueryText" : "Star"
2423
},
2524
"expectation" : {
2625
"success" : { }
@@ -47,10 +46,11 @@
4746
"useAccountIdRouting" : true
4847
}
4948
}, {
50-
"id" : "GeocodeSuccess",
51-
"operationName" : "Geocode",
49+
"id" : "SuggestSuccess",
50+
"operationName" : "Suggest",
5251
"input" : {
53-
"QueryText" : "Starbucks"
52+
"QueryText" : "Taj Mahal",
53+
"BiasPosition" : [ 78.0421, 27.1753 ]
5454
},
5555
"expectation" : {
5656
"success" : { }
@@ -62,10 +62,10 @@
6262
"useAccountIdRouting" : true
6363
}
6464
}, {
65-
"id" : "ReverseGeocodeSuccess",
66-
"operationName" : "ReverseGeocode",
65+
"id" : "GeocodeSuccess",
66+
"operationName" : "Geocode",
6767
"input" : {
68-
"QueryPosition" : [ 2.2945, 48.85824 ]
68+
"QueryText" : "Starbucks"
6969
},
7070
"expectation" : {
7171
"success" : { }

sdk/code-analysis/ServiceAnalysis/GeoPlaces/Generated/PropertyValueRules.xml

Lines changed: 91 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<property-value-rule>
6666
<property>Amazon.GeoPlaces.Model.GetPlaceRequest.PlaceId</property>
6767
<min>0</min>
68-
<max>200</max>
68+
<max>500</max>
6969
</property-value-rule>
7070
<property-value-rule>
7171
<property>Amazon.GeoPlaces.Model.GetPlaceRequest.PoliticalView</property>
@@ -76,7 +76,7 @@
7676
<property-value-rule>
7777
<property>Amazon.GeoPlaces.Model.GetPlaceResponse.PlaceId</property>
7878
<min>0</min>
79-
<max>200</max>
79+
<max>500</max>
8080
</property-value-rule>
8181
<property-value-rule>
8282
<property>Amazon.GeoPlaces.Model.GetPlaceResponse.PoliticalView</property>
@@ -180,7 +180,7 @@
180180
<property-value-rule>
181181
<property>Amazon.GeoPlaces.Model.SearchTextRequest.QueryId</property>
182182
<min>1</min>
183-
<max>400</max>
183+
<max>500</max>
184184
</property-value-rule>
185185
<property-value-rule>
186186
<property>Amazon.GeoPlaces.Model.SearchTextRequest.QueryText</property>
@@ -341,7 +341,7 @@
341341
<property-value-rule>
342342
<property>Amazon.GeoPlaces.Model.AutocompleteResultItem.PlaceId</property>
343343
<min>0</min>
344-
<max>200</max>
344+
<max>500</max>
345345
</property-value-rule>
346346
<property-value-rule>
347347
<property>Amazon.GeoPlaces.Model.AutocompleteResultItem.PoliticalView</property>
@@ -482,7 +482,7 @@
482482
<property-value-rule>
483483
<property>Amazon.GeoPlaces.Model.GeocodeResultItem.PlaceId</property>
484484
<min>0</min>
485-
<max>200</max>
485+
<max>500</max>
486486
</property-value-rule>
487487
<property-value-rule>
488488
<property>Amazon.GeoPlaces.Model.GeocodeResultItem.PoliticalView</property>
@@ -508,6 +508,26 @@
508508
<min>0</min>
509509
<max>200</max>
510510
</property-value-rule>
511+
<property-value-rule>
512+
<property>Amazon.GeoPlaces.Model.Intersection.Distance</property>
513+
<min>0</min>
514+
<max>4294967295</max>
515+
</property-value-rule>
516+
<property-value-rule>
517+
<property>Amazon.GeoPlaces.Model.Intersection.PlaceId</property>
518+
<min>0</min>
519+
<max>500</max>
520+
</property-value-rule>
521+
<property-value-rule>
522+
<property>Amazon.GeoPlaces.Model.Intersection.RouteDistance</property>
523+
<min>0</min>
524+
<max>4294967295</max>
525+
</property-value-rule>
526+
<property-value-rule>
527+
<property>Amazon.GeoPlaces.Model.Intersection.Title</property>
528+
<min>0</min>
529+
<max>200</max>
530+
</property-value-rule>
511531
<property-value-rule>
512532
<property>Amazon.GeoPlaces.Model.MatchScoreDetails.Overall</property>
513533
<min>0</min>
@@ -528,6 +548,47 @@
528548
<min>0</min>
529549
<max>200</max>
530550
</property-value-rule>
551+
<property-value-rule>
552+
<property>Amazon.GeoPlaces.Model.ParsedQueryComponent.EndIndex</property>
553+
<min>0</min>
554+
</property-value-rule>
555+
<property-value-rule>
556+
<property>Amazon.GeoPlaces.Model.ParsedQueryComponent.QueryComponent</property>
557+
<min>0</min>
558+
<max>11</max>
559+
</property-value-rule>
560+
<property-value-rule>
561+
<property>Amazon.GeoPlaces.Model.ParsedQueryComponent.StartIndex</property>
562+
<min>0</min>
563+
</property-value-rule>
564+
<property-value-rule>
565+
<property>Amazon.GeoPlaces.Model.ParsedQueryComponent.Value</property>
566+
<min>0</min>
567+
<max>200</max>
568+
</property-value-rule>
569+
<property-value-rule>
570+
<property>Amazon.GeoPlaces.Model.ParsedQuerySecondaryAddressComponent.Designator</property>
571+
<min>0</min>
572+
<max>4</max>
573+
</property-value-rule>
574+
<property-value-rule>
575+
<property>Amazon.GeoPlaces.Model.ParsedQuerySecondaryAddressComponent.EndIndex</property>
576+
<min>0</min>
577+
</property-value-rule>
578+
<property-value-rule>
579+
<property>Amazon.GeoPlaces.Model.ParsedQuerySecondaryAddressComponent.Number</property>
580+
<min>0</min>
581+
<max>10</max>
582+
</property-value-rule>
583+
<property-value-rule>
584+
<property>Amazon.GeoPlaces.Model.ParsedQuerySecondaryAddressComponent.StartIndex</property>
585+
<min>0</min>
586+
</property-value-rule>
587+
<property-value-rule>
588+
<property>Amazon.GeoPlaces.Model.ParsedQuerySecondaryAddressComponent.Value</property>
589+
<min>0</min>
590+
<max>200</max>
591+
</property-value-rule>
531592
<property-value-rule>
532593
<property>Amazon.GeoPlaces.Model.PhonemeTranscription.Language</property>
533594
<min>2</min>
@@ -571,6 +632,16 @@
571632
<min>0</min>
572633
<max>200</max>
573634
</property-value-rule>
635+
<property-value-rule>
636+
<property>Amazon.GeoPlaces.Model.RelatedPlace.PlaceId</property>
637+
<min>0</min>
638+
<max>500</max>
639+
</property-value-rule>
640+
<property-value-rule>
641+
<property>Amazon.GeoPlaces.Model.RelatedPlace.Title</property>
642+
<min>0</min>
643+
<max>200</max>
644+
</property-value-rule>
574645
<property-value-rule>
575646
<property>Amazon.GeoPlaces.Model.ReverseGeocodeResultItem.Distance</property>
576647
<min>0</min>
@@ -579,7 +650,7 @@
579650
<property-value-rule>
580651
<property>Amazon.GeoPlaces.Model.ReverseGeocodeResultItem.PlaceId</property>
581652
<min>0</min>
582-
<max>200</max>
653+
<max>500</max>
583654
</property-value-rule>
584655
<property-value-rule>
585656
<property>Amazon.GeoPlaces.Model.ReverseGeocodeResultItem.PoliticalView</property>
@@ -600,7 +671,7 @@
600671
<property-value-rule>
601672
<property>Amazon.GeoPlaces.Model.SearchNearbyResultItem.PlaceId</property>
602673
<min>0</min>
603-
<max>200</max>
674+
<max>500</max>
604675
</property-value-rule>
605676
<property-value-rule>
606677
<property>Amazon.GeoPlaces.Model.SearchNearbyResultItem.PoliticalView</property>
@@ -621,7 +692,7 @@
621692
<property-value-rule>
622693
<property>Amazon.GeoPlaces.Model.SearchTextResultItem.PlaceId</property>
623694
<min>0</min>
624-
<max>200</max>
695+
<max>500</max>
625696
</property-value-rule>
626697
<property-value-rule>
627698
<property>Amazon.GeoPlaces.Model.SearchTextResultItem.PoliticalView</property>
@@ -634,6 +705,16 @@
634705
<min>0</min>
635706
<max>200</max>
636707
</property-value-rule>
708+
<property-value-rule>
709+
<property>Amazon.GeoPlaces.Model.SecondaryAddressComponent.Number</property>
710+
<min>0</min>
711+
<max>10</max>
712+
</property-value-rule>
713+
<property-value-rule>
714+
<property>Amazon.GeoPlaces.Model.SecondaryAddressComponentMatchScore.Number</property>
715+
<min>0</min>
716+
<max>1</max>
717+
</property-value-rule>
637718
<property-value-rule>
638719
<property>Amazon.GeoPlaces.Model.StreetComponents.BaseName</property>
639720
<min>0</min>
@@ -688,7 +769,7 @@
688769
<property-value-rule>
689770
<property>Amazon.GeoPlaces.Model.SuggestPlaceResult.PlaceId</property>
690771
<min>1</min>
691-
<max>200</max>
772+
<max>500</max>
692773
</property-value-rule>
693774
<property-value-rule>
694775
<property>Amazon.GeoPlaces.Model.SuggestPlaceResult.PoliticalView</property>
@@ -699,7 +780,7 @@
699780
<property-value-rule>
700781
<property>Amazon.GeoPlaces.Model.SuggestQueryResult.QueryId</property>
701782
<min>0</min>
702-
<max>400</max>
783+
<max>500</max>
703784
</property-value-rule>
704785
<property-value-rule>
705786
<property>Amazon.GeoPlaces.Model.SuggestResultItem.Title</property>

sdk/src/Services/GeoPlaces/Generated/Internal/AmazonGeoPlacesEndpointProvider.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,19 @@ public Endpoint ResolveEndpoint(EndpointParameters parameters)
8686
}
8787
if (Equals(GetAttr(refs["PartitionResult"], "name"), "aws-us-gov") && Equals(refs["UseFIPS"], false) && Equals(refs["UseDualStack"], false))
8888
{
89-
return new Endpoint(Interpolate(@"https://places.geo.{Region}.us-gov.{PartitionResult#dnsSuffix}/v2", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
89+
return new Endpoint(Interpolate(@"https://places.geo.{Region}.{PartitionResult#dnsSuffix}/v2", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
9090
}
9191
if (Equals(GetAttr(refs["PartitionResult"], "name"), "aws-us-gov") && Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true))
9292
{
93-
return new Endpoint(Interpolate(@"https://places.geo-fips.{Region}.us-gov.{PartitionResult#dualStackDnsSuffix}/v2", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
93+
return new Endpoint(Interpolate(@"https://places.geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}/v2", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
9494
}
9595
if (Equals(GetAttr(refs["PartitionResult"], "name"), "aws-us-gov") && Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], false))
9696
{
97-
return new Endpoint(Interpolate(@"https://places.geo-fips.{Region}.us-gov.{PartitionResult#dnsSuffix}/v2", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
97+
return new Endpoint(Interpolate(@"https://places.geo-fips.{Region}.{PartitionResult#dnsSuffix}/v2", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
9898
}
9999
if (Equals(GetAttr(refs["PartitionResult"], "name"), "aws-us-gov") && Equals(refs["UseFIPS"], false) && Equals(refs["UseDualStack"], true))
100100
{
101-
return new Endpoint(Interpolate(@"https://places.geo.{Region}.us-gov.{PartitionResult#dualStackDnsSuffix}/v2", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
101+
return new Endpoint(Interpolate(@"https://places.geo.{Region}.{PartitionResult#dualStackDnsSuffix}/v2", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
102102
}
103103
if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true))
104104
{

sdk/src/Services/GeoPlaces/Generated/Model/AccessRestriction.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ internal bool IsSetCategories()
6868
/// The restriction.
6969
/// </para>
7070
/// </summary>
71+
[AWSProperty(Sensitive=true)]
7172
public bool? Restricted
7273
{
7374
get { return this._restricted; }

0 commit comments

Comments
 (0)