@azure-rest/maps-route 1.0.0-beta.3 → 1.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/LICENSE +4 -4
  2. package/README.md +81 -67
  3. package/dist/browser/generated/clientDefinitions.d.ts +617 -0
  4. package/dist/browser/generated/clientDefinitions.d.ts.map +1 -0
  5. package/dist/browser/generated/clientDefinitions.js +4 -0
  6. package/dist/browser/generated/clientDefinitions.js.map +1 -0
  7. package/dist/browser/generated/index.d.ts +12 -0
  8. package/dist/browser/generated/index.d.ts.map +1 -0
  9. package/dist/browser/generated/index.js +14 -0
  10. package/dist/browser/generated/index.js.map +1 -0
  11. package/dist/browser/generated/isUnexpected.d.ts +7 -0
  12. package/dist/browser/generated/isUnexpected.d.ts.map +1 -0
  13. package/dist/browser/generated/isUnexpected.js +79 -0
  14. package/dist/browser/generated/isUnexpected.js.map +1 -0
  15. package/dist/browser/generated/logger.d.ts +2 -0
  16. package/dist/browser/generated/logger.d.ts.map +1 -0
  17. package/dist/browser/generated/logger.js +5 -0
  18. package/dist/browser/generated/logger.js.map +1 -0
  19. package/dist/browser/generated/mapsRouteClient.d.ts +15 -0
  20. package/dist/browser/generated/mapsRouteClient.d.ts.map +1 -0
  21. package/dist/browser/generated/mapsRouteClient.js +42 -0
  22. package/dist/browser/generated/mapsRouteClient.js.map +1 -0
  23. package/dist/browser/generated/models.d.ts +130 -0
  24. package/dist/browser/generated/models.d.ts.map +1 -0
  25. package/dist/browser/generated/models.js +4 -0
  26. package/dist/browser/generated/models.js.map +1 -0
  27. package/dist/browser/generated/outputModels.d.ts +286 -0
  28. package/dist/browser/generated/outputModels.d.ts.map +1 -0
  29. package/dist/browser/generated/outputModels.js +4 -0
  30. package/dist/browser/generated/outputModels.js.map +1 -0
  31. package/dist/browser/generated/parameters.d.ts +937 -0
  32. package/dist/browser/generated/parameters.d.ts.map +1 -0
  33. package/dist/browser/generated/parameters.js +4 -0
  34. package/dist/browser/generated/parameters.js.map +1 -0
  35. package/dist/browser/generated/pollingHelper.d.ts +76 -0
  36. package/dist/browser/generated/pollingHelper.d.ts.map +1 -0
  37. package/dist/browser/generated/pollingHelper.js +105 -0
  38. package/dist/browser/generated/pollingHelper.js.map +1 -0
  39. package/dist/browser/generated/responses.d.ts +1409 -0
  40. package/dist/browser/generated/responses.d.ts.map +1 -0
  41. package/dist/browser/generated/responses.js +4 -0
  42. package/dist/browser/generated/responses.js.map +1 -0
  43. package/dist/browser/generated/serializeHelper.d.ts +2 -0
  44. package/dist/browser/generated/serializeHelper.d.ts.map +1 -0
  45. package/dist/browser/generated/serializeHelper.js +13 -0
  46. package/dist/browser/generated/serializeHelper.js.map +1 -0
  47. package/dist/browser/helpers.d.ts +18 -0
  48. package/dist/browser/helpers.d.ts.map +1 -0
  49. package/{dist-esm/src → dist/browser}/helpers.js +1 -1
  50. package/dist/browser/helpers.js.map +1 -0
  51. package/dist/browser/index.d.ts +5 -0
  52. package/dist/browser/index.d.ts.map +1 -0
  53. package/dist/browser/index.js +7 -0
  54. package/dist/browser/index.js.map +1 -0
  55. package/dist/browser/mapsRoute.d.ts +53 -0
  56. package/dist/browser/mapsRoute.d.ts.map +1 -0
  57. package/{dist-esm/src → dist/browser}/mapsRoute.js +5 -5
  58. package/dist/browser/mapsRoute.js.map +1 -0
  59. package/dist/browser/package.json +3 -0
  60. package/dist/commonjs/generated/clientDefinitions.d.ts +617 -0
  61. package/dist/commonjs/generated/clientDefinitions.d.ts.map +1 -0
  62. package/dist/commonjs/generated/clientDefinitions.js +5 -0
  63. package/dist/commonjs/generated/clientDefinitions.js.map +1 -0
  64. package/dist/commonjs/generated/index.d.ts +12 -0
  65. package/dist/commonjs/generated/index.d.ts.map +1 -0
  66. package/dist/commonjs/generated/index.js +17 -0
  67. package/dist/commonjs/generated/index.js.map +1 -0
  68. package/dist/commonjs/generated/isUnexpected.d.ts +7 -0
  69. package/dist/commonjs/generated/isUnexpected.d.ts.map +1 -0
  70. package/dist/commonjs/generated/isUnexpected.js +82 -0
  71. package/dist/commonjs/generated/isUnexpected.js.map +1 -0
  72. package/dist/commonjs/generated/logger.d.ts +2 -0
  73. package/dist/commonjs/generated/logger.d.ts.map +1 -0
  74. package/dist/commonjs/generated/logger.js +8 -0
  75. package/dist/commonjs/generated/logger.js.map +1 -0
  76. package/dist/commonjs/generated/mapsRouteClient.d.ts +15 -0
  77. package/dist/commonjs/generated/mapsRouteClient.d.ts.map +1 -0
  78. package/dist/commonjs/generated/mapsRouteClient.js +45 -0
  79. package/dist/commonjs/generated/mapsRouteClient.js.map +1 -0
  80. package/dist/commonjs/generated/models.d.ts +130 -0
  81. package/dist/commonjs/generated/models.d.ts.map +1 -0
  82. package/dist/commonjs/generated/models.js +5 -0
  83. package/dist/commonjs/generated/models.js.map +1 -0
  84. package/dist/commonjs/generated/outputModels.d.ts +286 -0
  85. package/dist/commonjs/generated/outputModels.d.ts.map +1 -0
  86. package/dist/commonjs/generated/outputModels.js +5 -0
  87. package/dist/commonjs/generated/outputModels.js.map +1 -0
  88. package/dist/commonjs/generated/parameters.d.ts +937 -0
  89. package/dist/commonjs/generated/parameters.d.ts.map +1 -0
  90. package/dist/commonjs/generated/parameters.js +5 -0
  91. package/dist/commonjs/generated/parameters.js.map +1 -0
  92. package/dist/commonjs/generated/pollingHelper.d.ts +76 -0
  93. package/dist/commonjs/generated/pollingHelper.d.ts.map +1 -0
  94. package/dist/commonjs/generated/pollingHelper.js +108 -0
  95. package/dist/commonjs/generated/pollingHelper.js.map +1 -0
  96. package/dist/commonjs/generated/responses.d.ts +1409 -0
  97. package/dist/commonjs/generated/responses.d.ts.map +1 -0
  98. package/dist/commonjs/generated/responses.js +5 -0
  99. package/dist/commonjs/generated/responses.js.map +1 -0
  100. package/dist/commonjs/generated/serializeHelper.d.ts +2 -0
  101. package/dist/commonjs/generated/serializeHelper.d.ts.map +1 -0
  102. package/dist/commonjs/generated/serializeHelper.js +16 -0
  103. package/dist/commonjs/generated/serializeHelper.js.map +1 -0
  104. package/dist/commonjs/helpers.d.ts +18 -0
  105. package/dist/commonjs/helpers.d.ts.map +1 -0
  106. package/dist/commonjs/helpers.js +47 -0
  107. package/dist/commonjs/helpers.js.map +1 -0
  108. package/dist/commonjs/index.d.ts +5 -0
  109. package/dist/commonjs/index.d.ts.map +1 -0
  110. package/dist/commonjs/index.js +10 -0
  111. package/dist/commonjs/index.js.map +1 -0
  112. package/dist/commonjs/mapsRoute.d.ts +53 -0
  113. package/dist/commonjs/mapsRoute.d.ts.map +1 -0
  114. package/dist/commonjs/mapsRoute.js +44 -0
  115. package/dist/commonjs/mapsRoute.js.map +1 -0
  116. package/dist/commonjs/package.json +3 -0
  117. package/dist/commonjs/tsdoc-metadata.json +11 -0
  118. package/dist/esm/generated/clientDefinitions.d.ts +617 -0
  119. package/dist/esm/generated/clientDefinitions.d.ts.map +1 -0
  120. package/dist/esm/generated/clientDefinitions.js +4 -0
  121. package/dist/esm/generated/clientDefinitions.js.map +1 -0
  122. package/dist/esm/generated/index.d.ts +12 -0
  123. package/dist/esm/generated/index.d.ts.map +1 -0
  124. package/dist/esm/generated/index.js +14 -0
  125. package/dist/esm/generated/index.js.map +1 -0
  126. package/dist/esm/generated/isUnexpected.d.ts +7 -0
  127. package/dist/esm/generated/isUnexpected.d.ts.map +1 -0
  128. package/dist/esm/generated/isUnexpected.js +79 -0
  129. package/dist/esm/generated/isUnexpected.js.map +1 -0
  130. package/dist/esm/generated/logger.d.ts +2 -0
  131. package/dist/esm/generated/logger.d.ts.map +1 -0
  132. package/dist/esm/generated/logger.js +5 -0
  133. package/dist/esm/generated/logger.js.map +1 -0
  134. package/dist/esm/generated/mapsRouteClient.d.ts +15 -0
  135. package/dist/esm/generated/mapsRouteClient.d.ts.map +1 -0
  136. package/dist/esm/generated/mapsRouteClient.js +42 -0
  137. package/dist/esm/generated/mapsRouteClient.js.map +1 -0
  138. package/dist/esm/generated/models.d.ts +130 -0
  139. package/dist/esm/generated/models.d.ts.map +1 -0
  140. package/dist/esm/generated/models.js +4 -0
  141. package/dist/esm/generated/models.js.map +1 -0
  142. package/dist/esm/generated/outputModels.d.ts +286 -0
  143. package/dist/esm/generated/outputModels.d.ts.map +1 -0
  144. package/dist/esm/generated/outputModels.js +4 -0
  145. package/dist/esm/generated/outputModels.js.map +1 -0
  146. package/dist/esm/generated/parameters.d.ts +937 -0
  147. package/dist/esm/generated/parameters.d.ts.map +1 -0
  148. package/dist/esm/generated/parameters.js +4 -0
  149. package/dist/esm/generated/parameters.js.map +1 -0
  150. package/dist/esm/generated/pollingHelper.d.ts +76 -0
  151. package/dist/esm/generated/pollingHelper.d.ts.map +1 -0
  152. package/dist/esm/generated/pollingHelper.js +105 -0
  153. package/dist/esm/generated/pollingHelper.js.map +1 -0
  154. package/dist/esm/generated/responses.d.ts +1409 -0
  155. package/dist/esm/generated/responses.d.ts.map +1 -0
  156. package/dist/esm/generated/responses.js +4 -0
  157. package/dist/esm/generated/responses.js.map +1 -0
  158. package/dist/esm/generated/serializeHelper.d.ts +2 -0
  159. package/dist/esm/generated/serializeHelper.d.ts.map +1 -0
  160. package/dist/esm/generated/serializeHelper.js +13 -0
  161. package/dist/esm/generated/serializeHelper.js.map +1 -0
  162. package/dist/esm/helpers.d.ts +18 -0
  163. package/dist/esm/helpers.d.ts.map +1 -0
  164. package/dist/esm/helpers.js +43 -0
  165. package/dist/esm/helpers.js.map +1 -0
  166. package/dist/esm/index.d.ts +5 -0
  167. package/dist/esm/index.d.ts.map +1 -0
  168. package/dist/esm/index.js +7 -0
  169. package/dist/esm/index.js.map +1 -0
  170. package/dist/esm/mapsRoute.d.ts +53 -0
  171. package/dist/esm/mapsRoute.d.ts.map +1 -0
  172. package/dist/esm/mapsRoute.js +40 -0
  173. package/dist/esm/mapsRoute.js.map +1 -0
  174. package/dist/esm/package.json +3 -0
  175. package/dist/react-native/generated/clientDefinitions.d.ts +617 -0
  176. package/dist/react-native/generated/clientDefinitions.d.ts.map +1 -0
  177. package/dist/react-native/generated/clientDefinitions.js +4 -0
  178. package/dist/react-native/generated/clientDefinitions.js.map +1 -0
  179. package/dist/react-native/generated/index.d.ts +12 -0
  180. package/dist/react-native/generated/index.d.ts.map +1 -0
  181. package/dist/react-native/generated/index.js +14 -0
  182. package/dist/react-native/generated/index.js.map +1 -0
  183. package/dist/react-native/generated/isUnexpected.d.ts +7 -0
  184. package/dist/react-native/generated/isUnexpected.d.ts.map +1 -0
  185. package/dist/react-native/generated/isUnexpected.js +79 -0
  186. package/dist/react-native/generated/isUnexpected.js.map +1 -0
  187. package/dist/react-native/generated/logger.d.ts +2 -0
  188. package/dist/react-native/generated/logger.d.ts.map +1 -0
  189. package/dist/react-native/generated/logger.js +5 -0
  190. package/dist/react-native/generated/logger.js.map +1 -0
  191. package/dist/react-native/generated/mapsRouteClient.d.ts +15 -0
  192. package/dist/react-native/generated/mapsRouteClient.d.ts.map +1 -0
  193. package/dist/react-native/generated/mapsRouteClient.js +42 -0
  194. package/dist/react-native/generated/mapsRouteClient.js.map +1 -0
  195. package/dist/react-native/generated/models.d.ts +130 -0
  196. package/dist/react-native/generated/models.d.ts.map +1 -0
  197. package/dist/react-native/generated/models.js +4 -0
  198. package/dist/react-native/generated/models.js.map +1 -0
  199. package/dist/react-native/generated/outputModels.d.ts +286 -0
  200. package/dist/react-native/generated/outputModels.d.ts.map +1 -0
  201. package/dist/react-native/generated/outputModels.js +4 -0
  202. package/dist/react-native/generated/outputModels.js.map +1 -0
  203. package/dist/react-native/generated/parameters.d.ts +937 -0
  204. package/dist/react-native/generated/parameters.d.ts.map +1 -0
  205. package/dist/react-native/generated/parameters.js +4 -0
  206. package/dist/react-native/generated/parameters.js.map +1 -0
  207. package/dist/react-native/generated/pollingHelper.d.ts +76 -0
  208. package/dist/react-native/generated/pollingHelper.d.ts.map +1 -0
  209. package/dist/react-native/generated/pollingHelper.js +105 -0
  210. package/dist/react-native/generated/pollingHelper.js.map +1 -0
  211. package/dist/react-native/generated/responses.d.ts +1409 -0
  212. package/dist/react-native/generated/responses.d.ts.map +1 -0
  213. package/dist/react-native/generated/responses.js +4 -0
  214. package/dist/react-native/generated/responses.js.map +1 -0
  215. package/dist/react-native/generated/serializeHelper.d.ts +2 -0
  216. package/dist/react-native/generated/serializeHelper.d.ts.map +1 -0
  217. package/dist/react-native/generated/serializeHelper.js +13 -0
  218. package/dist/react-native/generated/serializeHelper.js.map +1 -0
  219. package/dist/react-native/helpers.d.ts +18 -0
  220. package/dist/react-native/helpers.d.ts.map +1 -0
  221. package/dist/react-native/helpers.js +43 -0
  222. package/dist/react-native/helpers.js.map +1 -0
  223. package/dist/react-native/index.d.ts +5 -0
  224. package/dist/react-native/index.d.ts.map +1 -0
  225. package/dist/react-native/index.js +7 -0
  226. package/dist/react-native/index.js.map +1 -0
  227. package/dist/react-native/mapsRoute.d.ts +53 -0
  228. package/dist/react-native/mapsRoute.d.ts.map +1 -0
  229. package/dist/react-native/mapsRoute.js +40 -0
  230. package/dist/react-native/mapsRoute.js.map +1 -0
  231. package/dist/react-native/package.json +3 -0
  232. package/package.json +80 -63
  233. package/dist/index.js +0 -257
  234. package/dist/index.js.map +0 -1
  235. package/dist-esm/src/generated/clientDefinitions.js +0 -4
  236. package/dist-esm/src/generated/clientDefinitions.js.map +0 -1
  237. package/dist-esm/src/generated/index.js +0 -13
  238. package/dist-esm/src/generated/index.js.map +0 -1
  239. package/dist-esm/src/generated/isUnexpected.js +0 -76
  240. package/dist-esm/src/generated/isUnexpected.js.map +0 -1
  241. package/dist-esm/src/generated/mapsRouteClient.js +0 -30
  242. package/dist-esm/src/generated/mapsRouteClient.js.map +0 -1
  243. package/dist-esm/src/generated/models.js +0 -4
  244. package/dist-esm/src/generated/models.js.map +0 -1
  245. package/dist-esm/src/generated/outputModels.js +0 -4
  246. package/dist-esm/src/generated/outputModels.js.map +0 -1
  247. package/dist-esm/src/generated/parameters.js +0 -4
  248. package/dist-esm/src/generated/parameters.js.map +0 -1
  249. package/dist-esm/src/generated/pollingHelper.js +0 -55
  250. package/dist-esm/src/generated/pollingHelper.js.map +0 -1
  251. package/dist-esm/src/generated/responses.js +0 -4
  252. package/dist-esm/src/generated/responses.js.map +0 -1
  253. package/dist-esm/src/helpers.js.map +0 -1
  254. package/dist-esm/src/index.js +0 -7
  255. package/dist-esm/src/index.js.map +0 -1
  256. package/dist-esm/src/mapsRoute.js.map +0 -1
  257. package/review/maps-route.api.md +0 -911
  258. package/types/maps-route-rest.d.ts +0 -3431
