Skip to content

Commit fbf0006

Browse files
koyasu221bWill HuangjhendrixMSFT
authored
RouteMatrix 2024-06-01-preview (#29153)
* 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>
1 parent b77b86f commit fbf0006

15 files changed

Lines changed: 5803 additions & 3 deletions
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"api-version": "2024-06-01-preview",
4+
"AzureKey": "[subscription-key]",
5+
"directionsAsyncBatchRequestBody": {
6+
"inputBlobUrl": "https://exampleinputstorage.blob.core.windows.net/asyncbatch/directionsBatchItems.json",
7+
"outputStorageUrl": "https://exampleoutputstorage.blob.core.windows.net/",
8+
"msiClientId": "12345678-abcd-1234-efgh-12345678ijkl"
9+
}
10+
},
11+
"responses": {
12+
"202": {
13+
"headers": {
14+
"Operation-Location": "https://us.atlas.microsoft.com/asyncBatch/operations/9f8b47e2-df6e-4f12-a1ce-d5673f9b58f8?api-version=2024-04-01-preview"
15+
}
16+
}
17+
}
18+
}
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
{
2+
"parameters": {
3+
"api-version": "2024-06-01-preview",
4+
"id": "bc3f9365-3ee0-4564-aa27-825016325557"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"kind": "RouteMatrix",
10+
"type": "FeatureCollection",
11+
"features": [
12+
{
13+
"type": "Feature",
14+
"geometry": {
15+
"type": "MultiPoint",
16+
"coordinates": [
17+
[
18+
9.15049,
19+
45.458545
20+
],
21+
[
22+
11.499931,
23+
48.149853
24+
]
25+
]
26+
},
27+
"properties": {
28+
"originIndex": 0,
29+
"destinationIndex": 0,
30+
"departureTime": "2022-12-19T16:39:57+01:00",
31+
"arrivalTime": "2022-12-20T00:21:14+01:00",
32+
"distanceInMeters": 573064,
33+
"durationInSeconds": 27677,
34+
"durationTrafficInSeconds": 27677
35+
}
36+
},
37+
{
38+
"type": "Feature",
39+
"geometry": {
40+
"type": "MultiPoint",
41+
"coordinates": [
42+
[
43+
9.15049,
44+
45.458545
45+
],
46+
[
47+
11.499931,
48+
48.149853
49+
]
50+
]
51+
},
52+
"properties": {
53+
"originIndex": 0,
54+
"destinationIndex": 1,
55+
"error": {
56+
"code": "OUT_OF_REGION",
57+
"message": "Input coordinates out of region"
58+
}
59+
}
60+
},
61+
{
62+
"type": "Feature",
63+
"geometry": {
64+
"type": "MultiPoint",
65+
"coordinates": [
66+
[
67+
11.050541,
68+
45.403337
69+
],
70+
[
71+
11.499931,
72+
48.149853
73+
]
74+
]
75+
},
76+
"properties": {
77+
"originIndex": 1,
78+
"destinationIndex": 0,
79+
"departureTime": "2022-12-19T16:39:57+01:00",
80+
"arrivalTime": "2022-12-19T22:19:10+01:00",
81+
"distanceInMeters": 452488,
82+
"durationInSeconds": 20353,
83+
"durationTrafficInSeconds": 20353
84+
}
85+
},
86+
{
87+
"type": "Feature",
88+
"geometry": {
89+
"type": "MultiPoint",
90+
"coordinates": [
91+
[
92+
11.050541,
93+
45.403337
94+
],
95+
[
96+
14.538226,
97+
50.033688
98+
]
99+
]
100+
},
101+
"properties": {
102+
"originIndex": 1,
103+
"destinationIndex": 1,
104+
"error": {
105+
"code": "OUT_OF_REGION",
106+
"message": "Input coordinates out of region"
107+
}
108+
}
109+
}
110+
],
111+
"summary": {
112+
"totalCount": 4,
113+
"successfulCount": 2
114+
}
115+
}
116+
}
117+
}
118+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"api-version": "2024-06-01-preview",
4+
"id": "bc3f9365-3ee0-4564-aa27-825016325557"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"kind": "RouteMatrix",
10+
"status": "Failed",
11+
"createdDateTime": "2023-01-01T00:00:00Z",
12+
"lastActionDateTime": "2023-01-01T00:05:00Z",
13+
"error": {
14+
"code": "Service is temporarily unavailable",
15+
"message": "Please try again later."
16+
}
17+
}
18+
}
19+
}
20+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"parameters": {
3+
"api-version": "2024-06-01-preview",
4+
"id": "bc3f9365-3ee0-4564-aa27-825016325557"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"kind": "RouteMatrix",
10+
"status": "Running",
11+
"createdDateTime": "2023-01-01T00:00:00Z",
12+
"lastActionDateTime": "2023-01-01T00:05:00Z"
13+
}
14+
}
15+
}
16+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"api-version": "2024-06-01-preview",
4+
"id": "bc3f9365-3ee0-4564-aa27-825016325557"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"kind": "RouteMatrix",
10+
"status": "Succeeded",
11+
"createdDateTime": "2023-01-01T00:00:00Z",
12+
"lastActionDateTime": "2023-01-01T00:05:00Z",
13+
"result": {
14+
"resultUrl": "https://atlas.microsoft.com/route/operations/a2-aa117770-8831-49d8-b721-19a04246bf6c-0015/result?api-version=2024-06-01-preview"
15+
}
16+
}
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)