Skip to content

Commit f77318d

Browse files
gigigoo0harryli0108
authored andcommitted
Add view parameter, remove adminDistrict type (Azure#24452)
* Add view parameter, remove adminDistrict type * Remove adminDistrict type in examples --------- Co-authored-by: Gigi Grajo <[email protected]>
1 parent 4724d89 commit f77318d

File tree

3 files changed

+16
-21
lines changed

3 files changed

+16
-21
lines changed

specification/maps/data-plane/Search/preview/2022-12-01-preview/examples/ReverseGeocoding.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@
2121
},
2222
"adminDistricts": [
2323
{
24-
"shortName": "WA",
25-
"type": "adminDistrict"
24+
"shortName": "WA"
2625
},
2726
{
28-
"shortName": "King County",
29-
"type": "adminDistrict2"
27+
"shortName": "King County"
3028
}
3129
],
3230
"formattedAddress": "15127 NE 24th St, Redmond, WA 98052",

specification/maps/data-plane/Search/preview/2022-12-01-preview/examples/ReverseGeocodingBatch.json

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,10 @@
4646
},
4747
"adminDistricts": [
4848
{
49-
"shortName": "WA",
50-
"type": "adminDistrict"
49+
"shortName": "WA"
5150
},
5251
{
53-
"shortName": "King County",
54-
"type": "adminDistrict2"
52+
"shortName": "King County"
5553
}
5654
],
5755
"formattedAddress": "1 Microsoft Way, Redmond, WA 98052",
@@ -122,12 +120,10 @@
122120
},
123121
"adminDistricts": [
124122
{
125-
"shortName": "WA",
126-
"type": "adminDistrict"
123+
"shortName": "WA"
127124
},
128125
{
129-
"shortName": "King County",
130-
"type": "adminDistrict2"
126+
"shortName": "King County"
131127
}
132128
],
133129
"formattedAddress": "Pike Pl, Seattle, WA 98101",
@@ -197,12 +193,10 @@
197193
"locality": "Redmond",
198194
"adminDistricts": [
199195
{
200-
"shortName": "WA",
201-
"type": "adminDistrict"
196+
"shortName": "WA"
202197
},
203198
{
204-
"shortName": "King",
205-
"type": "adminDistrict2"
199+
"shortName": "King"
206200
}
207201
],
208202
"countryRegion": {

specification/maps/data-plane/Search/preview/2022-12-01-preview/search.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@
548548
},
549549
"/reverseGeocode": {
550550
"get": {
551-
"description": "**Reverse Geocode a point.**\n\n**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nTranslate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Most often this is needed in tracking applications where you receive a GPS feed from the device or asset and wish to know what address where the coordinate is located. This endpoint will return address information for a given coordinate.\n\n>[!Important]\n>By using this feature, you agree to the preview legal terms. See the [Preview Supplemental Terms](https://azure.microsoft.com/en-us/support/legal/preview-supplemental-terms/) for additional details.\n\n",
551+
"description": "**Reverse Geocoding**\n\n**Applies to:** see pricing [tiers](https://aka.ms/AzureMapsPricingTier).\n\nTranslate a coordinate (example: 37.786505, -122.3862) into a human understandable street address. Most often this is needed in tracking applications where you receive a GPS feed from the device or asset and wish to know what address where the coordinate is located. This endpoint will return address information for a given coordinate.\n\n>[!Important]\n>By using this feature, you agree to the preview legal terms. See the [Preview Supplemental Terms](https://azure.microsoft.com/en-us/support/legal/preview-supplemental-terms/) for additional details.\n\n",
552552
"operationId": "Search_GetReverseGeocoding",
553553
"produces": [
554554
"application/geo+json"
@@ -585,6 +585,9 @@
585585
},
586586
{
587587
"$ref": "#/parameters/ReverseGeocodingResultTypes"
588+
},
589+
{
590+
"$ref": "#/parameters/View"
588591
}
589592
],
590593
"responses": {
@@ -900,6 +903,10 @@
900903
]
901904
}
902905
}
906+
},
907+
"view": {
908+
"description": "A string that specifies an [ISO 3166-1 Alpha-2 region/country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will alter Geopolitical disputed borders and labels to align with the specified user region.",
909+
"type": "string"
903910
}
904911
}
905912
},
@@ -1074,10 +1081,6 @@
10741081
"shortName": {
10751082
"type": "string",
10761083
"description": "The short name for the corresponding adminDistrict field, \nFor adminDistrict[0], this could be short name of state such as WA, \nFor adminDistrict[1], this could be the short name of the county"
1077-
},
1078-
"type": {
1079-
"type": "string",
1080-
"description": "The type of the adminDistrict. For example: adminDistrict, adminDistrict2"
10811084
}
10821085
}
10831086
}

0 commit comments

Comments
 (0)