Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
51f62d8
Adds base for updating Search from version preview/2022-12-01-preview…
jsedlak-microsoft Sep 27, 2023
c1b8fb5
Updates readme
jsedlak-microsoft Sep 27, 2023
bd955b9
Updates API version in new specs and examples
jsedlak-microsoft Sep 27, 2023
036834c
Update countryRegionSet to countryRegion and remove strictMatch
jsedlak-microsoft Sep 27, 2023
5340bed
Update ForwardGeocodingByAddressLine.json example to use countryRegio…
jsedlak-microsoft Sep 27, 2023
b3e5fa0
Update description of countryRegion parameter
jsedlak-microsoft Sep 27, 2023
6aefbde
Update CountryRegion parameter description
jsedlak-microsoft Sep 27, 2023
d5038c7
Update search.json to document default view
jsedlak-microsoft Sep 27, 2023
46f5edc
Update search.json to remove supplemental terms warning
jsedlak-microsoft Sep 27, 2023
17067ac
Update search.json to remove HTTP 207
jsedlak-microsoft Sep 28, 2023
4e19aa6
Update ForwardGeocodingBatch.json to 200 response
jsedlak-microsoft Sep 28, 2023
294c552
Update ReverseGeocodingBatch.json to 200 response
jsedlak-microsoft Sep 28, 2023
39a0bca
Update ForwardGeocodingBatch.json examples
jsedlak-microsoft Sep 28, 2023
daa0b8a
Update ReverseGeocodingBatch.json examples
jsedlak-microsoft Sep 28, 2023
a358faf
Stable version of common.json
jsedlak-microsoft Oct 2, 2023
e326193
Use stable version of common types
jsedlak-microsoft Oct 2, 2023
b6f24aa
Update common.json version string
jsedlak-microsoft Oct 2, 2023
0852c9b
Match coordinates parameter for geocoding. polycon, reverseGeocoding
jsedlak-microsoft Oct 2, 2023
21218fa
Fix reference to coordinates
jsedlak-microsoft Oct 2, 2023
6c130ba
Update countryRegion to be single string
jsedlak-microsoft Oct 9, 2023
f223d9d
Update example
jsedlak-microsoft Oct 9, 2023
217461e
Update countryRegion to be single string
jsedlak-microsoft Oct 9, 2023
e2e86db
Merge branch 'jsedlak-microsoft-maps-Search-2023-06-01' of https://gi…
jsedlak-microsoft Oct 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
885 changes: 885 additions & 0 deletions specification/maps/data-plane/Common/stable/2023-06-01/common.json

Large diffs are not rendered by default.

14 changes: 11 additions & 3 deletions specification/maps/data-plane/Search/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ These are the global settings for Search Client.
``` yaml
title: SearchClient
openapi-type: data-plane
tag: package-preview-2022-12
tag: package-2023-06
add-credentials: true
credential-default-policy-type: BearerTokenCredentialPolicy
credential-scopes: 'https://atlas.microsoft.com/.default'
Expand All @@ -40,6 +40,14 @@ modelerfour:
```


### Tag: package-2023-06

These settings apply only when `--tag=package-2023-06` is specified on the command line.

```yaml $(tag) == 'package-2023-06'
Comment thread
jsedlak-microsoft marked this conversation as resolved.
input-file:
- stable/2023-06-01/search.json
```
### Tag: 1.0

These settings apply only when `--tag=1.0` is specified on the command line.
Expand Down Expand Up @@ -71,7 +79,7 @@ input-file:

These settings apply only when `--tag=package-preview-2022-09` is specified on the command line.

