Skip to content

Commit d4af2fe

Browse files
koyasu221bWill HuangFarazGIS
authored
Routing Schema Update (Azure#34889)
* Drop RegionTravelSummary * Drop AdminDistrict * Rename AdminDistrictTruck to AdminDistrict * Drop regionTravelSummary under routeOutputOptions * Drop fastestavoidclosurewithouttraffic * Remove walking mode for SnapToRoads and add truck mode support * Remove hint * Drop RoadTypeEnum * Drop compassDegrees * Drop resourceId * Drop viaWaypoint feature output * Drop SubLeg * Drop regionTravelSummary under RouteOutputOptions * Drop compassDirection * Drop trafficCongestion * Drop trafficDataUsed * Remove Only supported for truck travelMode. * Update snapToRoads descriptions * Add Short support * Update to Short * SnapToRoads consecutive points must be within 6 kilometer * Update SnapToRoads example * update example * Add trafficCongestion back * Update batch examples * Update example * Add name for SnapToRoads's examples * update maxRouteCount value * drop description --------- Co-authored-by: Will Huang <[email protected]> Co-authored-by: Faraz Siddiqui <[email protected]>
1 parent 87d4522 commit d4af2fe

File tree

13 files changed

+1834
-2058
lines changed

13 files changed

+1834
-2058
lines changed

specification/maps/data-plane/Route/preview/2023-10-01-preview/examples/PostRouteDirections.json

Lines changed: 464 additions & 333 deletions
Large diffs are not rendered by default.

specification/maps/data-plane/Route/preview/2023-10-01-preview/examples/PostRouteDirectionsBatch.json

Lines changed: 109 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@
8787
"responses": {
8888
"200": {
8989
"body": {
90-
"summary": {
91-
"successfulRequests": 2,
92-
"totalRequests": 2
93-
},
9490
"batchItems": [
9591
{
9692
"type": "FeatureCollection",
@@ -102,15 +98,63 @@
10298
"coordinates": []
10399
},
104100
"properties": {
101+
"distanceInMeters": 2301,
102+
"durationInSeconds": 514,
103+
"departureTime": "2025-06-23T01:38:21+00:00",
104+
"arrivalTime": "2025-06-23T01:47:56+00:00",
105+
"durationTrafficInSeconds": 575,
106+
"trafficCongestion": "Mild",
105107
"type": "RoutePath",
106-
"resourceId": "v70,h1207959581,i0,a0,cen-US,dAMA8xD0s2wg1,y1,s1,m1,o1,t0,wWrdB7bfOR0C9UpYhjpVewA2~AJEAEzSxZiQBAADgAYsYlD4B0~N3RoIEF2ZQ2~~~~~~~~v12,w393KEp3NR0ASFhVxOpRewA2~AJEAEzQ5viQBAADgAaehWT4B0~RSBKZWZmZXJzb24gU3Q1~~~~~~~~v12,k0,n2",
107-
"distanceInMeters": 1432.9,
108-
"durationInSeconds": 524,
109-
"durationTrafficInSeconds": 554
108+
"legs": []
110109
}
111110
}
112111
],
113-
"optionalId": "4C3681A6C8AA4AC3441412763A2A25C81444DC8B"
112+
"alternativeRoutes": [
113+
{
114+
"type": "FeatureCollection",
115+
"features": [
116+
{
117+
"type": "Feature",
118+
"geometry": {
119+
"type": "MultiLineString",
120+
"coordinates": []
121+
},
122+
"properties": {
123+
"distanceInMeters": 2297,
124+
"durationInSeconds": 586,
125+
"departureTime": "2025-06-23T01:38:21+00:00",
126+
"arrivalTime": "2025-06-23T01:49:38+00:00",
127+
"durationTrafficInSeconds": 677,
128+
"trafficCongestion": "Mild",
129+
"type": "RoutePath",
130+
"legs": []
131+
}
132+
}
133+
]
134+
},
135+
{
136+
"type": "FeatureCollection",
137+
"features": [
138+
{
139+
"type": "Feature",
140+
"geometry": {
141+
"type": "MultiLineString",
142+
"coordinates": []
143+
},
144+
"properties": {
145+
"distanceInMeters": 4253,
146+
"durationInSeconds": 621,
147+
"departureTime": "2025-06-23T01:38:21+00:00",
148+
"arrivalTime": "2025-06-23T01:50:50+00:00",
149+
"durationTrafficInSeconds": 749,
150+
"trafficCongestion": "Medium",
151+
"type": "RoutePath",
152+
"legs": []
153+
}
154+
}
155+
]
156+
}
157+
]
114158
},
115159
{
116160
"type": "FeatureCollection",
@@ -122,53 +166,69 @@
122166
"coordinates": []
123167
},
124168
"properties": {
169+
"distanceInMeters": 2301,
170+
"durationInSeconds": 514,
171+
"departureTime": "2025-06-23T01:38:21+00:00",
172+
"arrivalTime": "2025-06-23T01:47:56+00:00",
173+
"durationTrafficInSeconds": 575,
174+
"trafficCongestion": "Mild",
125175
"type": "RoutePath",
126-
"resourceId": "v70,h1207959581,i0,a0,cen-US,dAMA8xD0s2wg1,y1,s1,m1,o1,t0,wWrdB7bfOR0C9UpYhjpVewA2~AJEAEzSxZiQBAADgAYsYlD4B0~N3RoIEF2ZQ2~~~~~~~~v12,w393KEp3NR0ASFhVxOpRewA2~AJEAEzQ5viQBAADgAaehWT4B0~RSBKZWZmZXJzb24gU3Q1~~~~~~~~v12,k0,n2",
127-
"distanceInMeters": 1432.9,
128-
"durationInSeconds": 524,
129-
"durationTrafficInSeconds": 554
176+
"legs": []
130177
}
131178
}
132179
],
133-
"optionalId": "4C3681A6C8AA4AC3441412763A2A25C81444DC8B"
134-
}
135-
]
136-
}
137-
},
138-
"207": {
139-
"body": {
140-
"summary": {
141-
"successfulRequests": 1,
142-
"totalRequests": 2
143-
},
144-
"batchItems": [
145-
{
146-
"type": "FeatureCollection",
147-
"features": [
180+
"alternativeRoutes": [
148181
{
149-
"type": "Feature",
150-
"geometry": {
151-
"type": "MultiLineString",
152-
"coordinates": []
153-
},
154-
"properties": {
155-
"type": "RoutePath",
156-
"resourceId": "v70,h1207959581,i0,a0,cen-US,dAMA8xD0s2wg1,y1,s1,m1,o1,t0,wWrdB7bfOR0C9UpYhjpVewA2~AJEAEzSxZiQBAADgAYsYlD4B0~N3RoIEF2ZQ2~~~~~~~~v12,w393KEp3NR0ASFhVxOpRewA2~AJEAEzQ5viQBAADgAaehWT4B0~RSBKZWZmZXJzb24gU3Q1~~~~~~~~v12,k0,n2",
157-
"distanceInMeters": 1432.9,
158-
"durationInSeconds": 524,
159-
"durationTrafficInSeconds": 554
160-
}
182+
"type": "FeatureCollection",
183+
"features": [
184+
{
185+
"type": "Feature",
186+
"geometry": {
187+
"type": "MultiLineString",
188+
"coordinates": []
189+
},
190+
"properties": {
191+
"distanceInMeters": 2297,
192+
"durationInSeconds": 586,
193+
"departureTime": "2025-06-23T01:38:21+00:00",
194+
"arrivalTime": "2025-06-23T01:49:38+00:00",
195+
"durationTrafficInSeconds": 677,
196+
"trafficCongestion": "Mild",
197+
"type": "RoutePath",
198+
"legs": []
199+
}
200+
}
201+
]
202+
},
203+
{
204+
"type": "FeatureCollection",
205+
"features": [
206+
{
207+
"type": "Feature",
208+
"geometry": {
209+
"type": "MultiLineString",
210+
"coordinates": []
211+
},
212+
"properties": {
213+
"distanceInMeters": 4253,
214+
"durationInSeconds": 621,
215+
"departureTime": "2025-06-23T01:38:21+00:00",
216+
"arrivalTime": "2025-06-23T01:50:50+00:00",
217+
"durationTrafficInSeconds": 749,
218+
"trafficCongestion": "Medium",
219+
"type": "RoutePath",
220+
"legs": []
221+
}
222+
}
223+
]
161224
}
162-
],
163-
"optionalId": "4C3681A6C8AA4AC3441412763A2A25C81444DC8B"
164-
},
165-
{
166-
"error": {
167-
"code": "400 BadRequest",
168-
"message": "Invalid request"
169-
}
225+
]
170226
}
171-
]
227+
],
228+
"summary": {
229+
"successfulRequests": 2,
230+
"totalRequests": 2
231+
}
172232
}
173233
}
174234
}

0 commit comments

Comments
 (0)