Skip to content

Commit

Permalink
RouteMatrix 2024-06-01-preview (Azure#29153)
Browse files Browse the repository at this point in the history
* first commit

* fix

* Add operationType

* rename to pointType

* fix

* update

* Update example

* update

* update description for default value

* update description

* Remove axleCount for RouteMatrix

* Update vehicleSpec

* update description

* Update description

* remove async result

* Revert "remove async result"

This reverts commit b7b2728.

* Remove Summary

* follow azure's convention

* Remove Accept-Language for RouteMatrix

* Update retention period to 24 hours

* Add createdDateTime

* Add suppressions

* Update description

---------

Co-authored-by: Will Huang <huangwill@microsoft.com>
Co-authored-by: Joel Hendrix <jhendrix@microsoft.com>
  • Loading branch information
3 people authored Jun 4, 2024
1 parent b77b86f commit fbf0006
Show file tree
Hide file tree
Showing 15 changed files with 5,803 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"api-version": "2024-06-01-preview",
"AzureKey": "[subscription-key]",
"directionsAsyncBatchRequestBody": {
"inputBlobUrl": "https://exampleinputstorage.blob.core.windows.net/asyncbatch/directionsBatchItems.json",
"outputStorageUrl": "https://exampleoutputstorage.blob.core.windows.net/",
"msiClientId": "12345678-abcd-1234-efgh-12345678ijkl"
}
},
"responses": {
"202": {
"headers": {
"Operation-Location": "https://us.atlas.microsoft.com/asyncBatch/operations/9f8b47e2-df6e-4f12-a1ce-d5673f9b58f8?api-version=2024-04-01-preview"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"parameters": {
"api-version": "2024-06-01-preview",
"id": "bc3f9365-3ee0-4564-aa27-825016325557"
},
"responses": {
"200": {
"body": {
"kind": "RouteMatrix",
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "MultiPoint",
"coordinates": [
[
9.15049,
45.458545
],
[
11.499931,
48.149853
]
]
},
"properties": {
"originIndex": 0,
"destinationIndex": 0,
"departureTime": "2022-12-19T16:39:57+01:00",
"arrivalTime": "2022-12-20T00:21:14+01:00",
"distanceInMeters": 573064,
"durationInSeconds": 27677,
"durationTrafficInSeconds": 27677
}
},
{
"type": "Feature",
"geometry": {
"type": "MultiPoint",
"coordinates": [
[
9.15049,
45.458545
],
[
11.499931,
48.149853
]
]
},
"properties": {
"originIndex": 0,
"destinationIndex": 1,
"error": {
"code": "OUT_OF_REGION",
"message": "Input coordinates out of region"
}
}
},
{
"type": "Feature",
"geometry": {
"type": "MultiPoint",
"coordinates": [
[
11.050541,
45.403337
],
[
11.499931,
48.149853
]
]
},
"properties": {
"originIndex": 1,
"destinationIndex": 0,
"departureTime": "2022-12-19T16:39:57+01:00",
"arrivalTime": "2022-12-19T22:19:10+01:00",
"distanceInMeters": 452488,
"durationInSeconds": 20353,
"durationTrafficInSeconds": 20353
}
},
{
"type": "Feature",
"geometry": {
"type": "MultiPoint",
"coordinates": [
[
11.050541,
45.403337
],
[
14.538226,
50.033688
]
]
},
"properties": {
"originIndex": 1,
"destinationIndex": 1,
"error": {
"code": "OUT_OF_REGION",
"message": "Input coordinates out of region"
}
}
}
],
"summary": {
"totalCount": 4,
"successfulCount": 2
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"api-version": "2024-06-01-preview",
"id": "bc3f9365-3ee0-4564-aa27-825016325557"
},
"responses": {
"200": {
"body": {
"kind": "RouteMatrix",
"status": "Failed",
"createdDateTime": "2023-01-01T00:00:00Z",
"lastActionDateTime": "2023-01-01T00:05:00Z",
"error": {
"code": "Service is temporarily unavailable",
"message": "Please try again later."
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"api-version": "2024-06-01-preview",
"id": "bc3f9365-3ee0-4564-aa27-825016325557"
},
"responses": {
"200": {
"body": {
"kind": "RouteMatrix",
"status": "Running",
"createdDateTime": "2023-01-01T00:00:00Z",
"lastActionDateTime": "2023-01-01T00:05:00Z"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"api-version": "2024-06-01-preview",
"id": "bc3f9365-3ee0-4564-aa27-825016325557"
},
"responses": {
"200": {
"body": {
"kind": "RouteMatrix",
"status": "Succeeded",
"createdDateTime": "2023-01-01T00:00:00Z",
"lastActionDateTime": "2023-01-01T00:05:00Z",
"result": {
"resultUrl": "https://atlas.microsoft.com/route/operations/a2-aa117770-8831-49d8-b721-19a04246bf6c-0015/result?api-version=2024-06-01-preview"
}
}
}
}
}
Loading

0 comments on commit fbf0006

Please sign in to comment.