```yaml $(tag) == 'package-preview-2022-09'
``` yaml $(tag) == 'package-preview-2022-09'
input-file:
- preview/2022-09-01-preview/search.json
```
Expand All @@ -80,7 +88,7 @@ input-file:

These settings apply only when `--tag=package-preview-2022-12` is specified on the command line.

```yaml $(tag) == 'package-preview-2022-12'
``` yaml $(tag) == 'package-preview-2022-12'
input-file:
- preview/2022-12-01-preview/search.json
```
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"parameters": {
"api-version": "2023-06-01",
"addressLine": "15127 NE 24th Street",
"locality": "Redmond",
"adminDistrict": "WA",
"AzureKey": "[subscription-key]"
},
"responses": {
"200": {
"headers": {
"Content-Type": "application/geo+json"
},
"body": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"address": {
"countryRegion": {
"name": "United States"
},
"adminDistricts": [
{
"shortName": "WA"
},
{
"shortName": "King County"
}
],
"formattedAddress": "15127 NE 24th St, Redmond, WA 98052",
"locality": "Redmond",
"postalCode": "98052",
"addressLine": "15127 NE 24th St"
},
"type": "Address",
"confidence": "High",
"matchCodes": [
"Good"
],
"geocodePoints": [
{
"geometry": {
"type": "Point",
"coordinates": [
-122.138681,
47.630358
]
},
"calculationMethod": "Rooftop",
"usageTypes": [
"Display"
]
},
{
"geometry": {
"type": "Point",
"coordinates": [
-122.1386787,
47.6302179
]
},
"calculationMethod": "Rooftop",
"usageTypes": [
"Route"
]
}
]
},
"geometry": {
"type": "Point",
"coordinates": [
-122.138681,
47.630358
]
},
"bbox": [
-122.14632282407,
47.626495282429325,
-122.13103917593001,
47.63422071757068
]
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"parameters": {
"api-version": "2023-06-01",
"AzureKey": "[subscription-key]",
"geocodingBatchRequestBody": {
"batchItems": [
{
"addressLine": "One, Microsoft Way, Redmond, WA 98052",
"top": 2,
"optionalId": "4C3681A6C8AA4AC3441412763A2A25C81444DC8B"
},
{
"addressLine": "Pike Pl",
"adminDistrict": "WA",
"locality": "Seattle",
"top": 3
}
]
}
},
"responses": {
"200": {
"body": {
"summary": {
"successfulRequests": 1,
"totalRequests": 2
},
"batchItems": [
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"type": "Address",
"confidence": "High",
"matchCodes": [
"Good"
],
"address": {
"locality": "Redmond",
"adminDistricts": [
{
"shortName": "WA"
},
{
"shortName": "King"
}
],
"countryRegion": {
"ISO": "US",
"name": "United States"
},
"postalCode": "98052",
"formattedAddress": "1 Microsoft Way, Redmond, WA 98052",
"addressLine": "1 Microsoft Way"
},
"geocodePoints": [
{
"geometry": {
"type": "Point",
"coordinates": [
-122.128275,
47.639429
]
},
"calculationMethod": "Rooftop",
"usageTypes": [
"Display",
"Route"
]
},
{
"geometry": {
"type": "Point",
"coordinates": [
-122.127028,
47.638545
]
},
"calculationMethod": "Rooftop",
"usageTypes": [
"Route"
]
}
]
},
"geometry": {
"type": "Point",
"coordinates": [
-122.128275,
47.639429
]
},
"bbox": [
-122.1359181505759,
47.63556628242932,
-122.1206318494241,
47.643291717570676
]
}
]
},
{
"error": {
"code": "Conflicting Parameters",
"message": "When 'query' is present, only the following parameters are valid: 'bbox, location, view, top'. 'addressLine' was passed"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"parameters": {
"api-version": "2023-06-01",
"addressLine": "15127 NE 24th Street Redmond WA",
"countryRegion": "US",
"AzureKey": "[subscription-key]"
},
"responses": {
"200": {
"headers": {
"Content-Type": "application/geo+json"
},
"body": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"address": {
"countryRegion": {
"name": "United States"
},
"adminDistricts": [
{
"shortName": "WA"
},
{
"shortName": "King County"
}
],
"formattedAddress": "15127 NE 24th St, Redmond, WA 98052",
"locality": "Redmond",
"postalCode": "98052",
"addressLine": "15127 NE 24th St"
},
"type": "Address",
"confidence": "Medium",
"matchCodes": [
"Good"
],
"geocodePoints": [
{
"geometry": {
"type": "Point",
"coordinates": [
-122.138681,
47.630358
]
},
"calculationMethod": "Rooftop",
"usageTypes": [
"Display"
]
},
{
"geometry": {
"type": "Point",
"coordinates": [
-122.1386787,
47.6302179
]
},
"calculationMethod": "Rooftop",
"usageTypes": [
"Route"
]
}
]
},
"geometry": {
"type": "Point",
"coordinates": [
-122.138681,
47.630358
]
},
"bbox": [
-122.14632282407,
47.626495282429325,
-122.13103917593001,
47.63422071757068
]
}
]
}
}
}
}
Loading