@azure-rest/maps-route 1.0.0-beta.4 → 1.0.0-beta.6

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 (241) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/LICENSE +4 -4
  3. package/README.md +49 -35
  4. package/dist/browser/generated/clientDefinitions.d.ts +617 -0
  5. package/dist/browser/generated/clientDefinitions.d.ts.map +1 -0
  6. package/dist/browser/generated/clientDefinitions.js +4 -0
  7. package/dist/browser/generated/clientDefinitions.js.map +1 -0
  8. package/dist/browser/generated/index.d.ts +12 -0
  9. package/dist/browser/generated/index.d.ts.map +1 -0
  10. package/dist/browser/generated/index.js +14 -0
  11. package/dist/browser/generated/index.js.map +1 -0
  12. package/dist/browser/generated/isUnexpected.d.ts +7 -0
  13. package/dist/browser/generated/isUnexpected.d.ts.map +1 -0
  14. package/dist/browser/generated/isUnexpected.js +78 -0
  15. package/dist/browser/generated/isUnexpected.js.map +1 -0
  16. package/dist/browser/generated/logger.d.ts +2 -0
  17. package/dist/browser/generated/logger.d.ts.map +1 -0
  18. package/dist/browser/generated/logger.js +5 -0
  19. package/dist/browser/generated/logger.js.map +1 -0
  20. package/dist/browser/generated/mapsRouteClient.d.ts +15 -0
  21. package/dist/browser/generated/mapsRouteClient.d.ts.map +1 -0
  22. package/dist/browser/generated/mapsRouteClient.js +44 -0
  23. package/dist/browser/generated/mapsRouteClient.js.map +1 -0
  24. package/dist/browser/generated/models.d.ts +130 -0
  25. package/dist/browser/generated/models.d.ts.map +1 -0
  26. package/dist/browser/generated/models.js +4 -0
  27. package/dist/browser/generated/models.js.map +1 -0
  28. package/dist/browser/generated/outputModels.d.ts +286 -0
  29. package/dist/browser/generated/outputModels.d.ts.map +1 -0
  30. package/dist/browser/generated/outputModels.js +4 -0
  31. package/dist/browser/generated/outputModels.js.map +1 -0
  32. package/dist/browser/generated/parameters.d.ts +937 -0
  33. package/dist/browser/generated/parameters.d.ts.map +1 -0
  34. package/dist/browser/generated/parameters.js +4 -0
  35. package/dist/browser/generated/parameters.js.map +1 -0
  36. package/dist/browser/generated/pollingHelper.d.ts +76 -0
  37. package/dist/browser/generated/pollingHelper.d.ts.map +1 -0
  38. package/dist/browser/generated/pollingHelper.js +108 -0
  39. package/dist/browser/generated/pollingHelper.js.map +1 -0
  40. package/dist/browser/generated/responses.d.ts +1409 -0
  41. package/dist/browser/generated/responses.d.ts.map +1 -0
  42. package/dist/browser/generated/responses.js +4 -0
  43. package/dist/browser/generated/responses.js.map +1 -0
  44. package/dist/browser/generated/serializeHelper.d.ts +2 -0
  45. package/dist/browser/generated/serializeHelper.d.ts.map +1 -0
  46. package/dist/browser/generated/serializeHelper.js +13 -0
  47. package/dist/browser/generated/serializeHelper.js.map +1 -0
  48. package/dist/browser/helpers.d.ts +18 -0
  49. package/dist/browser/helpers.d.ts.map +1 -0
  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 +1 -1
  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 +81 -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 +47 -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 +111 -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 +78 -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 +44 -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 +108 -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 +78 -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 +44 -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 +108 -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 +84 -70
  233. package/dist/index.js +0 -340
  234. package/dist/index.js.map +0 -1
  235. package/dist-esm/src/helpers.js.map +0 -1
  236. package/dist-esm/src/index.js +0 -7
  237. package/dist-esm/src/index.js.map +0 -1
  238. package/dist-esm/src/mapsRoute.js.map +0 -1
  239. package/types/maps-route-rest.d.ts +0 -3659
  240. /package/{dist-esm/src → dist/browser}/helpers.js +0 -0
  241. /package/review/{maps-route.api.md → maps-route-node.api.md} +0 -0
