Skip to content

Commit 1ba4596

Browse files
authored
Maps search 2025 01 01 (#32091)
* base commit * Add version 2025-01-01 * update readme * update cspell config
1 parent bb65581 commit 1ba4596

11 files changed

+2596
-2
lines changed

specification/maps/cspell.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ overrides:
6464
- geocodingresponse
6565
- searchaddressresult
6666
- searchaddressreverseresponse
67-
- filename: '**/specification/maps/data-plane/Route/**'
67+
- filename: '**/specification/maps/data-plane/**'
6868
words:
6969
- modelerfour
7070

specification/maps/data-plane/Search/readme.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ These are the global settings for Search Client.
2727
``` yaml
2828
title: SearchClient
2929
openapi-type: data-plane
30-
tag: package-preview-2024-04
30+
tag: package-2025-01
3131
add-credentials: true
3232
credential-default-policy-type: BearerTokenCredentialPolicy
3333
credential-scopes: 'https://atlas.microsoft.com/.default'
@@ -39,6 +39,15 @@ modelerfour:
3939
lenient-model-deduplication: true
4040
```
4141
42+
### Tag: package-2025-01
43+
44+
These settings apply only when `--tag=package-2025-01` is specified on the command line.
45+
46+
```yaml $(tag) == 'package-2025-01'
47+
input-file:
48+
- stable/2025-01-01/search.json
49+
```
50+
4251
### Tag: package-preview-2024-04
4352

4453
These settings apply only when `--tag=package-preview-2024-04` is specified on the command line.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-01-01",
4+
"addressLine": "15127 NE 24th Street",
5+
"locality": "Redmond",
6+
"adminDistrict": "WA",
7+
"AzureKey": "[subscription-key]"
8+
},
9+
"responses": {
10+
"200": {
11+
"headers": {
12+
"Content-Type": "application/geo+json"
13+
},
14+
"body": {
15+
"type": "FeatureCollection",
16+
"features": [
17+
{
18+
"type": "Feature",
19+
"properties": {
20+
"address": {
21+
"countryRegion": {
22+
"name": "United States"
23+
},
24+
"adminDistricts": [
25+
{
26+
"shortName": "WA"
27+
},
28+
{
29+
"shortName": "King County"
30+
}
31+
],
32+
"formattedAddress": "15127 NE 24th St, Redmond, WA 98052",
33+
"streetName": "NE 24th St",
34+
"streetNumber": "15127",
35+
"locality": "Redmond",
36+
"postalCode": "98052",
37+
"addressLine": "15127 NE 24th St"
38+
},
39+
"type": "Address",
40+
"confidence": "High",
41+
"matchCodes": [
42+
"Good"
43+
],
44+
"geocodePoints": [
45+
{
46+
"geometry": {
47+
"type": "Point",
48+
"coordinates": [
49+
-122.138681,
50+
47.630358
51+
]
52+
},
53+
"calculationMethod": "Rooftop",
54+
"usageTypes": [
55+
"Display"
56+
]
57+
},
58+
{
59+
"geometry": {
60+
"type": "Point",
61+
"coordinates": [
62+
-122.1386787,
63+
47.6302179
64+
]
65+
},
66+
"calculationMethod": "Rooftop",
67+
"usageTypes": [
68+
"Route"
69+
]
70+
}
71+
]
72+
},
73+
"geometry": {
74+
"type": "Point",
75+
"coordinates": [
76+
-122.138681,
77+
47.630358
78+
]
79+
},
80+
"bbox": [
81+
-122.14632282407,
82+
47.626495282429325,
83+
-122.13103917593001,
84+
47.63422071757068
85+
]
86+
}
87+
]
88+
}
89+
}
90+
}
91+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-01-01",
4+
"AzureKey": "[subscription-key]",
5+
"geocodingBatchRequestBody": {
6+
"batchItems": [
7+
{
8+
"addressLine": "15127 NE 24th Street, Redmond, WA 98052",
9+
"top": 2,
10+
"optionalId": "4C3681A6C8AA4AC3441412763A2A25C81444DC8B"
11+
},
12+
{
13+
"query": "Pike Pl",
14+
"locality": "Seattle",
15+
"top": 3
16+
}
17+
]
18+
}
19+
},
20+
"responses": {
21+
"200": {
22+
"body": {
23+
"summary": {
24+
"successfulRequests": 1,
25+
"totalRequests": 2
26+
},
27+
"batchItems": [
28+
{
29+
"optionalId": "4C3681A6C8AA4AC3441412763A2A25C81444DC8B",
30+
"type": "FeatureCollection",
31+
"features": [
32+
{
33+
"type": "Feature",
34+
"properties": {
35+
"type": "Address",
36+
"confidence": "High",
37+
"matchCodes": [
38+
"Good"
39+
],
40+
"address": {
41+
"locality": "Redmond",
42+
"adminDistricts": [
43+
{
44+
"shortName": "WA"
45+
},
46+
{
47+
"shortName": "King County"
48+
}
49+
],
50+
"countryRegion": {
51+
"ISO": "US",
52+
"name": "United States"
53+
},
54+
"postalCode": "98052",
55+
"formattedAddress": "15127 NE 24th St, Redmond, WA 98052",
56+
"streetName": "NE 24th St",
57+
"streetNumber": "15127",
58+
"addressLine": "15127 NE 24th St"
59+
},
60+
"geocodePoints": [
61+
{
62+
"geometry": {
63+
"type": "Point",
64+
"coordinates": [
65+
-122.138669,
66+
47.630359
67+
]
68+
},
69+
"calculationMethod": "Rooftop",
70+
"usageTypes": [
71+
"Display",
72+
"Route"
73+
]
74+
},
75+
{
76+
"geometry": {
77+
"type": "Point",
78+
"coordinates": [
79+
-122.1387383,
80+
47.630563
81+
]
82+
},
83+
"calculationMethod": "Rooftop",
84+
"usageTypes": [
85+
"Route"
86+
]
87+
}
88+
]
89+
},
90+
"geometry": {
91+
"type": "Point",
92+
"coordinates": [
93+
-122.138669,
94+
47.630359
95+
]
96+
},
97+
"bbox": [
98+
-122.14631082421619,
99+
47.62649628242932,
100+
-122.1310271757838,
101+
47.634221717570675
102+
]
103+
}
104+
]
105+
},
106+
{
107+
"error": {
108+
"code": "Conflicting Parameters",
109+
"message": "When 'query' is present, only the following parameters are valid: 'bbox, location, view, top'. 'locality' was passed"
110+
}
111+
}
112+
]
113+
}
114+
}
115+
}
116+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"parameters": {
3+
"api-version": "2025-01-01",
4+
"addressLine": "15127 NE 24th Street Redmond WA",
5+
"countryRegion": "US",
6+
"AzureKey": "[subscription-key]"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {
11+
"Content-Type": "application/geo+json"
12+
},
13+
"body": {
14+
"type": "FeatureCollection",
15+
"features": [
16+
{
17+
"type": "Feature",
18+
"properties": {
19+
"address": {
20+
"countryRegion": {
21+
"name": "United States"
22+
},
23+
"adminDistricts": [
24+
{
25+
"shortName": "WA"
26+
},
27+
{
28+
"shortName": "King County"
29+
}
30+
],
31+
"formattedAddress": "15127 NE 24th St, Redmond, WA 98052",
32+
"streetName": "NE 24th St",
33+
"streetNumber": "15127",
34+
"locality": "Redmond",
35+
"postalCode": "98052",
36+
"addressLine": "15127 NE 24th St"
37+
},
38+
"type": "Address",
39+
"confidence": "Medium",
40+
"matchCodes": [
41+
"Good"
42+
],
43+
"geocodePoints": [
44+
{
45+
"geometry": {
46+
"type": "Point",
47+
"coordinates": [
48+
-122.138681,
49+
47.630358
50+
]
51+
},
52+
"calculationMethod": "Rooftop",
53+
"usageTypes": [
54+
"Display"
55+
]
56+
},
57+
{
58+
"geometry": {
59+
"type": "Point",
60+
"coordinates": [
61+
-122.1386787,
62+
47.6302179
63+
]
64+
},
65+
"calculationMethod": "Rooftop",
66+
"usageTypes": [
67+
"Route"
68+
]
69+
}
70+
]
71+
},
72+
"geometry": {
73+
"type": "Point",
74+
"coordinates": [
75+
-122.138681,
76+
47.630358
77+
]
78+
},
79+
"bbox": [
80+
-122.14632282407,
81+
47.626495282429325,
82+
-122.13103917593001,
83+
47.63422071757068
84+
]
85+
}
86+
]
87+
}
88+
}
89+
}
90+
}

0 commit comments

Comments
 (0)