-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Publish Microsoft Maps Search 2023-06-01 #25991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 19 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 c1b8fb5
Updates readme
jsedlak-microsoft bd955b9
Updates API version in new specs and examples
jsedlak-microsoft 036834c
Update countryRegionSet to countryRegion and remove strictMatch
jsedlak-microsoft 5340bed
Update ForwardGeocodingByAddressLine.json example to use countryRegio…
jsedlak-microsoft b3e5fa0
Update description of countryRegion parameter
jsedlak-microsoft 6aefbde
Update CountryRegion parameter description
jsedlak-microsoft d5038c7
Update search.json to document default view
jsedlak-microsoft 46f5edc
Update search.json to remove supplemental terms warning
jsedlak-microsoft 17067ac
Update search.json to remove HTTP 207
jsedlak-microsoft 4e19aa6
Update ForwardGeocodingBatch.json to 200 response
jsedlak-microsoft 294c552
Update ReverseGeocodingBatch.json to 200 response
jsedlak-microsoft 39a0bca
Update ForwardGeocodingBatch.json examples
jsedlak-microsoft daa0b8a
Update ReverseGeocodingBatch.json examples
jsedlak-microsoft a358faf
Stable version of common.json
jsedlak-microsoft e326193
Use stable version of common types
jsedlak-microsoft b6f24aa
Update common.json version string
jsedlak-microsoft 0852c9b
Match coordinates parameter for geocoding. polycon, reverseGeocoding
jsedlak-microsoft 21218fa
Fix reference to coordinates
jsedlak-microsoft 6c130ba
Update countryRegion to be single string
jsedlak-microsoft f223d9d
Update example
jsedlak-microsoft 217461e
Update countryRegion to be single string
jsedlak-microsoft e2e86db
Merge branch 'jsedlak-microsoft-maps-Search-2023-06-01' of https://gi…
jsedlak-microsoft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
885 changes: 885 additions & 0 deletions
885
specification/maps/data-plane/Common/stable/2023-06-01/common.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
...ication/maps/data-plane/Search/stable/2023-06-01/examples/ForwardGeocoding.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
114 changes: 114 additions & 0 deletions
114
...on/maps/data-plane/Search/stable/2023-06-01/examples/ForwardGeocodingBatch.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
90 changes: 90 additions & 0 deletions
90
...data-plane/Search/stable/2023-06-01/examples/ForwardGeocodingByAddressLine.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| { | ||
| "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 | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.