@@ -0,0 +1,617 @@
1
+ import { RouteRequestRouteMatrixParameters, RouteGetRouteMatrixParameters, RouteRequestRouteMatrixSyncParameters, RouteGetRouteDirectionsParameters, RouteGetRouteDirectionsWithAdditionalParametersParameters, RouteGetRouteRangeParameters, RouteRequestRouteDirectionsBatchParameters, RouteGetRouteDirectionsBatchParameters, RouteRequestRouteDirectionsBatchSyncParameters } from "./parameters.js";
2
+ import { RouteRequestRouteMatrix200Response, RouteRequestRouteMatrix202Response, RouteGetRouteMatrix200Response, RouteGetRouteMatrix202Response, RouteRequestRouteMatrixSync200Response, RouteRequestRouteMatrixSync408Response, RouteRequestRouteMatrixSyncDefaultResponse, RouteGetRouteDirections200Response, RouteGetRouteDirectionsDefaultResponse, RouteGetRouteDirectionsWithAdditionalParameters200Response, RouteGetRouteDirectionsWithAdditionalParametersDefaultResponse, RouteGetRouteRange200Response, RouteGetRouteRangeDefaultResponse, RouteRequestRouteDirectionsBatch200Response, RouteRequestRouteDirectionsBatch202Response, RouteGetRouteDirectionsBatch200Response, RouteGetRouteDirectionsBatch202Response, RouteRequestRouteDirectionsBatchSync200Response, RouteRequestRouteDirectionsBatchSync408Response, RouteRequestRouteDirectionsBatchSyncDefaultResponse } from "./responses.js";
3
+ import { Client, StreamableMethod } from "@azure-rest/core-client";
4
+ export interface RequestRouteMatrix {
5
+ /**
6
+ *
7
+ * 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.
8
+ *
9
+ *
10
+ * 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.
11
+ *
12
+ *
13
+ * 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).
14
+ *
15
+ * > [!NOTE]
16
+ * > 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.
17
+ *
18
+ *
19
+ *
20
+ * ### Submit Synchronous Route Matrix Request
21
+ * 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).
22
+ *
23
+ * ```
24
+ * POST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
25
+ * ```
26
+ *
27
+ * ### Submit Asynchronous Route Matrix Request
28
+ * 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.
29
+ *
30
+ *
31
+ * 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).
32
+ *
33
+ *
34
+ * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period.
35
+ *
36
+ *
37
+ *
38
+ *
39
+ * ```
40
+ * POST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
41
+ * ```
42
+ *
43
+ * Here's a typical sequence of asynchronous operations:
44
+ * 1. Client sends a Route Matrix POST request to Azure Maps
45
+ *
46
+ * 2. The server will respond with one of the following:
47
+ *
48
+ * > HTTP `202 Accepted` - Route Matrix request has been accepted.
49
+ *
50
+ * > 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.
51
+ *
52
+ *
53
+ * 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:
54
+ *
55
+ * ```
56
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
57
+ * ```
58
+ *
59
+ *
60
+ * 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
61
+ *
62
+ * ### Download Sync Results
63
+ * 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.
64
+ *
65
+ * ### Download Async Results
66
+ * 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:
67
+ * ```
68
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
69
+ * ```
70
+ *
71
+ * The URL provided by the location header will return the following responses when a `GET` request is issued.
72
+ *
73
+ * > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
74
+ *
75
+ * > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
76
+ */
77
+ post(options: RouteRequestRouteMatrixParameters): StreamableMethod<RouteRequestRouteMatrix200Response | RouteRequestRouteMatrix202Response>;
78
+ /**
79
+ *
80
+ * 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).
81
+ *
82
+ * 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.
83
+ *
84
+ *
85
+ * 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.
86
+ *
87
+ *
88
+ * 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).
89
+ *
90
+ *
91
+ *
92
+ * ### Submit Synchronous Route Matrix Request
93
+ * 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).
94
+ *
95
+ * ```
96
+ * GET https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
97
+ * ```
98
+ *
99
+ * ### Submit Asynchronous Route Matrix Request
100
+ * 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.
101
+ *
102
+ *
103
+ * 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).
104
+ *
105
+ *
106
+ * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period.
107
+ *
108
+ *
109
+ *
110
+ *
111
+ * ```
112
+ * GET https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
113
+ * ```
114
+ *
115
+ * Here's a typical sequence of asynchronous operations:
116
+ * 1. Client sends a Route Matrix GET request to Azure Maps
117
+ *
118
+ * 2. The server will respond with one of the following:
119
+ *
120
+ * > HTTP `202 Accepted` - Route Matrix request has been accepted.
121
+ *
122
+ * > 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.
123
+ *
124
+ *
125
+ * 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:
126
+ *
127
+ * ```
128
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
129
+ * ```
130
+ *
131
+ *
132
+ * 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
133
+ *
134
+ * ### Download Sync Results
135
+ * 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.
136
+ *
137
+ * ### Download Async Results
138
+ * 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:
139
+ * ```
140
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
141
+ * ```
142
+ *
143
+ * The URL provided by the location header will return the following responses when a `GET` request is issued.
144
+ *
145
+ * > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
146
+ *
147
+ * > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
148
+ */
149
+ get(options?: RouteGetRouteMatrixParameters): StreamableMethod<RouteGetRouteMatrix200Response | RouteGetRouteMatrix202Response>;
150
+ }
151
+ export interface RequestRouteMatrixSync {
152
+ /**
153
+ *
154
+ * 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.
155
+ *
156
+ *
157
+ * 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.
158
+ *
159
+ *
160
+ * 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).
161
+ *
162
+ *
163
+ *
164
+ * ### Submit Synchronous Route Matrix Request
165
+ * 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).
166
+ *
167
+ * ```
168
+ * POST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
169
+ * ```
170
+ *
171
+ * ### Submit Asynchronous Route Matrix Request
172
+ * 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.
173
+ *
174
+ *
175
+ * 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).
176
+ *
177
+ *
178
+ * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period.
179
+ *
180
+ *
181
+ *
182
+ *
183
+ * ```
184
+ * POST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
185
+ * ```
186
+ *
187
+ * Here's a typical sequence of asynchronous operations:
188
+ * 1. Client sends a Route Matrix POST request to Azure Maps
189
+ *
190
+ * 2. The server will respond with one of the following:
191
+ *
192
+ * > HTTP `202 Accepted` - Route Matrix request has been accepted.
193
+ *
194
+ * > 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.
195
+ *
196
+ *
197
+ * 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:
198
+ *
199
+ * ```
200
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
201
+ * ```
202
+ *
203
+ *
204
+ * 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
205
+ *
206
+ * ### Download Sync Results
207
+ * 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.
208
+ *
209
+ * ### Download Async Results
210
+ * 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:
211
+ * ```
212
+ * GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
213
+ * ```
214
+ *
215
+ * The URL provided by the location header will return the following responses when a `GET` request is issued.
216
+ *
217
+ * > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
218
+ *
219
+ * > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
220
+ */
221
+ post(options: RouteRequestRouteMatrixSyncParameters): StreamableMethod<RouteRequestRouteMatrixSync200Response | RouteRequestRouteMatrixSync408Response | RouteRequestRouteMatrixSyncDefaultResponse>;
222
+ }
223
+ export interface GetRouteDirections {
224
+ /**
225
+ *
226
+ * 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.
227
+ *
228
+ * 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.
229
+ *
230
+ * 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).
231
+ */
232
+ get(options: RouteGetRouteDirectionsParameters): StreamableMethod<RouteGetRouteDirections200Response | RouteGetRouteDirectionsDefaultResponse>;
233
+ /**
234
+ *
235
+ * 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.
236
+ *
237
+ * 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.
238
+ *
239
+ * 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.
240
+ */
241
+ post(options: RouteGetRouteDirectionsWithAdditionalParametersParameters): StreamableMethod<RouteGetRouteDirectionsWithAdditionalParameters200Response | RouteGetRouteDirectionsWithAdditionalParametersDefaultResponse>;
242
+ }
243
+ export interface GetRouteRange {
244
+ /**
245
+ *
246
+ * 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.
247
+ *
248
+ * 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.
249
+ */
250
+ get(options: RouteGetRouteRangeParameters): StreamableMethod<RouteGetRouteRange200Response | RouteGetRouteRangeDefaultResponse>;
251
+ }
252
+ export interface RequestRouteDirectionsBatch {
253
+ /**
254
+ *
255
+ * 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).
256
+ *
257
+ * ### Submit Asynchronous Batch Request
258
+ * The Asynchronous API is appropriate for processing big volumes of relatively complex route requests
259
+ * - It allows the retrieval of results in a separate call (multiple downloads are possible).
260
+ * - The asynchronous API is optimized for reliability and is not expected to run into a timeout.
261
+ * - The number of batch items is limited to **700** for this API.
262
+ *
263
+ * 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.
264
+ * The asynchronous responses are stored for **24** hours. The redirect URL returns a 404 response if used after the expiration period.
265
+ *
266
+ * Please note that asynchronous batch request is a long-running operation. Here's a typical sequence of operations:
267
+ * 1. Client sends a Route Directions Batch `POST` request to Azure Maps.
268
+ * ```
269
+ * POST https://atlas.microsoft.com/route/directions/batch/json?api-version=1.0&subscription-key={subscription-key}
270
+ * ```
271
+ * 2. The server will respond with one of the following:
272
+ *
273
+ * > HTTP `202 Accepted` - Batch request has been accepted.
274
+ *
275
+ * > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.
276
+ *
277
+ * 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.
278
+ * This status URI looks like following:
279
+ * ```
280
+ * GET https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}
281
+ * ```
282
+ * 4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.
283
+ *
284
+ * ### POST Body for Batch Request
285
+ * 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:
286
+ *
287
+ *
288
+ * ```json
289
+ * {
290
+ * "batchItems": [
291
+ * { "query": "?query=47.620659,-122.348934:47.610101,-122.342015&travelMode=bicycle&routeType=eco&traffic=false" },
292
+ * { "query": "?query=40.759856,-73.985108:40.771136,-73.973506&travelMode=pedestrian&routeType=shortest" },
293
+ * { "query": "?query=48.923159,-122.557362:32.621279,-116.840362" }
294
+ * ]
295
+ * }
296
+ * ```
297
+ *
298
+ * 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.
299
+ *
300
+ *
301
+ * 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.
302
+ *
303
+ *
304
+ * ### Download Asynchronous Batch Results
305
+ * 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:
306
+ *
307
+ * ```
308
+ * https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}
309
+ * ```
310
+ * Here's the typical sequence of operations for downloading the batch results:
311
+ * 1. Client sends a `GET` request using the _download URL_.
312
+ * 2. The server will respond with one of the following:
313
+ *
314
+ * > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.
315
+ *
316
+ * > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.
317
+ *
318
+ *
319
+ *
320
+ * ### Batch Response Model
321
+ * 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:
322
+ *
323
+ * - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
324
+ *
325
+ * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
326
+ *
327
+ *
328
+ * Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
329
+ *
330
+ *
331
+ * ```json
332
+ * {
333
+ * "summary": {
334
+ * "successfulRequests": 1,
335
+ * "totalRequests": 2
336
+ * },
337
+ * "batchItems": [
338
+ * {
339
+ * "statusCode": 200,
340
+ * "response": {
341
+ * "routes": [
342
+ * {
343
+ * "summary": {
344
+ * "lengthInMeters": 1758,
345
+ * "travelTimeInSeconds": 387,
346
+ * "trafficDelayInSeconds": 0,
347
+ * "departureTime": "2018-07-17T00:49:56+00:00",
348
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
349
+ * },
350
+ * "legs": [
351
+ * {
352
+ * "summary": {
353
+ * "lengthInMeters": 1758,
354
+ * "travelTimeInSeconds": 387,
355
+ * "trafficDelayInSeconds": 0,
356
+ * "departureTime": "2018-07-17T00:49:56+00:00",
357
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
358
+ * },
359
+ * "points": [
360
+ * {
361
+ * "latitude": 47.62094,
362
+ * "longitude": -122.34892
363
+ * },
364
+ * {
365
+ * "latitude": 47.62094,
366
+ * "longitude": -122.3485
367
+ * },
368
+ * {
369
+ * "latitude": 47.62095,
370
+ * "longitude": -122.3476
371
+ * }
372
+ * ]
373
+ * }
374
+ * ],
375
+ * "sections": [
376
+ * {
377
+ * "startPointIndex": 0,
378
+ * "endPointIndex": 40,
379
+ * "sectionType": "TRAVEL_MODE",
380
+ * "travelMode": "bicycle"
381
+ * }
382
+ * ]
383
+ * }
384
+ * ]
385
+ * }
386
+ * },
387
+ * {
388
+ * "statusCode": 400,
389
+ * "response":
390
+ * {
391
+ * "error":
392
+ * {
393
+ * "code": "400 BadRequest",
394
+ * "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
395
+ * }
396
+ * }
397
+ * }
398
+ * ]
399
+ * }
400
+ * ```
401
+ */
402
+ post(options: RouteRequestRouteDirectionsBatchParameters): StreamableMethod<RouteRequestRouteDirectionsBatch200Response | RouteRequestRouteDirectionsBatch202Response>;
403
+ /**
404
+ *
405
+ * 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.
406
+ *
407
+ * ### Download Asynchronous Batch Results
408
+ * 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:
409
+ *
410
+ * ```
411
+ * https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}
412
+ * ```
413
+ * Here's the typical sequence of operations for downloading the batch results:
414
+ * 1. Client sends a `GET` request using the _download URL_.
415
+ * 2. The server will respond with one of the following:
416
+ *
417
+ * > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.
418
+ *
419
+ * > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.
420
+ *
421
+ *
422
+ *
423
+ * ### Batch Response Model
424
+ * 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:
425
+ *
426
+ * - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
427
+ *
428
+ * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
429
+ *
430
+ *
431
+ * Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
432
+ *
433
+ *
434
+ * ```json
435
+ * {
436
+ * "summary": {
437
+ * "successfulRequests": 1,
438
+ * "totalRequests": 2
439
+ * },
440
+ * "batchItems": [
441
+ * {
442
+ * "statusCode": 200,
443
+ * "response": {
444
+ * "routes": [
445
+ * {
446
+ * "summary": {
447
+ * "lengthInMeters": 1758,
448
+ * "travelTimeInSeconds": 387,
449
+ * "trafficDelayInSeconds": 0,
450
+ * "departureTime": "2018-07-17T00:49:56+00:00",
451
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
452
+ * },
453
+ * "legs": [
454
+ * {
455
+ * "summary": {
456
+ * "lengthInMeters": 1758,
457
+ * "travelTimeInSeconds": 387,
458
+ * "trafficDelayInSeconds": 0,
459
+ * "departureTime": "2018-07-17T00:49:56+00:00",
460
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
461
+ * },
462
+ * "points": [
463
+ * {
464
+ * "latitude": 47.62094,
465
+ * "longitude": -122.34892
466
+ * },
467
+ * {
468
+ * "latitude": 47.62094,
469
+ * "longitude": -122.3485
470
+ * },
471
+ * {
472
+ * "latitude": 47.62095,
473
+ * "longitude": -122.3476
474
+ * }
475
+ * ]
476
+ * }
477
+ * ],
478
+ * "sections": [
479
+ * {
480
+ * "startPointIndex": 0,
481
+ * "endPointIndex": 40,
482
+ * "sectionType": "TRAVEL_MODE",
483
+ * "travelMode": "bicycle"
484
+ * }
485
+ * ]
486
+ * }
487
+ * ]
488
+ * }
489
+ * },
490
+ * {
491
+ * "statusCode": 400,
492
+ * "response":
493
+ * {
494
+ * "error":
495
+ * {
496
+ * "code": "400 BadRequest",
497
+ * "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
498
+ * }
499
+ * }
500
+ * }
501
+ * ]
502
+ * }
503
+ * ```
504
+ */
505
+ get(options?: RouteGetRouteDirectionsBatchParameters): StreamableMethod<RouteGetRouteDirectionsBatch200Response | RouteGetRouteDirectionsBatch202Response>;
506
+ }
507
+ export interface RequestRouteDirectionsBatchSync {
508
+ /**
509
+ *
510
+ * 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).
511
+ * ### Submit Synchronous Batch Request
512
+ * 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.
513
+ * ```
514
+ * POST https://atlas.microsoft.com/route/directions/batch/sync/json?api-version=1.0&subscription-key={subscription-key}
515
+ * ```
516
+ * ### Batch Response Model
517
+ * 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:
518
+ *
519
+ * - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
520
+ *
521
+ * - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
522
+ *
523
+ *
524
+ * Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
525
+ *
526
+ *
527
+ * ```json
528
+ * {
529
+ * "summary": {
530
+ * "successfulRequests": 1,
531
+ * "totalRequests": 2
532
+ * },
533
+ * "batchItems": [
534
+ * {
535
+ * "statusCode": 200,
536
+ * "response": {
537
+ * "routes": [
538
+ * {
539
+ * "summary": {
540
+ * "lengthInMeters": 1758,
541
+ * "travelTimeInSeconds": 387,
542
+ * "trafficDelayInSeconds": 0,
543
+ * "departureTime": "2018-07-17T00:49:56+00:00",
544
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
545
+ * },
546
+ * "legs": [
547
+ * {
548
+ * "summary": {
549
+ * "lengthInMeters": 1758,
550
+ * "travelTimeInSeconds": 387,
551
+ * "trafficDelayInSeconds": 0,
552
+ * "departureTime": "2018-07-17T00:49:56+00:00",
553
+ * "arrivalTime": "2018-07-17T00:56:22+00:00"
554
+ * },
555
+ * "points": [
556
+ * {
557
+ * "latitude": 47.62094,
558
+ * "longitude": -122.34892
559
+ * },
560
+ * {
561
+ * "latitude": 47.62094,
562
+ * "longitude": -122.3485
563
+ * },
564
+ * {
565
+ * "latitude": 47.62095,
566
+ * "longitude": -122.3476
567
+ * }
568
+ * ]
569
+ * }
570
+ * ],
571
+ * "sections": [
572
+ * {
573
+ * "startPointIndex": 0,
574
+ * "endPointIndex": 40,
575
+ * "sectionType": "TRAVEL_MODE",
576
+ * "travelMode": "bicycle"
577
+ * }
578
+ * ]
579
+ * }
580
+ * ]
581
+ * }
582
+ * },
583
+ * {
584
+ * "statusCode": 400,
585
+ * "response":
586
+ * {
587
+ * "error":
588
+ * {
589
+ * "code": "400 BadRequest",
590
+ * "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
591
+ * }
592
+ * }
593
+ * }
594
+ * ]
595
+ * }
596
+ * ```
597
+ */
598
+ post(options: RouteRequestRouteDirectionsBatchSyncParameters): StreamableMethod<RouteRequestRouteDirectionsBatchSync200Response | RouteRequestRouteDirectionsBatchSync408Response | RouteRequestRouteDirectionsBatchSyncDefaultResponse>;
599
+ }
600
+ export interface Routes {
601
+ /** Resource for '/route/matrix/\{format\}' has methods for the following verbs: post, get */
602
+ (path: "/route/matrix/{format}", format: "json"): RequestRouteMatrix;
603
+ /** Resource for '/route/matrix/sync/\{format\}' has methods for the following verbs: post */
604
+ (path: "/route/matrix/sync/{format}", format: "json"): RequestRouteMatrixSync;
605
+ /** Resource for '/route/directions/\{format\}' has methods for the following verbs: get, post */
606
+ (path: "/route/directions/{format}", format: "json" | "xml"): GetRouteDirections;
607
+ /** Resource for '/route/range/\{format\}' has methods for the following verbs: get */
608
+ (path: "/route/range/{format}", format: "json" | "xml"): GetRouteRange;
609
+ /** Resource for '/route/directions/batch/\{format\}' has methods for the following verbs: post, get */
610
+ (path: "/route/directions/batch/{format}", format: "json"): RequestRouteDirectionsBatch;
611
+ /** Resource for '/route/directions/batch/sync/\{format\}' has methods for the following verbs: post */
612
+ (path: "/route/directions/batch/sync/{format}", format: "json"): RequestRouteDirectionsBatchSync;
613
+ }
614
+ export type MapsRouteClient = Client & {
615
+ path: Routes;
616
+ };
617
+ //# sourceMappingURL=clientDefinitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientDefinitions.d.ts","sourceRoot":"","sources":["../../../src/generated/clientDefinitions.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=clientDefinitions.js.map