@@ -0,0 +1,1409 @@
1
+ import { RawHttpHeaders } from "@azure/core-rest-pipeline";
2
+ import { HttpResponse } from "@azure-rest/core-client";
3
+ import { RouteMatrixResultOutput, ErrorResponseOutput, RouteDirectionsOutput, RouteRangeResultOutput, RouteDirectionsBatchResultOutput } from "./outputModels.js";
4
+ /**
5
+ *
6
+ * The `Post Route Matrix` API is an HTTP `POST` request that allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) request. To make a synchronous (sync) request, see [Post Route Matrix Sync](/rest/api/maps/route/post-route-matrix-sync). For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API.
7
+ *
8
+ *
9
+ * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API.
10
+ *
11
+ *
12
+ * The maximum size of a matrix for async request is **700** and for sync request it's **100** (the number of origins multiplied by the number of destinations).
13
+ *
14
+ * > [!NOTE]
15
+ * > All origins and destinations should be contained in an axis-aligned 400 km x 400 km bounding box. Otherwise some matrix cells will be resolved as OUT_OF_REGION.
16
+ *
17
+ *
18
+ *
19
+ * ### Submit Synchronous Route Matrix Request
20
+ * If your scenario requires synchronous requests and the maximum size of the matrix is less than or equal to 100, you might want to make synchronous request. The maximum size of a matrix for this API is **100** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 10x10, 6x8, 9x8 (it does not need to be square).
21
+ *
22
+ * ```
23
+ * POST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
24
+ * ```
25
+ *
26
+ * ### Submit Asynchronous Route Matrix Request
27
+ * The Asynchronous API is appropriate for processing big volumes of relatively complex routing requests. When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available. If `waitForResults` parameter in the request is set to true, user will get a 200 response if the request is finished under 120 seconds.
28
+ *
29
+ *
30
+ * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square).
31
+ *
32
+ *
33
+ * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period.
34
+ *
35
+ *
36
+ *
37
+ *
38
+ * ```
39
+ * POST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
40
+ * ```
41
+ *
42
+ * Here's a typical sequence of asynchronous operations:
43
+ * 1. Client sends a Route Matrix POST request to Azure Maps
44
+ *
45
+ * 2. The server will respond with one of the following:
46
+ *
47
+ * > HTTP `202 Accepted` - Route Matrix request has been accepted.
48
+ *
49
+ * > HTTP `Error` - There was an error processing your Route Matrix request. This could either be a 400 Bad Request or any other Error status code.
50
+ *
51
+ *
52
+ * 3. If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following:
53
+ *
54
+ * ```
55
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
56
+ * ```
57
+ *
58
+ *
59
+ * 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
60
+ *
61
+ * ### Download Sync Results
62
+ * When you make a POST request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later.
63
+ *
64
+ * ### Download Async Results
65
+ * When a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following:
66
+ * ```
67
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
68
+ * ```
69
+ *
70
+ * The URL provided by the location header will return the following responses when a `GET` request is issued.
71
+ *
72
+ * > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
73
+ *
74
+ * > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
75
+ */
76
+ export interface RouteRequestRouteMatrix200Response extends HttpResponse {
77
+ status: "200";
78
+ body: RouteMatrixResultOutput;
79
+ }
80
+ export interface RouteRequestRouteMatrix202Headers {
81
+ /** New URL to check for the results of the long-running operation. */
82
+ location?: string;
83
+ }
84
+ /**
85
+ *
86
+ * The `Post Route Matrix` API is an HTTP `POST` request that allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) request. To make a synchronous (sync) request, see [Post Route Matrix Sync](/rest/api/maps/route/post-route-matrix-sync). For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API.
87
+ *
88
+ *
89
+ * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API.
90
+ *
91
+ *
92
+ * The maximum size of a matrix for async request is **700** and for sync request it's **100** (the number of origins multiplied by the number of destinations).
93
+ *
94
+ * > [!NOTE]
95
+ * > All origins and destinations should be contained in an axis-aligned 400 km x 400 km bounding box. Otherwise some matrix cells will be resolved as OUT_OF_REGION.
96
+ *
97
+ *
98
+ *
99
+ * ### Submit Synchronous Route Matrix Request
100
+ * If your scenario requires synchronous requests and the maximum size of the matrix is less than or equal to 100, you might want to make synchronous request. The maximum size of a matrix for this API is **100** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 10x10, 6x8, 9x8 (it does not need to be square).
101
+ *
102
+ * ```
103
+ * POST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
104
+ * ```
105
+ *
106
+ * ### Submit Asynchronous Route Matrix Request
107
+ * The Asynchronous API is appropriate for processing big volumes of relatively complex routing requests. When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available. If `waitForResults` parameter in the request is set to true, user will get a 200 response if the request is finished under 120 seconds.
108
+ *
109
+ *
110
+ * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square).
111
+ *
112
+ *
113
+ * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period.
114
+ *
115
+ *
116
+ *
117
+ *
118
+ * ```
119
+ * POST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
120
+ * ```
121
+ *
122
+ * Here's a typical sequence of asynchronous operations:
123
+ * 1. Client sends a Route Matrix POST request to Azure Maps
124
+ *
125
+ * 2. The server will respond with one of the following:
126
+ *
127
+ * > HTTP `202 Accepted` - Route Matrix request has been accepted.
128
+ *
129
+ * > HTTP `Error` - There was an error processing your Route Matrix request. This could either be a 400 Bad Request or any other Error status code.
130
+ *
131
+ *
132
+ * 3. If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following:
133
+ *
134
+ * ```
135
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
136
+ * ```
137
+ *
138
+ *
139
+ * 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
140
+ *
141
+ * ### Download Sync Results
142
+ * When you make a POST request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later.
143
+ *
144
+ * ### Download Async Results
145
+ * When a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following:
146
+ * ```
147
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
148
+ * ```
149
+ *
150
+ * The URL provided by the location header will return the following responses when a `GET` request is issued.
151
+ *
152
+ * > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
153
+ *
154
+ * > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
155
+ */
156
+ export interface RouteRequestRouteMatrix202Response extends HttpResponse {
157
+ status: "202";
158
+ headers: RawHttpHeaders & RouteRequestRouteMatrix202Headers;
159
+ }
160
+ /**
161
+ *
162
+ * The `Get Route Matrix` API is an HTTP `GET` request that computes the travel time and distance for all possible pairs in a list of origins and destinations. Unlike the [Get Route Directions](/rest/api/maps/route/get-route-directions) API, which provide detailed route instructions, this API focuses on efficiency by giving you the cost (travel time and distance) of routing from each origin to every destination. For more information, see [Best practices for Azure Maps Route service](/azure/azure-maps/how-to-use-best-practices-for-routing).
163
+ *
164
+ * For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API.
165
+ *
166
+ *
167
+ * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API.
168
+ *
169
+ *
170
+ * The maximum size of a matrix for async request is **700** and for sync request it's **100** (the number of origins multiplied by the number of destinations).
171
+ *
172
+ *
173
+ *
174
+ * ### Submit Synchronous Route Matrix Request
175
+ * If your scenario requires synchronous requests and the maximum size of the matrix is less than or equal to 100, you might want to make synchronous request. The maximum size of a matrix for this API is **100** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 10x10, 6x8, 9x8 (it does not need to be square).
176
+ *
177
+ * ```
178
+ * GET https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
179
+ * ```
180
+ *
181
+ * ### Submit Asynchronous Route Matrix Request
182
+ * The Asynchronous API is appropriate for processing big volumes of relatively complex routing requests. When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available. If `waitForResults` parameter in the request is set to true, user will get a 200 response if the request is finished under 120 seconds.
183
+ *
184
+ *
185
+ * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square).
186
+ *
187
+ *
188
+ * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period.
189
+ *
190
+ *
191
+ *
192
+ *
193
+ * ```
194
+ * GET https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
195
+ * ```
196
+ *
197
+ * Here's a typical sequence of asynchronous operations:
198
+ * 1. Client sends a Route Matrix GET request to Azure Maps
199
+ *
200
+ * 2. The server will respond with one of the following:
201
+ *
202
+ * > HTTP `202 Accepted` - Route Matrix request has been accepted.
203
+ *
204
+ * > HTTP `Error` - There was an error processing your Route Matrix request. This could either be a 400 Bad Request or any other Error status code.
205
+ *
206
+ *
207
+ * 3. If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following:
208
+ *
209
+ * ```
210
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
211
+ * ```
212
+ *
213
+ *
214
+ * 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
215
+ *
216
+ * ### Download Sync Results
217
+ * When you make a GET request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later.
218
+ *
219
+ * ### Download Async Results
220
+ * When a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following:
221
+ * ```
222
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
223
+ * ```
224
+ *
225
+ * The URL provided by the location header will return the following responses when a `GET` request is issued.
226
+ *
227
+ * > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
228
+ *
229
+ * > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
230
+ */
231
+ export interface RouteGetRouteMatrix200Response extends HttpResponse {
232
+ status: "200";
233
+ body: RouteMatrixResultOutput;
234
+ }
235
+ export interface RouteGetRouteMatrix202Headers {
236
+ /** New URL to check for the results of the long-running operation. */
237
+ location?: string;
238
+ }
239
+ /**
240
+ *
241
+ * The `Get Route Matrix` API is an HTTP `GET` request that computes the travel time and distance for all possible pairs in a list of origins and destinations. Unlike the [Get Route Directions](/rest/api/maps/route/get-route-directions) API, which provide detailed route instructions, this API focuses on efficiency by giving you the cost (travel time and distance) of routing from each origin to every destination. For more information, see [Best practices for Azure Maps Route service](/azure/azure-maps/how-to-use-best-practices-for-routing).
242
+ *
243
+ * For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API.
244
+ *
245
+ *
246
+ * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API.
247
+ *
248
+ *
249
+ * The maximum size of a matrix for async request is **700** and for sync request it's **100** (the number of origins multiplied by the number of destinations).
250
+ *
251
+ *
252
+ *
253
+ * ### Submit Synchronous Route Matrix Request
254
+ * If your scenario requires synchronous requests and the maximum size of the matrix is less than or equal to 100, you might want to make synchronous request. The maximum size of a matrix for this API is **100** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 10x10, 6x8, 9x8 (it does not need to be square).
255
+ *
256
+ * ```
257
+ * GET https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
258
+ * ```
259
+ *
260
+ * ### Submit Asynchronous Route Matrix Request
261
+ * The Asynchronous API is appropriate for processing big volumes of relatively complex routing requests. When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available. If `waitForResults` parameter in the request is set to true, user will get a 200 response if the request is finished under 120 seconds.
262
+ *
263
+ *
264
+ * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square).
265
+ *
266
+ *
267
+ * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period.
268
+ *
269
+ *
270
+ *
271
+ *
272
+ * ```
273
+ * GET https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
274
+ * ```
275
+ *
276
+ * Here's a typical sequence of asynchronous operations:
277
+ * 1. Client sends a Route Matrix GET request to Azure Maps
278
+ *
279
+ * 2. The server will respond with one of the following:
280
+ *
281
+ * > HTTP `202 Accepted` - Route Matrix request has been accepted.
282
+ *
283
+ * > HTTP `Error` - There was an error processing your Route Matrix request. This could either be a 400 Bad Request or any other Error status code.
284
+ *
285
+ *
286
+ * 3. If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following:
287
+ *
288
+ * ```
289
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
290
+ * ```
291
+ *
292
+ *
293
+ * 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
294
+ *
295
+ * ### Download Sync Results
296
+ * When you make a GET request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later.
297
+ *
298
+ * ### Download Async Results
299
+ * When a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following:
300
+ * ```
301
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
302
+ * ```
303
+ *
304
+ * The URL provided by the location header will return the following responses when a `GET` request is issued.
305
+ *
306
+ * > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
307
+ *
308
+ * > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
309
+ */
310
+ export interface RouteGetRouteMatrix202Response extends HttpResponse {
311
+ status: "202";
312
+ headers: RawHttpHeaders & RouteGetRouteMatrix202Headers;
313
+ }
314
+ /**
315
+ *
316
+ * The `Post Route Matrix Sync` API is an HTTP `POST` request that allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using a single synchronous (sync) request. To make an asynchronous (async) request, see [Post Route Matrix](/rest/api/maps/route/post-route-matrix). For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API.
317
+ *
318
+ *
319
+ * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API.
320
+ *
321
+ *
322
+ * The maximum size of a matrix for async request is **700** and for sync request it's **100** (the number of origins multiplied by the number of destinations).
323
+ *
324
+ *
325
+ *
326
+ * ### Submit Synchronous Route Matrix Request
327
+ * If your scenario requires synchronous requests and the maximum size of the matrix is less than or equal to 100, you might want to make synchronous request. The maximum size of a matrix for this API is **100** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 10x10, 6x8, 9x8 (it does not need to be square).
328
+ *
329
+ * ```
330
+ * POST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
331
+ * ```
332
+ *
333
+ * ### Submit Asynchronous Route Matrix Request
334
+ * The Asynchronous API is appropriate for processing big volumes of relatively complex routing requests. When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available. If `waitForResults` parameter in the request is set to true, user will get a 200 response if the request is finished under 120 seconds.
335
+ *
336
+ *
337
+ * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square).
338
+ *
339
+ *
340
+ * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period.
341
+ *
342
+ *
343
+ *
344
+ *
345
+ * ```
346
+ * POST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
347
+ * ```
348
+ *
349
+ * Here's a typical sequence of asynchronous operations:
350
+ * 1. Client sends a Route Matrix POST request to Azure Maps
351
+ *
352
+ * 2. The server will respond with one of the following:
353
+ *
354
+ * > HTTP `202 Accepted` - Route Matrix request has been accepted.
355
+ *
356
+ * > HTTP `Error` - There was an error processing your Route Matrix request. This could either be a 400 Bad Request or any other Error status code.
357
+ *
358
+ *
359
+ * 3. If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following:
360
+ *
361
+ * ```
362
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
363
+ * ```
364
+ *
365
+ *
366
+ * 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
367
+ *
368
+ * ### Download Sync Results
369
+ * When you make a POST request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later.
370
+ *
371
+ * ### Download Async Results
372
+ * When a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following:
373
+ * ```
374
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
375
+ * ```
376
+ *
377
+ * The URL provided by the location header will return the following responses when a `GET` request is issued.
378
+ *
379
+ * > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
380
+ *
381
+ * > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
382
+ */
383
+ export interface RouteRequestRouteMatrixSync200Response extends HttpResponse {
384
+ status: "200";
385
+ body: RouteMatrixResultOutput;
386
+ }
387
+ /**
388
+ *
389
+ * The `Post Route Matrix Sync` API is an HTTP `POST` request that allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using a single synchronous (sync) request. To make an asynchronous (async) request, see [Post Route Matrix](/rest/api/maps/route/post-route-matrix). For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API.
390
+ *
391
+ *
392
+ * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API.
393
+ *
394
+ *
395
+ * The maximum size of a matrix for async request is **700** and for sync request it's **100** (the number of origins multiplied by the number of destinations).
396
+ *
397
+ *
398
+ *
399
+ * ### Submit Synchronous Route Matrix Request
400
+ * If your scenario requires synchronous requests and the maximum size of the matrix is less than or equal to 100, you might want to make synchronous request. The maximum size of a matrix for this API is **100** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 10x10, 6x8, 9x8 (it does not need to be square).
401
+ *
402
+ * ```
403
+ * POST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
404
+ * ```
405
+ *
406
+ * ### Submit Asynchronous Route Matrix Request
407
+ * The Asynchronous API is appropriate for processing big volumes of relatively complex routing requests. When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available. If `waitForResults` parameter in the request is set to true, user will get a 200 response if the request is finished under 120 seconds.
408
+ *
409
+ *
410
+ * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square).
411
+ *
412
+ *
413
+ * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period.
414
+ *
415
+ *
416
+ *
417
+ *
418
+ * ```
419
+ * POST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
420
+ * ```
421
+ *
422
+ * Here's a typical sequence of asynchronous operations:
423
+ * 1. Client sends a Route Matrix POST request to Azure Maps
424
+ *
425
+ * 2. The server will respond with one of the following:
426
+ *
427
+ * > HTTP `202 Accepted` - Route Matrix request has been accepted.
428
+ *
429
+ * > HTTP `Error` - There was an error processing your Route Matrix request. This could either be a 400 Bad Request or any other Error status code.
430
+ *
431
+ *
432
+ * 3. If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following:
433
+ *
434
+ * ```
435
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
436
+ * ```
437
+ *
438
+ *
439
+ * 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
440
+ *
441
+ * ### Download Sync Results
442
+ * When you make a POST request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later.
443
+ *
444
+ * ### Download Async Results
445
+ * When a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following:
446
+ * ```
447
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
448
+ * ```
449
+ *
450
+ * The URL provided by the location header will return the following responses when a `GET` request is issued.
451
+ *
452
+ * > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
453
+ *
454
+ * > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
455
+ */
456
+ export interface RouteRequestRouteMatrixSync408Response extends HttpResponse {
457
+ status: "408";
458
+ body: ErrorResponseOutput;
459
+ }
460
+ /**
461
+ *
462
+ * The `Post Route Matrix Sync` API is an HTTP `POST` request that allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using a single synchronous (sync) request. To make an asynchronous (async) request, see [Post Route Matrix](/rest/api/maps/route/post-route-matrix). For every given origin, the service calculates the cost of routing from that origin to every given destination. The set of origins and the set of destinations can be thought of as the column and row headers of a table and each cell in the table contains the costs of routing from the origin to the destination for that cell. As an example, let's say a food delivery company has 20 drivers and they need to find the closest driver to pick up the delivery from the restaurant. To solve this use case, they can call Matrix Route API.
463
+ *
464
+ *
465
+ * For each route, the travel times and distances are returned. You can use the computed costs to determine which detailed routes to calculate using the Route Directions API.
466
+ *
467
+ *
468
+ * The maximum size of a matrix for async request is **700** and for sync request it's **100** (the number of origins multiplied by the number of destinations).
469
+ *
470
+ *
471
+ *
472
+ * ### Submit Synchronous Route Matrix Request
473
+ * If your scenario requires synchronous requests and the maximum size of the matrix is less than or equal to 100, you might want to make synchronous request. The maximum size of a matrix for this API is **100** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 10x10, 6x8, 9x8 (it does not need to be square).
474
+ *
475
+ * ```
476
+ * POST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
477
+ * ```
478
+ *
479
+ * ### Submit Asynchronous Route Matrix Request
480
+ * The Asynchronous API is appropriate for processing big volumes of relatively complex routing requests. When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available. If `waitForResults` parameter in the request is set to true, user will get a 200 response if the request is finished under 120 seconds.
481
+ *
482
+ *
483
+ * The maximum size of a matrix for this API is **700** (the number of origins multiplied by the number of destinations). With that constraint in mind, examples of possible matrix dimensions are: 50x10, 10x10, 28x25. 10x70 (it does not need to be square).
484
+ *
485
+ *
486
+ * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period.
487
+ *
488
+ *
489
+ *
490
+ *
491
+ * ```
492
+ * POST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
493
+ * ```
494
+ *
495
+ * Here's a typical sequence of asynchronous operations:
496
+ * 1. Client sends a Route Matrix POST request to Azure Maps
497
+ *
498
+ * 2. The server will respond with one of the following:
499
+ *
500
+ * > HTTP `202 Accepted` - Route Matrix request has been accepted.
501
+ *
502
+ * > HTTP `Error` - There was an error processing your Route Matrix request. This could either be a 400 Bad Request or any other Error status code.
503
+ *
504
+ *
505
+ * 3. If the Matrix Route request was accepted successfully, the Location header in the response contains the URL to download the results of the request. This status URI looks like the following:
506
+ *
507
+ * ```
508
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
509
+ * ```
510
+ *
511
+ *
512
+ * 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
513
+ *
514
+ * ### Download Sync Results
515
+ * When you make a POST request for Route Matrix Sync API, the service returns 200 response code for successful request and a response array. The response body will contain the data and there will be no possibility to retrieve the results later.
516
+ *
517
+ * ### Download Async Results
518
+ * When a request issues a `202 Accepted` response, the request is being processed using our async pipeline. You will be given a URL to check the progress of your async request in the location header of the response. This status URI looks like the following:
519
+ * ```
520
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
521
+ * ```
522
+ *
523
+ * The URL provided by the location header will return the following responses when a `GET` request is issued.
524
+ *
525
+ * > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
526
+ *
527
+ * > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
528
+ */
529
+ export interface RouteRequestRouteMatrixSyncDefaultResponse extends HttpResponse {
530
+ status: string;
531
+ body: ErrorResponseOutput;
532
+ }
533
+ /**
534
+ *
535
+ * The `Get Route Directions` API is an HTTP `GET` request that returns a route between an origin and a destination, passing through waypoints if specified. The route takes into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day.
536
+ *
537
+ * Information returned includes the distance, estimated travel time, and a representation of the route geometry. Additional routing information such as optimized waypoint order or turn by turn instructions is also available, depending on the options selected.
538
+ *
539
+ * Routing service provides a set of parameters for a detailed description of a vehicle-specific consumption model. For more information, see [Consumption Model](/azure/azure-maps/consumption-model).
540
+ */
541
+ export interface RouteGetRouteDirections200Response extends HttpResponse {
542
+ status: "200";
543
+ body: RouteDirectionsOutput;
544
+ }
545
+ /**
546
+ *
547
+ * The `Get Route Directions` API is an HTTP `GET` request that returns a route between an origin and a destination, passing through waypoints if specified. The route takes into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day.
548
+ *
549
+ * Information returned includes the distance, estimated travel time, and a representation of the route geometry. Additional routing information such as optimized waypoint order or turn by turn instructions is also available, depending on the options selected.
550
+ *
551
+ * Routing service provides a set of parameters for a detailed description of a vehicle-specific consumption model. For more information, see [Consumption Model](/azure/azure-maps/consumption-model).
552
+ */
553
+ export interface RouteGetRouteDirectionsDefaultResponse extends HttpResponse {
554
+ status: string;
555
+ body: ErrorResponseOutput;
556
+ }
557
+ /**
558
+ *
559
+ * The `Post Route Directions` API is an HTTP `POST` request that returns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day.
560
+ *
561
+ * Information returned includes the distance, estimated travel time, and a representation of the route geometry. Additional routing information such as optimized waypoint order or turn by turn instructions is also available, depending on the options selected.
562
+ *
563
+ * Routing service provides a set of parameters for a detailed description of a vehicle-specific Consumption Model. Please check [Consumption Model](https://docs.microsoft.com/azure/azure-maps/consumption-model) for detailed explanation of the concepts and parameters involved.
564
+ */
565
+ export interface RouteGetRouteDirectionsWithAdditionalParameters200Response extends HttpResponse {
566
+ status: "200";
567
+ body: RouteDirectionsOutput;
568
+ }
569
+ /**
570
+ *
571
+ * The `Post Route Directions` API is an HTTP `POST` request that returns a route between an origin and a destination, passing through waypoints if they are specified. The route will take into account factors such as current traffic and the typical road speeds on the requested day of the week and time of day.
572
+ *
573
+ * Information returned includes the distance, estimated travel time, and a representation of the route geometry. Additional routing information such as optimized waypoint order or turn by turn instructions is also available, depending on the options selected.
574
+ *
575
+ * Routing service provides a set of parameters for a detailed description of a vehicle-specific Consumption Model. Please check [Consumption Model](https://docs.microsoft.com/azure/azure-maps/consumption-model) for detailed explanation of the concepts and parameters involved.
576
+ */
577
+ export interface RouteGetRouteDirectionsWithAdditionalParametersDefaultResponse extends HttpResponse {
578
+ status: string;
579
+ body: ErrorResponseOutput;
580
+ }
581
+ /**
582
+ *
583
+ * The `Get Route Range` (Isochrone) API is an HTTP `GET` request that will calculate a set of locations that can be reached from the origin point based on fuel, energy, time or distance budget that is specified. A polygon boundary (or Isochrone) is returned in a counterclockwise orientation as well as the precise polygon center which was the result of the origin point.
584
+ *
585
+ * The returned polygon can be used for further processing such as [Search Inside Geometry](/rest/api/maps/search/post-search-inside-geometry) to search for POIs within the provided isochrone.
586
+ */
587
+ export interface RouteGetRouteRange200Response extends HttpResponse {
588
+ status: "200";
589
+ body: RouteRangeResultOutput;
590
+ }
591
+ /**
592
+ *
593
+ * The `Get Route Range` (Isochrone) API is an HTTP `GET` request that will calculate a set of locations that can be reached from the origin point based on fuel, energy, time or distance budget that is specified. A polygon boundary (or Isochrone) is returned in a counterclockwise orientation as well as the precise polygon center which was the result of the origin point.
594
+ *
595
+ * The returned polygon can be used for further processing such as [Search Inside Geometry](/rest/api/maps/search/post-search-inside-geometry) to search for POIs within the provided isochrone.
596
+ */
597
+ export interface RouteGetRouteRangeDefaultResponse extends HttpResponse {
598
+ status: string;
599
+ body: ErrorResponseOutput;
600
+ }
601
+ /**
602
+ *
603
+ * The `Post Route Directions Batch` API is an HTTP `POST` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single asynchronous request. You can call `Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. To call the `Post Route Directions Batch` API in a synchronous request, see [Post Route Directions Batch Sync](/rest/api/maps/route/post-route-directions-batch-sync).
604
+ *
605
+ * ### Submit Asynchronous Batch Request
606
+ * The Asynchronous API is appropriate for processing big volumes of relatively complex route requests
607
+ * - It allows the retrieval of results in a separate call (multiple downloads are possible).
608
+ * - The asynchronous API is optimized for reliability and is not expected to run into a timeout.
609
+ * - The number of batch items is limited to **700** for this API.
610
+ *
611
+ * When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.
612
+ * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period.
613
+ *
614
+ * Please note that asynchronous batch request is a long-running operation. Here's a typical sequence of operations:
615
+ * 1. Client sends a Route Directions Batch `POST` request to Azure Maps.
616
+ * ```
617
+ * POST https://atlas.microsoft.com/route/directions/batch/json?api-version=1.0&subscription-key={subscription-key}
618
+ * ```
619
+ * 2. The server will respond with one of the following:
620
+ *
621
+ * > HTTP `202 Accepted` - Batch request has been accepted.
622
+ *
623
+ * > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.
624
+ *
625
+ * 3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.
626
+ * This status URI looks like following:
627
+ * ```
628
+ * GET https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}
629
+ * ```
630
+ * 4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.
631
+ *
632
+ * ### POST Body for Batch Request
633
+ * To send the _route directions_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 3 _route directions_ queries:
634
+ *
635
+ *
636
+ * ```json
637
+ * {
638
+ * "batchItems": [
639
+ * { "query": "?query=47.620659,-122.348934:47.610101,-122.342015&travelMode=bicycle&routeType=eco&traffic=false" },
640
+ * { "query": "?query=40.759856,-73.985108:40.771136,-73.973506&travelMode=pedestrian&routeType=shortest" },
641
+ * { "query": "?query=48.923159,-122.557362:32.621279,-116.840362" }
642
+ * ]
643
+ * }
644
+ * ```
645
+ *
646
+ * A _route directions_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _route directions_ [URI parameters](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#uri-parameters). The string values in the _route directions_ query must be properly escaped (e.g. " character should be escaped with \\ ) and it should also be properly URL-encoded.
647
+ *
648
+ *
649
+ * The async API allows caller to batch up to **700** queries and sync API up to **100** queries, and the batch should contain at least **1** query.
650
+ *
651
+ *
652
+ * ### Download Asynchronous Batch Results
653
+ * To download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:
654
+ *
655
+ * ```
656
+ * https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}
657
+ * ```
658
+ * Here's the typical sequence of operations for downloading the batch results:
659
+ * 1. Client sends a `GET` request using the _download URL_.
660
+ * 2. The server will respond with one of the following:
661
+ *
662
+ * > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.
663
+ *
664
+ * > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.
665
+ *
666
+ *
667
+ *
668
+ * ### Batch Response Model
669
+ * The returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:
670
+ *
671
+ * - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
672
+ *
673
+ * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
674
+ *
675
+ *
676
+ * Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
677
+ *
678
+ *
679
+ * ```json
680
+ * {
681
+ * "summary": {
682
+ * "successfulRequests": 1,
683
+ * "totalRequests": 2
684
+ * },
685
+ * "batchItems": [
686
+ * {
687
+ * "statusCode": 200,
688
+ * "response": {
689
+ * "routes": [
690
+ * {
691
+ * "summary": {
692
+ * "lengthInMeters": 1758,
693
+ * "travelTimeInSeconds": 387,
694
+ * "trafficDelayInSeconds": 0,
695
+ * "departureTime": "2018-07-17T00:49:56+00:00",
696
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
697
+ * },
698
+ * "legs": [
699
+ * {
700
+ * "summary": {
701
+ * "lengthInMeters": 1758,
702
+ * "travelTimeInSeconds": 387,
703
+ * "trafficDelayInSeconds": 0,
704
+ * "departureTime": "2018-07-17T00:49:56+00:00",
705
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
706
+ * },
707
+ * "points": [
708
+ * {
709
+ * "latitude": 47.62094,
710
+ * "longitude": -122.34892
711
+ * },
712
+ * {
713
+ * "latitude": 47.62094,
714
+ * "longitude": -122.3485
715
+ * },
716
+ * {
717
+ * "latitude": 47.62095,
718
+ * "longitude": -122.3476
719
+ * }
720
+ * ]
721
+ * }
722
+ * ],
723
+ * "sections": [
724
+ * {
725
+ * "startPointIndex": 0,
726
+ * "endPointIndex": 40,
727
+ * "sectionType": "TRAVEL_MODE",
728
+ * "travelMode": "bicycle"
729
+ * }
730
+ * ]
731
+ * }
732
+ * ]
733
+ * }
734
+ * },
735
+ * {
736
+ * "statusCode": 400,
737
+ * "response":
738
+ * {
739
+ * "error":
740
+ * {
741
+ * "code": "400 BadRequest",
742
+ * "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
743
+ * }
744
+ * }
745
+ * }
746
+ * ]
747
+ * }
748
+ * ```
749
+ */
750
+ export interface RouteRequestRouteDirectionsBatch200Response extends HttpResponse {
751
+ status: "200";
752
+ body: RouteDirectionsBatchResultOutput;
753
+ }
754
+ export interface RouteRequestRouteDirectionsBatch202Headers {
755
+ /** New URL to check for the results of the long-running operation. */
756
+ location?: string;
757
+ }
758
+ /**
759
+ *
760
+ * The `Post Route Directions Batch` API is an HTTP `POST` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single asynchronous request. You can call `Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. To call the `Post Route Directions Batch` API in a synchronous request, see [Post Route Directions Batch Sync](/rest/api/maps/route/post-route-directions-batch-sync).
761
+ *
762
+ * ### Submit Asynchronous Batch Request
763
+ * The Asynchronous API is appropriate for processing big volumes of relatively complex route requests
764
+ * - It allows the retrieval of results in a separate call (multiple downloads are possible).
765
+ * - The asynchronous API is optimized for reliability and is not expected to run into a timeout.
766
+ * - The number of batch items is limited to **700** for this API.
767
+ *
768
+ * When you make a request by using async request, by default the service returns a 202 response code along a redirect URL in the Location field of the response header. This URL should be checked periodically until the response data or error information is available.
769
+ * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period.
770
+ *
771
+ * Please note that asynchronous batch request is a long-running operation. Here's a typical sequence of operations:
772
+ * 1. Client sends a Route Directions Batch `POST` request to Azure Maps.
773
+ * ```
774
+ * POST https://atlas.microsoft.com/route/directions/batch/json?api-version=1.0&subscription-key={subscription-key}
775
+ * ```
776
+ * 2. The server will respond with one of the following:
777
+ *
778
+ * > HTTP `202 Accepted` - Batch request has been accepted.
779
+ *
780
+ * > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.
781
+ *
782
+ * 3. If the batch request was accepted successfully, the `Location` header in the response contains the URL to download the results of the batch request.
783
+ * This status URI looks like following:
784
+ * ```
785
+ * GET https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}
786
+ * ```
787
+ * 4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.
788
+ *
789
+ * ### POST Body for Batch Request
790
+ * To send the _route directions_ queries you will use a `POST` request where the request body will contain the `batchItems` array in `json` format and the `Content-Type` header will be set to `application/json`. Here's a sample request body containing 3 _route directions_ queries:
791
+ *
792
+ *
793
+ * ```json
794
+ * {
795
+ * "batchItems": [
796
+ * { "query": "?query=47.620659,-122.348934:47.610101,-122.342015&travelMode=bicycle&routeType=eco&traffic=false" },
797
+ * { "query": "?query=40.759856,-73.985108:40.771136,-73.973506&travelMode=pedestrian&routeType=shortest" },
798
+ * { "query": "?query=48.923159,-122.557362:32.621279,-116.840362" }
799
+ * ]
800
+ * }
801
+ * ```
802
+ *
803
+ * A _route directions_ query in a batch is just a partial URL _without_ the protocol, base URL, path, api-version and subscription-key. It can accept any of the supported _route directions_ [URI parameters](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#uri-parameters). The string values in the _route directions_ query must be properly escaped (e.g. " character should be escaped with \\ ) and it should also be properly URL-encoded.
804
+ *
805
+ *
806
+ * The async API allows caller to batch up to **700** queries and sync API up to **100** queries, and the batch should contain at least **1** query.
807
+ *
808
+ *
809
+ * ### Download Asynchronous Batch Results
810
+ * To download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:
811
+ *
812
+ * ```
813
+ * https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}
814
+ * ```
815
+ * Here's the typical sequence of operations for downloading the batch results:
816
+ * 1. Client sends a `GET` request using the _download URL_.
817
+ * 2. The server will respond with one of the following:
818
+ *
819
+ * > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.
820
+ *
821
+ * > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.
822
+ *
823
+ *
824
+ *
825
+ * ### Batch Response Model
826
+ * The returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:
827
+ *
828
+ * - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
829
+ *
830
+ * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
831
+ *
832
+ *
833
+ * Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
834
+ *
835
+ *
836
+ * ```json
837
+ * {
838
+ * "summary": {
839
+ * "successfulRequests": 1,
840
+ * "totalRequests": 2
841
+ * },
842
+ * "batchItems": [
843
+ * {
844
+ * "statusCode": 200,
845
+ * "response": {
846
+ * "routes": [
847
+ * {
848
+ * "summary": {
849
+ * "lengthInMeters": 1758,
850
+ * "travelTimeInSeconds": 387,
851
+ * "trafficDelayInSeconds": 0,
852
+ * "departureTime": "2018-07-17T00:49:56+00:00",
853
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
854
+ * },
855
+ * "legs": [
856
+ * {
857
+ * "summary": {
858
+ * "lengthInMeters": 1758,
859
+ * "travelTimeInSeconds": 387,
860
+ * "trafficDelayInSeconds": 0,
861
+ * "departureTime": "2018-07-17T00:49:56+00:00",
862
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
863
+ * },
864
+ * "points": [
865
+ * {
866
+ * "latitude": 47.62094,
867
+ * "longitude": -122.34892
868
+ * },
869
+ * {
870
+ * "latitude": 47.62094,
871
+ * "longitude": -122.3485
872
+ * },
873
+ * {
874
+ * "latitude": 47.62095,
875
+ * "longitude": -122.3476
876
+ * }
877
+ * ]
878
+ * }
879
+ * ],
880
+ * "sections": [
881
+ * {
882
+ * "startPointIndex": 0,
883
+ * "endPointIndex": 40,
884
+ * "sectionType": "TRAVEL_MODE",
885
+ * "travelMode": "bicycle"
886
+ * }
887
+ * ]
888
+ * }
889
+ * ]
890
+ * }
891
+ * },
892
+ * {
893
+ * "statusCode": 400,
894
+ * "response":
895
+ * {
896
+ * "error":
897
+ * {
898
+ * "code": "400 BadRequest",
899
+ * "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
900
+ * }
901
+ * }
902
+ * }
903
+ * ]
904
+ * }
905
+ * ```
906
+ */
907
+ export interface RouteRequestRouteDirectionsBatch202Response extends HttpResponse {
908
+ status: "202";
909
+ headers: RawHttpHeaders & RouteRequestRouteDirectionsBatch202Headers;
910
+ }
911
+ /**
912
+ *
913
+ * The `Get Route Directions Batch` API is an HTTP `GET` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single request. You can call `Get Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries.
914
+ *
915
+ * ### Download Asynchronous Batch Results
916
+ * To download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:
917
+ *
918
+ * ```
919
+ * https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}
920
+ * ```
921
+ * Here's the typical sequence of operations for downloading the batch results:
922
+ * 1. Client sends a `GET` request using the _download URL_.
923
+ * 2. The server will respond with one of the following:
924
+ *
925
+ * > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.
926
+ *
927
+ * > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.
928
+ *
929
+ *
930
+ *
931
+ * ### Batch Response Model
932
+ * The returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:
933
+ *
934
+ * - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
935
+ *
936
+ * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
937
+ *
938
+ *
939
+ * Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
940
+ *
941
+ *
942
+ * ```json
943
+ * {
944
+ * "summary": {
945
+ * "successfulRequests": 1,
946
+ * "totalRequests": 2
947
+ * },
948
+ * "batchItems": [
949
+ * {
950
+ * "statusCode": 200,
951
+ * "response": {
952
+ * "routes": [
953
+ * {
954
+ * "summary": {
955
+ * "lengthInMeters": 1758,
956
+ * "travelTimeInSeconds": 387,
957
+ * "trafficDelayInSeconds": 0,
958
+ * "departureTime": "2018-07-17T00:49:56+00:00",
959
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
960
+ * },
961
+ * "legs": [
962
+ * {
963
+ * "summary": {
964
+ * "lengthInMeters": 1758,
965
+ * "travelTimeInSeconds": 387,
966
+ * "trafficDelayInSeconds": 0,
967
+ * "departureTime": "2018-07-17T00:49:56+00:00",
968
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
969
+ * },
970
+ * "points": [
971
+ * {
972
+ * "latitude": 47.62094,
973
+ * "longitude": -122.34892
974
+ * },
975
+ * {
976
+ * "latitude": 47.62094,
977
+ * "longitude": -122.3485
978
+ * },
979
+ * {
980
+ * "latitude": 47.62095,
981
+ * "longitude": -122.3476
982
+ * }
983
+ * ]
984
+ * }
985
+ * ],
986
+ * "sections": [
987
+ * {
988
+ * "startPointIndex": 0,
989
+ * "endPointIndex": 40,
990
+ * "sectionType": "TRAVEL_MODE",
991
+ * "travelMode": "bicycle"
992
+ * }
993
+ * ]
994
+ * }
995
+ * ]
996
+ * }
997
+ * },
998
+ * {
999
+ * "statusCode": 400,
1000
+ * "response":
1001
+ * {
1002
+ * "error":
1003
+ * {
1004
+ * "code": "400 BadRequest",
1005
+ * "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
1006
+ * }
1007
+ * }
1008
+ * }
1009
+ * ]
1010
+ * }
1011
+ * ```
1012
+ */
1013
+ export interface RouteGetRouteDirectionsBatch200Response extends HttpResponse {
1014
+ status: "200";
1015
+ body: RouteDirectionsBatchResultOutput;
1016
+ }
1017
+ export interface RouteGetRouteDirectionsBatch202Headers {
1018
+ /** New URL to check for the results of the long-running operation. */
1019
+ location?: string;
1020
+ }
1021
+ /**
1022
+ *
1023
+ * The `Get Route Directions Batch` API is an HTTP `GET` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single request. You can call `Get Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries.
1024
+ *
1025
+ * ### Download Asynchronous Batch Results
1026
+ * To download the async batch results you will issue a `GET` request to the batch download endpoint. This _download URL_ can be obtained from the `Location` header of a successful `POST` batch request and looks like the following:
1027
+ *
1028
+ * ```
1029
+ * https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}
1030
+ * ```
1031
+ * Here's the typical sequence of operations for downloading the batch results:
1032
+ * 1. Client sends a `GET` request using the _download URL_.
1033
+ * 2. The server will respond with one of the following:
1034
+ *
1035
+ * > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.
1036
+ *
1037
+ * > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.
1038
+ *
1039
+ *
1040
+ *
1041
+ * ### Batch Response Model
1042
+ * The returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:
1043
+ *
1044
+ * - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
1045
+ *
1046
+ * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
1047
+ *
1048
+ *
1049
+ * Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
1050
+ *
1051
+ *
1052
+ * ```json
1053
+ * {
1054
+ * "summary": {
1055
+ * "successfulRequests": 1,
1056
+ * "totalRequests": 2
1057
+ * },
1058
+ * "batchItems": [
1059
+ * {
1060
+ * "statusCode": 200,
1061
+ * "response": {
1062
+ * "routes": [
1063
+ * {
1064
+ * "summary": {
1065
+ * "lengthInMeters": 1758,
1066
+ * "travelTimeInSeconds": 387,
1067
+ * "trafficDelayInSeconds": 0,
1068
+ * "departureTime": "2018-07-17T00:49:56+00:00",
1069
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
1070
+ * },
1071
+ * "legs": [
1072
+ * {
1073
+ * "summary": {
1074
+ * "lengthInMeters": 1758,
1075
+ * "travelTimeInSeconds": 387,
1076
+ * "trafficDelayInSeconds": 0,
1077
+ * "departureTime": "2018-07-17T00:49:56+00:00",
1078
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
1079
+ * },
1080
+ * "points": [
1081
+ * {
1082
+ * "latitude": 47.62094,
1083
+ * "longitude": -122.34892
1084
+ * },
1085
+ * {
1086
+ * "latitude": 47.62094,
1087
+ * "longitude": -122.3485
1088
+ * },
1089
+ * {
1090
+ * "latitude": 47.62095,
1091
+ * "longitude": -122.3476
1092
+ * }
1093
+ * ]
1094
+ * }
1095
+ * ],
1096
+ * "sections": [
1097
+ * {
1098
+ * "startPointIndex": 0,
1099
+ * "endPointIndex": 40,
1100
+ * "sectionType": "TRAVEL_MODE",
1101
+ * "travelMode": "bicycle"
1102
+ * }
1103
+ * ]
1104
+ * }
1105
+ * ]
1106
+ * }
1107
+ * },
1108
+ * {
1109
+ * "statusCode": 400,
1110
+ * "response":
1111
+ * {
1112
+ * "error":
1113
+ * {
1114
+ * "code": "400 BadRequest",
1115
+ * "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
1116
+ * }
1117
+ * }
1118
+ * }
1119
+ * ]
1120
+ * }
1121
+ * ```
1122
+ */
1123
+ export interface RouteGetRouteDirectionsBatch202Response extends HttpResponse {
1124
+ status: "202";
1125
+ headers: RawHttpHeaders & RouteGetRouteDirectionsBatch202Headers;
1126
+ }
1127
+ /**
1128
+ *
1129
+ * The `Post Route Directions Batch Sync` API is an HTTP `POST` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single synchronous request. You can call `Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. To call the `Post Route Directions Batch` API in a asynchronous request, see [Post Route Directions Batch](/rest/api/maps/route/post-route-directions-batch).
1130
+ * ### Submit Synchronous Batch Request
1131
+ * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.
1132
+ * ```
1133
+ * POST https://atlas.microsoft.com/route/directions/batch/sync/json?api-version=1.0&subscription-key={subscription-key}
1134
+ * ```
1135
+ * ### Batch Response Model
1136
+ * The returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:
1137
+ *
1138
+ * - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
1139
+ *
1140
+ * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
1141
+ *
1142
+ *
1143
+ * Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
1144
+ *
1145
+ *
1146
+ * ```json
1147
+ * {
1148
+ * "summary": {
1149
+ * "successfulRequests": 1,
1150
+ * "totalRequests": 2
1151
+ * },
1152
+ * "batchItems": [
1153
+ * {
1154
+ * "statusCode": 200,
1155
+ * "response": {
1156
+ * "routes": [
1157
+ * {
1158
+ * "summary": {
1159
+ * "lengthInMeters": 1758,
1160
+ * "travelTimeInSeconds": 387,
1161
+ * "trafficDelayInSeconds": 0,
1162
+ * "departureTime": "2018-07-17T00:49:56+00:00",
1163
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
1164
+ * },
1165
+ * "legs": [
1166
+ * {
1167
+ * "summary": {
1168
+ * "lengthInMeters": 1758,
1169
+ * "travelTimeInSeconds": 387,
1170
+ * "trafficDelayInSeconds": 0,
1171
+ * "departureTime": "2018-07-17T00:49:56+00:00",
1172
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
1173
+ * },
1174
+ * "points": [
1175
+ * {
1176
+ * "latitude": 47.62094,
1177
+ * "longitude": -122.34892
1178
+ * },
1179
+ * {
1180
+ * "latitude": 47.62094,
1181
+ * "longitude": -122.3485
1182
+ * },
1183
+ * {
1184
+ * "latitude": 47.62095,
1185
+ * "longitude": -122.3476
1186
+ * }
1187
+ * ]
1188
+ * }
1189
+ * ],
1190
+ * "sections": [
1191
+ * {
1192
+ * "startPointIndex": 0,
1193
+ * "endPointIndex": 40,
1194
+ * "sectionType": "TRAVEL_MODE",
1195
+ * "travelMode": "bicycle"
1196
+ * }
1197
+ * ]
1198
+ * }
1199
+ * ]
1200
+ * }
1201
+ * },
1202
+ * {
1203
+ * "statusCode": 400,
1204
+ * "response":
1205
+ * {
1206
+ * "error":
1207
+ * {
1208
+ * "code": "400 BadRequest",
1209
+ * "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
1210
+ * }
1211
+ * }
1212
+ * }
1213
+ * ]
1214
+ * }
1215
+ * ```
1216
+ */
1217
+ export interface RouteRequestRouteDirectionsBatchSync200Response extends HttpResponse {
1218
+ status: "200";
1219
+ body: RouteDirectionsBatchResultOutput;
1220
+ }
1221
+ /**
1222
+ *
1223
+ * The `Post Route Directions Batch Sync` API is an HTTP `POST` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single synchronous request. You can call `Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. To call the `Post Route Directions Batch` API in a asynchronous request, see [Post Route Directions Batch](/rest/api/maps/route/post-route-directions-batch).
1224
+ * ### Submit Synchronous Batch Request
1225
+ * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.
1226
+ * ```
1227
+ * POST https://atlas.microsoft.com/route/directions/batch/sync/json?api-version=1.0&subscription-key={subscription-key}
1228
+ * ```
1229
+ * ### Batch Response Model
1230
+ * The returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:
1231
+ *
1232
+ * - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
1233
+ *
1234
+ * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
1235
+ *
1236
+ *
1237
+ * Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
1238
+ *
1239
+ *
1240
+ * ```json
1241
+ * {
1242
+ * "summary": {
1243
+ * "successfulRequests": 1,
1244
+ * "totalRequests": 2
1245
+ * },
1246
+ * "batchItems": [
1247
+ * {
1248
+ * "statusCode": 200,
1249
+ * "response": {
1250
+ * "routes": [
1251
+ * {
1252
+ * "summary": {
1253
+ * "lengthInMeters": 1758,
1254
+ * "travelTimeInSeconds": 387,
1255
+ * "trafficDelayInSeconds": 0,
1256
+ * "departureTime": "2018-07-17T00:49:56+00:00",
1257
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
1258
+ * },
1259
+ * "legs": [
1260
+ * {
1261
+ * "summary": {
1262
+ * "lengthInMeters": 1758,
1263
+ * "travelTimeInSeconds": 387,
1264
+ * "trafficDelayInSeconds": 0,
1265
+ * "departureTime": "2018-07-17T00:49:56+00:00",
1266
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
1267
+ * },
1268
+ * "points": [
1269
+ * {
1270
+ * "latitude": 47.62094,
1271
+ * "longitude": -122.34892
1272
+ * },
1273
+ * {
1274
+ * "latitude": 47.62094,
1275
+ * "longitude": -122.3485
1276
+ * },
1277
+ * {
1278
+ * "latitude": 47.62095,
1279
+ * "longitude": -122.3476
1280
+ * }
1281
+ * ]
1282
+ * }
1283
+ * ],
1284
+ * "sections": [
1285
+ * {
1286
+ * "startPointIndex": 0,
1287
+ * "endPointIndex": 40,
1288
+ * "sectionType": "TRAVEL_MODE",
1289
+ * "travelMode": "bicycle"
1290
+ * }
1291
+ * ]
1292
+ * }
1293
+ * ]
1294
+ * }
1295
+ * },
1296
+ * {
1297
+ * "statusCode": 400,
1298
+ * "response":
1299
+ * {
1300
+ * "error":
1301
+ * {
1302
+ * "code": "400 BadRequest",
1303
+ * "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
1304
+ * }
1305
+ * }
1306
+ * }
1307
+ * ]
1308
+ * }
1309
+ * ```
1310
+ */
1311
+ export interface RouteRequestRouteDirectionsBatchSync408Response extends HttpResponse {
1312
+ status: "408";
1313
+ body: ErrorResponseOutput;
1314
+ }
1315
+ /**
1316
+ *
1317
+ * The `Post Route Directions Batch Sync` API is an HTTP `POST` request that sends batches of queries to the [Get Route Directions](/rest/api/maps/route/get-route-directions) API using a single synchronous request. You can call `Route Directions Batch` API to run either asynchronously (async) or synchronously (sync). The async API allows caller to batch up to **700** queries and sync API up to **100** queries. To call the `Post Route Directions Batch` API in a asynchronous request, see [Post Route Directions Batch](/rest/api/maps/route/post-route-directions-batch).
1318
+ * ### Submit Synchronous Batch Request
1319
+ * The Synchronous API is recommended for lightweight batch requests. When the service receives a request, it will respond as soon as the batch items are calculated and there will be no possibility to retrieve the results later. The Synchronous API will return a timeout error (a 408 response) if the request takes longer than 60 seconds. The number of batch items is limited to **100** for this API.
1320
+ * ```
1321
+ * POST https://atlas.microsoft.com/route/directions/batch/sync/json?api-version=1.0&subscription-key={subscription-key}
1322
+ * ```
1323
+ * ### Batch Response Model
1324
+ * The returned data content is similar for async and sync requests. When downloading the results of an async batch request, if the batch has finished processing, the response body contains the batch response. This batch response contains a `summary` component that indicates the `totalRequests` that were part of the original batch request and `successfulRequests`i.e. queries which were executed successfully. The batch response also includes a `batchItems` array which contains a response for each and every query in the batch request. The `batchItems` will contain the results in the exact same order the original queries were sent in the batch request. Each item in `batchItems` contains `statusCode` and `response` fields. Each `response` in `batchItems` is of one of the following types:
1325
+ *
1326
+ * - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
1327
+ *
1328
+ * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
1329
+ *
1330
+ *
1331
+ * Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
1332
+ *
1333
+ *
1334
+ * ```json
1335
+ * {
1336
+ * "summary": {
1337
+ * "successfulRequests": 1,
1338
+ * "totalRequests": 2
1339
+ * },
1340
+ * "batchItems": [
1341
+ * {
1342
+ * "statusCode": 200,
1343
+ * "response": {
1344
+ * "routes": [
1345
+ * {
1346
+ * "summary": {
1347
+ * "lengthInMeters": 1758,
1348
+ * "travelTimeInSeconds": 387,
1349
+ * "trafficDelayInSeconds": 0,
1350
+ * "departureTime": "2018-07-17T00:49:56+00:00",
1351
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
1352
+ * },
1353
+ * "legs": [
1354
+ * {
1355
+ * "summary": {
1356
+ * "lengthInMeters": 1758,
1357
+ * "travelTimeInSeconds": 387,
1358
+ * "trafficDelayInSeconds": 0,
1359
+ * "departureTime": "2018-07-17T00:49:56+00:00",
1360
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
1361
+ * },
1362
+ * "points": [
1363
+ * {
1364
+ * "latitude": 47.62094,
1365
+ * "longitude": -122.34892
1366
+ * },
1367
+ * {
1368
+ * "latitude": 47.62094,
1369
+ * "longitude": -122.3485
1370
+ * },
1371
+ * {
1372
+ * "latitude": 47.62095,
1373
+ * "longitude": -122.3476
1374
+ * }
1375
+ * ]
1376
+ * }
1377
+ * ],
1378
+ * "sections": [
1379
+ * {
1380
+ * "startPointIndex": 0,
1381
+ * "endPointIndex": 40,
1382
+ * "sectionType": "TRAVEL_MODE",
1383
+ * "travelMode": "bicycle"
1384
+ * }
1385
+ * ]
1386
+ * }
1387
+ * ]
1388
+ * }
1389
+ * },
1390
+ * {
1391
+ * "statusCode": 400,
1392
+ * "response":
1393
+ * {
1394
+ * "error":
1395
+ * {
1396
+ * "code": "400 BadRequest",
1397
+ * "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
1398
+ * }
1399
+ * }
1400
+ * }
1401
+ * ]
1402
+ * }
1403
+ * ```
1404
+ */
1405
+ export interface RouteRequestRouteDirectionsBatchSyncDefaultResponse extends HttpResponse {
1406
+ status: string;
1407
+ body: ErrorResponseOutput;
1408
+ }
1409
+ //# sourceMappingURL=responses.d.ts.map