@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.
- package/LICENSE +4 -4
- package/README.md +81 -67
- package/dist/browser/generated/clientDefinitions.d.ts +617 -0
- package/dist/browser/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/browser/generated/clientDefinitions.js +4 -0
- package/dist/browser/generated/clientDefinitions.js.map +1 -0
- package/dist/browser/generated/index.d.ts +12 -0
- package/dist/browser/generated/index.d.ts.map +1 -0
- package/dist/browser/generated/index.js +14 -0
- package/dist/browser/generated/index.js.map +1 -0
- package/dist/browser/generated/isUnexpected.d.ts +7 -0
- package/dist/browser/generated/isUnexpected.d.ts.map +1 -0
- package/dist/browser/generated/isUnexpected.js +79 -0
- package/dist/browser/generated/isUnexpected.js.map +1 -0
- package/dist/browser/generated/logger.d.ts +2 -0
- package/dist/browser/generated/logger.d.ts.map +1 -0
- package/dist/browser/generated/logger.js +5 -0
- package/dist/browser/generated/logger.js.map +1 -0
- package/dist/browser/generated/mapsRouteClient.d.ts +15 -0
- package/dist/browser/generated/mapsRouteClient.d.ts.map +1 -0
- package/dist/browser/generated/mapsRouteClient.js +42 -0
- package/dist/browser/generated/mapsRouteClient.js.map +1 -0
- package/dist/browser/generated/models.d.ts +130 -0
- package/dist/browser/generated/models.d.ts.map +1 -0
- package/dist/browser/generated/models.js +4 -0
- package/dist/browser/generated/models.js.map +1 -0
- package/dist/browser/generated/outputModels.d.ts +286 -0
- package/dist/browser/generated/outputModels.d.ts.map +1 -0
- package/dist/browser/generated/outputModels.js +4 -0
- package/dist/browser/generated/outputModels.js.map +1 -0
- package/dist/browser/generated/parameters.d.ts +937 -0
- package/dist/browser/generated/parameters.d.ts.map +1 -0
- package/dist/browser/generated/parameters.js +4 -0
- package/dist/browser/generated/parameters.js.map +1 -0
- package/dist/browser/generated/pollingHelper.d.ts +76 -0
- package/dist/browser/generated/pollingHelper.d.ts.map +1 -0
- package/dist/browser/generated/pollingHelper.js +105 -0
- package/dist/browser/generated/pollingHelper.js.map +1 -0
- package/dist/browser/generated/responses.d.ts +1409 -0
- package/dist/browser/generated/responses.d.ts.map +1 -0
- package/dist/browser/generated/responses.js +4 -0
- package/dist/browser/generated/responses.js.map +1 -0
- package/dist/browser/generated/serializeHelper.d.ts +2 -0
- package/dist/browser/generated/serializeHelper.d.ts.map +1 -0
- package/dist/browser/generated/serializeHelper.js +13 -0
- package/dist/browser/generated/serializeHelper.js.map +1 -0
- package/dist/browser/helpers.d.ts +18 -0
- package/dist/browser/helpers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/helpers.js +1 -1
- package/dist/browser/helpers.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +7 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/mapsRoute.d.ts +53 -0
- package/dist/browser/mapsRoute.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/mapsRoute.js +5 -5
- package/dist/browser/mapsRoute.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/commonjs/generated/clientDefinitions.d.ts +617 -0
- package/dist/commonjs/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/commonjs/generated/clientDefinitions.js +5 -0
- package/dist/commonjs/generated/clientDefinitions.js.map +1 -0
- package/dist/commonjs/generated/index.d.ts +12 -0
- package/dist/commonjs/generated/index.d.ts.map +1 -0
- package/dist/commonjs/generated/index.js +17 -0
- package/dist/commonjs/generated/index.js.map +1 -0
- package/dist/commonjs/generated/isUnexpected.d.ts +7 -0
- package/dist/commonjs/generated/isUnexpected.d.ts.map +1 -0
- package/dist/commonjs/generated/isUnexpected.js +82 -0
- package/dist/commonjs/generated/isUnexpected.js.map +1 -0
- package/dist/commonjs/generated/logger.d.ts +2 -0
- package/dist/commonjs/generated/logger.d.ts.map +1 -0
- package/dist/commonjs/generated/logger.js +8 -0
- package/dist/commonjs/generated/logger.js.map +1 -0
- package/dist/commonjs/generated/mapsRouteClient.d.ts +15 -0
- package/dist/commonjs/generated/mapsRouteClient.d.ts.map +1 -0
- package/dist/commonjs/generated/mapsRouteClient.js +45 -0
- package/dist/commonjs/generated/mapsRouteClient.js.map +1 -0
- package/dist/commonjs/generated/models.d.ts +130 -0
- package/dist/commonjs/generated/models.d.ts.map +1 -0
- package/dist/commonjs/generated/models.js +5 -0
- package/dist/commonjs/generated/models.js.map +1 -0
- package/dist/commonjs/generated/outputModels.d.ts +286 -0
- package/dist/commonjs/generated/outputModels.d.ts.map +1 -0
- package/dist/commonjs/generated/outputModels.js +5 -0
- package/dist/commonjs/generated/outputModels.js.map +1 -0
- package/dist/commonjs/generated/parameters.d.ts +937 -0
- package/dist/commonjs/generated/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/parameters.js +5 -0
- package/dist/commonjs/generated/parameters.js.map +1 -0
- package/dist/commonjs/generated/pollingHelper.d.ts +76 -0
- package/dist/commonjs/generated/pollingHelper.d.ts.map +1 -0
- package/dist/commonjs/generated/pollingHelper.js +108 -0
- package/dist/commonjs/generated/pollingHelper.js.map +1 -0
- package/dist/commonjs/generated/responses.d.ts +1409 -0
- package/dist/commonjs/generated/responses.d.ts.map +1 -0
- package/dist/commonjs/generated/responses.js +5 -0
- package/dist/commonjs/generated/responses.js.map +1 -0
- package/dist/commonjs/generated/serializeHelper.d.ts +2 -0
- package/dist/commonjs/generated/serializeHelper.d.ts.map +1 -0
- package/dist/commonjs/generated/serializeHelper.js +16 -0
- package/dist/commonjs/generated/serializeHelper.js.map +1 -0
- package/dist/commonjs/helpers.d.ts +18 -0
- package/dist/commonjs/helpers.d.ts.map +1 -0
- package/dist/commonjs/helpers.js +47 -0
- package/dist/commonjs/helpers.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +10 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/mapsRoute.d.ts +53 -0
- package/dist/commonjs/mapsRoute.d.ts.map +1 -0
- package/dist/commonjs/mapsRoute.js +44 -0
- package/dist/commonjs/mapsRoute.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/generated/clientDefinitions.d.ts +617 -0
- package/dist/esm/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/esm/generated/clientDefinitions.js +4 -0
- package/dist/esm/generated/clientDefinitions.js.map +1 -0
- package/dist/esm/generated/index.d.ts +12 -0
- package/dist/esm/generated/index.d.ts.map +1 -0
- package/dist/esm/generated/index.js +14 -0
- package/dist/esm/generated/index.js.map +1 -0
- package/dist/esm/generated/isUnexpected.d.ts +7 -0
- package/dist/esm/generated/isUnexpected.d.ts.map +1 -0
- package/dist/esm/generated/isUnexpected.js +79 -0
- package/dist/esm/generated/isUnexpected.js.map +1 -0
- package/dist/esm/generated/logger.d.ts +2 -0
- package/dist/esm/generated/logger.d.ts.map +1 -0
- package/dist/esm/generated/logger.js +5 -0
- package/dist/esm/generated/logger.js.map +1 -0
- package/dist/esm/generated/mapsRouteClient.d.ts +15 -0
- package/dist/esm/generated/mapsRouteClient.d.ts.map +1 -0
- package/dist/esm/generated/mapsRouteClient.js +42 -0
- package/dist/esm/generated/mapsRouteClient.js.map +1 -0
- package/dist/esm/generated/models.d.ts +130 -0
- package/dist/esm/generated/models.d.ts.map +1 -0
- package/dist/esm/generated/models.js +4 -0
- package/dist/esm/generated/models.js.map +1 -0
- package/dist/esm/generated/outputModels.d.ts +286 -0
- package/dist/esm/generated/outputModels.d.ts.map +1 -0
- package/dist/esm/generated/outputModels.js +4 -0
- package/dist/esm/generated/outputModels.js.map +1 -0
- package/dist/esm/generated/parameters.d.ts +937 -0
- package/dist/esm/generated/parameters.d.ts.map +1 -0
- package/dist/esm/generated/parameters.js +4 -0
- package/dist/esm/generated/parameters.js.map +1 -0
- package/dist/esm/generated/pollingHelper.d.ts +76 -0
- package/dist/esm/generated/pollingHelper.d.ts.map +1 -0
- package/dist/esm/generated/pollingHelper.js +105 -0
- package/dist/esm/generated/pollingHelper.js.map +1 -0
- package/dist/esm/generated/responses.d.ts +1409 -0
- package/dist/esm/generated/responses.d.ts.map +1 -0
- package/dist/esm/generated/responses.js +4 -0
- package/dist/esm/generated/responses.js.map +1 -0
- package/dist/esm/generated/serializeHelper.d.ts +2 -0
- package/dist/esm/generated/serializeHelper.d.ts.map +1 -0
- package/dist/esm/generated/serializeHelper.js +13 -0
- package/dist/esm/generated/serializeHelper.js.map +1 -0
- package/dist/esm/helpers.d.ts +18 -0
- package/dist/esm/helpers.d.ts.map +1 -0
- package/dist/esm/helpers.js +43 -0
- package/dist/esm/helpers.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/mapsRoute.d.ts +53 -0
- package/dist/esm/mapsRoute.d.ts.map +1 -0
- package/dist/esm/mapsRoute.js +40 -0
- package/dist/esm/mapsRoute.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/react-native/generated/clientDefinitions.d.ts +617 -0
- package/dist/react-native/generated/clientDefinitions.d.ts.map +1 -0
- package/dist/react-native/generated/clientDefinitions.js +4 -0
- package/dist/react-native/generated/clientDefinitions.js.map +1 -0
- package/dist/react-native/generated/index.d.ts +12 -0
- package/dist/react-native/generated/index.d.ts.map +1 -0
- package/dist/react-native/generated/index.js +14 -0
- package/dist/react-native/generated/index.js.map +1 -0
- package/dist/react-native/generated/isUnexpected.d.ts +7 -0
- package/dist/react-native/generated/isUnexpected.d.ts.map +1 -0
- package/dist/react-native/generated/isUnexpected.js +79 -0
- package/dist/react-native/generated/isUnexpected.js.map +1 -0
- package/dist/react-native/generated/logger.d.ts +2 -0
- package/dist/react-native/generated/logger.d.ts.map +1 -0
- package/dist/react-native/generated/logger.js +5 -0
- package/dist/react-native/generated/logger.js.map +1 -0
- package/dist/react-native/generated/mapsRouteClient.d.ts +15 -0
- package/dist/react-native/generated/mapsRouteClient.d.ts.map +1 -0
- package/dist/react-native/generated/mapsRouteClient.js +42 -0
- package/dist/react-native/generated/mapsRouteClient.js.map +1 -0
- package/dist/react-native/generated/models.d.ts +130 -0
- package/dist/react-native/generated/models.d.ts.map +1 -0
- package/dist/react-native/generated/models.js +4 -0
- package/dist/react-native/generated/models.js.map +1 -0
- package/dist/react-native/generated/outputModels.d.ts +286 -0
- package/dist/react-native/generated/outputModels.d.ts.map +1 -0
- package/dist/react-native/generated/outputModels.js +4 -0
- package/dist/react-native/generated/outputModels.js.map +1 -0
- package/dist/react-native/generated/parameters.d.ts +937 -0
- package/dist/react-native/generated/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/parameters.js +4 -0
- package/dist/react-native/generated/parameters.js.map +1 -0
- package/dist/react-native/generated/pollingHelper.d.ts +76 -0
- package/dist/react-native/generated/pollingHelper.d.ts.map +1 -0
- package/dist/react-native/generated/pollingHelper.js +105 -0
- package/dist/react-native/generated/pollingHelper.js.map +1 -0
- package/dist/react-native/generated/responses.d.ts +1409 -0
- package/dist/react-native/generated/responses.d.ts.map +1 -0
- package/dist/react-native/generated/responses.js +4 -0
- package/dist/react-native/generated/responses.js.map +1 -0
- package/dist/react-native/generated/serializeHelper.d.ts +2 -0
- package/dist/react-native/generated/serializeHelper.d.ts.map +1 -0
- package/dist/react-native/generated/serializeHelper.js +13 -0
- package/dist/react-native/generated/serializeHelper.js.map +1 -0
- package/dist/react-native/helpers.d.ts +18 -0
- package/dist/react-native/helpers.d.ts.map +1 -0
- package/dist/react-native/helpers.js +43 -0
- package/dist/react-native/helpers.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +7 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/mapsRoute.d.ts +53 -0
- package/dist/react-native/mapsRoute.d.ts.map +1 -0
- package/dist/react-native/mapsRoute.js +40 -0
- package/dist/react-native/mapsRoute.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/package.json +80 -63
- package/dist/index.js +0 -257
- package/dist/index.js.map +0 -1
- package/dist-esm/src/generated/clientDefinitions.js +0 -4
- package/dist-esm/src/generated/clientDefinitions.js.map +0 -1
- package/dist-esm/src/generated/index.js +0 -13
- package/dist-esm/src/generated/index.js.map +0 -1
- package/dist-esm/src/generated/isUnexpected.js +0 -76
- package/dist-esm/src/generated/isUnexpected.js.map +0 -1
- package/dist-esm/src/generated/mapsRouteClient.js +0 -30
- package/dist-esm/src/generated/mapsRouteClient.js.map +0 -1
- package/dist-esm/src/generated/models.js +0 -4
- package/dist-esm/src/generated/models.js.map +0 -1
- package/dist-esm/src/generated/outputModels.js +0 -4
- package/dist-esm/src/generated/outputModels.js.map +0 -1
- package/dist-esm/src/generated/parameters.js +0 -4
- package/dist-esm/src/generated/parameters.js.map +0 -1
- package/dist-esm/src/generated/pollingHelper.js +0 -55
- package/dist-esm/src/generated/pollingHelper.js.map +0 -1
- package/dist-esm/src/generated/responses.js +0 -4
- package/dist-esm/src/generated/responses.js.map +0 -1
- package/dist-esm/src/helpers.js.map +0 -1
- package/dist-esm/src/index.js +0 -7
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/mapsRoute.js.map +0 -1
- package/review/maps-route.api.md +0 -911
- package/types/maps-route-rest.d.ts +0 -3431
|
@@ -1,3431 +0,0 @@
|
|
|
1
|
-
import { AzureKeyCredential } from '@azure/core-auth';
|
|
2
|
-
import { AzureSASCredential } from '@azure/core-auth';
|
|
3
|
-
import { Client } from '@azure-rest/core-client';
|
|
4
|
-
import { ClientOptions } from '@azure-rest/core-client';
|
|
5
|
-
import { HttpResponse } from '@azure-rest/core-client';
|
|
6
|
-
import { LatLon } from '@azure/maps-common';
|
|
7
|
-
import { LroEngineOptions } from '@azure/core-lro';
|
|
8
|
-
import { PollerLike } from '@azure/core-lro';
|
|
9
|
-
import { PollOperationState } from '@azure/core-lro';
|
|
10
|
-
import { RawHttpHeaders } from '@azure/core-rest-pipeline';
|
|
11
|
-
import { RequestParameters } from '@azure-rest/core-client';
|
|
12
|
-
import { StreamableMethod } from '@azure-rest/core-client';
|
|
13
|
-
import { TokenCredential } from '@azure/core-auth';
|
|
14
|
-
|
|
15
|
-
/** This type represents the request body for the Batch service. */
|
|
16
|
-
export declare interface BatchRequest {
|
|
17
|
-
/** The list of queries to process. */
|
|
18
|
-
batchItems?: Array<BatchRequestItem>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/** Batch request object */
|
|
22
|
-
export declare interface BatchRequestItem {
|
|
23
|
-
/** This parameter contains a query string used to perform an unstructured geocoding operation. The query string will be passed verbatim to the search API for processing. */
|
|
24
|
-
query?: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/** An item returned from Batch API. Extend with 'response' property. */
|
|
28
|
-
export declare interface BatchResultItemOutput {
|
|
29
|
-
/** HTTP request status code. */
|
|
30
|
-
statusCode: number;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/** This object is returned from a successful Batch service call. Extend with 'batchItems' property. */
|
|
34
|
-
export declare interface BatchResultOutput {
|
|
35
|
-
/** Summary of the results for the batch request */
|
|
36
|
-
summary: BatchResultSummaryOutput;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/** Summary of the results for the batch request */
|
|
40
|
-
export declare interface BatchResultSummaryOutput {
|
|
41
|
-
/** Number of successful requests in the batch */
|
|
42
|
-
successfulRequests: number;
|
|
43
|
-
/** Total number of requests in the batch */
|
|
44
|
-
totalRequests: number;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Create a batch request body of a bunch of route direction requests.
|
|
49
|
-
*
|
|
50
|
-
* @param queryParamProperties - An object of the query parameters for a route direction request
|
|
51
|
-
* @returns The composed batch request.
|
|
52
|
-
*/
|
|
53
|
-
export declare function createRouteDirectionsBatchRequest(queryParamProperties: RouteGetRouteDirectionsQueryParamProperties[]): BatchRequest;
|
|
54
|
-
|
|
55
|
-
/** Effective parameter or data used when calling this Route API. */
|
|
56
|
-
export declare interface EffectiveSettingOutput {
|
|
57
|
-
/** Name of the parameter used. */
|
|
58
|
-
key: string;
|
|
59
|
-
/** Value of the parameter used. */
|
|
60
|
-
value: string;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/** The error detail. */
|
|
64
|
-
export declare interface ErrorDetailOutput {
|
|
65
|
-
/** The error code. */
|
|
66
|
-
code?: string;
|
|
67
|
-
/** The error message. */
|
|
68
|
-
message?: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
|
|
72
|
-
export declare interface ErrorResponseOutput {
|
|
73
|
-
/** The error object. */
|
|
74
|
-
error?: ErrorDetailOutput;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/** A valid `GeoJSON Feature` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.2) for details. */
|
|
78
|
-
export declare interface GeoJsonFeature extends GeoJsonObjectParent, GeoJsonFeatureData {
|
|
79
|
-
type: "Feature";
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/** A valid `GeoJSON FeatureCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.3) for details. */
|
|
83
|
-
export declare interface GeoJsonFeatureCollection extends GeoJsonObjectParent, GeoJsonFeatureCollectionData {
|
|
84
|
-
type: "FeatureCollection";
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export declare interface GeoJsonFeatureCollectionData {
|
|
88
|
-
/** Contains a list of valid `GeoJSON Feature` objects. */
|
|
89
|
-
features: Array<GeoJsonFeature>;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export declare interface GeoJsonFeatureData {
|
|
93
|
-
/** A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details. */
|
|
94
|
-
geometry: GeoJsonGeometry;
|
|
95
|
-
/** Properties can contain any additional metadata about the `Feature`. Value can be any JSON object or a JSON null value */
|
|
96
|
-
properties?: Record<string, unknown>;
|
|
97
|
-
/** Identifier for the feature. */
|
|
98
|
-
id?: string;
|
|
99
|
-
/** The type of the feature. The value depends on the data model the current feature is part of. Some data models may have an empty value. */
|
|
100
|
-
featureType?: string;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/** A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details. */
|
|
104
|
-
export declare type GeoJsonGeometry = GeoJsonGeometryParent | GeoJsonMultiPoint | GeoJsonMultiPolygon | GeoJsonPoint | GeoJsonLineString | GeoJsonMultiLineString | GeoJsonPolygon | GeoJsonGeometryCollection;
|
|
105
|
-
|
|
106
|
-
/** A valid `GeoJSON GeometryCollection` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.8) for details. */
|
|
107
|
-
export declare interface GeoJsonGeometryCollection extends GeoJsonGeometryParent, GeoJsonGeometryCollectionData {
|
|
108
|
-
type: "GeometryCollection";
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export declare interface GeoJsonGeometryCollectionData {
|
|
112
|
-
/** Contains a list of valid `GeoJSON` geometry objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude). */
|
|
113
|
-
geometries: Array<GeoJsonGeometry>;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/** A valid `GeoJSON` geometry object. The type must be one of the seven valid GeoJSON geometry types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1) for details. */
|
|
117
|
-
export declare interface GeoJsonGeometryParent extends GeoJsonObjectParent {
|
|
118
|
-
type: "GeoJsonGeometry" | "MultiPoint" | "MultiPolygon" | "Point" | "LineString" | "MultiLineString" | "Polygon" | "GeometryCollection";
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/** A valid `GeoJSON LineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.4) for details. */
|
|
122
|
-
export declare interface GeoJsonLineString extends GeoJsonGeometryParent, GeoJsonLineStringData {
|
|
123
|
-
type: "LineString";
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export declare interface GeoJsonLineStringData {
|
|
127
|
-
/** Coordinates for the `GeoJson LineString` geometry. */
|
|
128
|
-
coordinates: Array<Array<number>>;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/** A valid `GeoJSON MultiLineString` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.5) for details. */
|
|
132
|
-
export declare interface GeoJsonMultiLineString extends GeoJsonGeometryParent, GeoJsonMultiLineStringData {
|
|
133
|
-
type: "MultiLineString";
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export declare interface GeoJsonMultiLineStringData {
|
|
137
|
-
/** Coordinates for the `GeoJson MultiLineString` geometry. */
|
|
138
|
-
coordinates: Array<Array<Array<number>>>;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/** A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details. */
|
|
142
|
-
export declare interface GeoJsonMultiPoint extends GeoJsonGeometryParent, GeoJsonMultiPointData {
|
|
143
|
-
type: "MultiPoint";
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/** Data contained by a `GeoJson MultiPoint`. */
|
|
147
|
-
export declare interface GeoJsonMultiPointData {
|
|
148
|
-
/** Coordinates for the `GeoJson MultiPoint` geometry. */
|
|
149
|
-
coordinates: Array<Array<number>>;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/** A valid `GeoJSON MultiPolygon` object type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.7) for details. */
|
|
153
|
-
export declare interface GeoJsonMultiPolygon extends GeoJsonGeometryParent, GeoJsonMultiPolygonData {
|
|
154
|
-
type: "MultiPolygon";
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export declare interface GeoJsonMultiPolygonData {
|
|
158
|
-
/** Contains a list of valid `GeoJSON Polygon` objects. **Note** that coordinates in GeoJSON are in x, y order (longitude, latitude). */
|
|
159
|
-
coordinates: Array<Array<Array<Array<number>>>>;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/** A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details. */
|
|
163
|
-
export declare type GeoJsonObject = GeoJsonGeometry | GeoJsonMultiPoint | GeoJsonMultiPolygon | GeoJsonPoint | GeoJsonLineString | GeoJsonMultiLineString | GeoJsonPolygon | GeoJsonGeometryCollection | GeoJsonFeature | GeoJsonFeatureCollection;
|
|
164
|
-
|
|
165
|
-
/** A valid `GeoJSON` object. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3) for details. */
|
|
166
|
-
export declare interface GeoJsonObjectParent {
|
|
167
|
-
type: "GeoJsonObject" | "GeoJsonGeometry" | "MultiPoint" | "MultiPolygon" | "Point" | "LineString" | "MultiLineString" | "Polygon" | "GeometryCollection" | "Feature" | "FeatureCollection";
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/** A valid `GeoJSON Point` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.2) for details. */
|
|
171
|
-
export declare interface GeoJsonPoint extends GeoJsonGeometryParent, GeoJsonPointData {
|
|
172
|
-
type: "Point";
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/** Data contained by a `GeoJson Point`. */
|
|
176
|
-
export declare interface GeoJsonPointData {
|
|
177
|
-
/** A `Position` is an array of numbers with two or more elements. The first two elements are _longitude_ and _latitude_, precisely in that order. _Altitude/Elevation_ is an optional third element. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.1) for details. */
|
|
178
|
-
coordinates: Array<number>;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/** A valid `GeoJSON Polygon` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.6) for details. */
|
|
182
|
-
export declare interface GeoJsonPolygon extends GeoJsonGeometryParent, GeoJsonPolygonData {
|
|
183
|
-
type: "Polygon";
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export declare interface GeoJsonPolygonData {
|
|
187
|
-
/** Coordinates for the `GeoJson Polygon` geometry type. */
|
|
188
|
-
coordinates: Array<Array<Array<number>>>;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Helper function that builds a Poller object to help polling a long running operation.
|
|
193
|
-
* @param client - Client to use for sending the request to get additional pages.
|
|
194
|
-
* @param initialResponse - The initial response.
|
|
195
|
-
* @param options - Options to set a resume state or custom polling interval.
|
|
196
|
-
* @returns - A poller object to poll for operation state updates and eventually get the final response.
|
|
197
|
-
*/
|
|
198
|
-
export declare function getLongRunningPoller<TResult extends HttpResponse>(client: Client, initialResponse: TResult, options?: LroEngineOptions<TResult, PollOperationState<TResult>>): PollerLike<PollOperationState<TResult>, TResult>;
|
|
199
|
-
|
|
200
|
-
export declare interface GetRouteDirections {
|
|
201
|
-
/**
|
|
202
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
* 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.
|
|
206
|
-
*
|
|
207
|
-
* 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.
|
|
208
|
-
*
|
|
209
|
-
* Routing service provides a set of parameters for a detailed description of 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.
|
|
210
|
-
*/
|
|
211
|
-
get(options: RouteGetRouteDirectionsParameters): StreamableMethod<RouteGetRouteDirections200Response | RouteGetRouteDirectionsDefaultResponse>;
|
|
212
|
-
/**
|
|
213
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
* 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.
|
|
217
|
-
*
|
|
218
|
-
* 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.
|
|
219
|
-
*
|
|
220
|
-
* 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.
|
|
221
|
-
*/
|
|
222
|
-
post(options: RouteGetRouteDirectionsWithAdditionalParametersParameters): StreamableMethod<RouteGetRouteDirectionsWithAdditionalParameters200Response | RouteGetRouteDirectionsWithAdditionalParametersDefaultResponse>;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export declare interface GetRouteRange {
|
|
226
|
-
/**
|
|
227
|
-
* __Route Range (Isochrone) API__
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
231
|
-
*
|
|
232
|
-
* This service 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.
|
|
233
|
-
*
|
|
234
|
-
* The returned polygon can be used for further processing such as [Search Inside Geometry](https://docs.microsoft.com/rest/api/maps/search/postsearchinsidegeometry) to search for POIs within the provided Isochrone.
|
|
235
|
-
*/
|
|
236
|
-
get(options: RouteGetRouteRangeParameters): StreamableMethod<RouteGetRouteRange200Response | RouteGetRouteRangeDefaultResponse>;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
export declare function isUnexpected(response: RouteRequestRouteMatrixSync200Response | RouteRequestRouteMatrixSync408Response | RouteRequestRouteMatrixSyncDefaultResponse): response is RouteRequestRouteMatrixSync408Response;
|
|
240
|
-
|
|
241
|
-
export declare function isUnexpected(response: RouteGetRouteDirections200Response | RouteGetRouteDirectionsDefaultResponse): response is RouteGetRouteDirectionsDefaultResponse;
|
|
242
|
-
|
|
243
|
-
export declare function isUnexpected(response: RouteGetRouteDirectionsWithAdditionalParameters200Response | RouteGetRouteDirectionsWithAdditionalParametersDefaultResponse): response is RouteGetRouteDirectionsWithAdditionalParametersDefaultResponse;
|
|
244
|
-
|
|
245
|
-
export declare function isUnexpected(response: RouteGetRouteRange200Response | RouteGetRouteRangeDefaultResponse): response is RouteGetRouteRangeDefaultResponse;
|
|
246
|
-
|
|
247
|
-
export declare function isUnexpected(response: RouteRequestRouteDirectionsBatchSync200Response | RouteRequestRouteDirectionsBatchSync408Response | RouteRequestRouteDirectionsBatchSyncDefaultResponse): response is RouteRequestRouteDirectionsBatchSync408Response;
|
|
248
|
-
|
|
249
|
-
/** A location represented as a latitude and longitude. */
|
|
250
|
-
export declare interface LatLongPairOutput {
|
|
251
|
-
/** Latitude property */
|
|
252
|
-
latitude: number;
|
|
253
|
-
/** Longitude property */
|
|
254
|
-
longitude: number;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* Creates an instance of MapsRouteClient from a subscription key.
|
|
259
|
-
*
|
|
260
|
-
* @example
|
|
261
|
-
* ```ts
|
|
262
|
-
* import MapsRoute from "@azure-rest/maps-route";
|
|
263
|
-
* import { AzureKeyCredential } from "@azure/core-auth";
|
|
264
|
-
*
|
|
265
|
-
* const credential = new AzureKeyCredential("<subscription-key>");
|
|
266
|
-
* const client = MapsRoute(credential);
|
|
267
|
-
*```
|
|
268
|
-
*
|
|
269
|
-
* @param credential - An AzureKeyCredential instance used to authenticate requests to the service
|
|
270
|
-
* @param options - Options used to configure the Route Client
|
|
271
|
-
*/
|
|
272
|
-
declare function MapsRoute(credential: AzureKeyCredential, options?: ClientOptions): MapsRouteClient;
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* Creates an instance of MapsRoute from an Azure Identity `TokenCredential`.
|
|
276
|
-
*
|
|
277
|
-
* @example
|
|
278
|
-
* ```ts
|
|
279
|
-
* import MapsRoute from "@azure-rest/maps-route";
|
|
280
|
-
* import { DefaultAzureCredential } from "@azure/identity";
|
|
281
|
-
*
|
|
282
|
-
* const credential = new DefaultAzureCredential();
|
|
283
|
-
* const client = MapsRoute(credential, "<maps-account-client-id>");
|
|
284
|
-
*```
|
|
285
|
-
*
|
|
286
|
-
* @param credential - An TokenCredential instance used to authenticate requests to the service
|
|
287
|
-
* @param mapsAccountClientId - The Azure Maps client id of a specific map resource
|
|
288
|
-
* @param options - Options used to configure the Route Client
|
|
289
|
-
*/
|
|
290
|
-
declare function MapsRoute(credential: TokenCredential, mapsAccountClientId: string, options?: ClientOptions): MapsRouteClient;
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* Creates an instance of MapsRoute from an Azure Identity `AzureSASCredential`.
|
|
294
|
-
*
|
|
295
|
-
* @example
|
|
296
|
-
* ```ts
|
|
297
|
-
* import MapsRoute from "@azure-rest/maps-route";
|
|
298
|
-
* import { AzureSASCredential } from "@azure/core-auth";
|
|
299
|
-
*
|
|
300
|
-
* const credential = new AzureSASCredential("<SAS Token>");
|
|
301
|
-
* const client = MapsRoute(credential);
|
|
302
|
-
* ```
|
|
303
|
-
*
|
|
304
|
-
* @param credential - An AzureSASCredential instance used to authenticate requests to the service
|
|
305
|
-
* @param options - Options used to configure the Route Client
|
|
306
|
-
*/
|
|
307
|
-
declare function MapsRoute(credential: AzureSASCredential, options?: ClientOptions): MapsRouteClient;
|
|
308
|
-
export default MapsRoute;
|
|
309
|
-
|
|
310
|
-
export declare type MapsRouteClient = Client & {
|
|
311
|
-
path: Routes;
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
export declare interface RequestRouteDirectionsBatch {
|
|
315
|
-
/**
|
|
316
|
-
* **Route Directions Batch API**
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
* The Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/rest/api/maps/route/getroutedirections) using just a single API call. 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.
|
|
324
|
-
* ### Submit Asynchronous Batch Request
|
|
325
|
-
* The Asynchronous API is appropriate for processing big volumes of relatively complex route requests
|
|
326
|
-
* - It allows the retrieval of results in a separate call (multiple downloads are possible).
|
|
327
|
-
* - The asynchronous API is optimized for reliability and is not expected to run into a timeout.
|
|
328
|
-
* - The number of batch items is limited to **700** for this API.
|
|
329
|
-
*
|
|
330
|
-
* 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.
|
|
331
|
-
* The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.
|
|
332
|
-
*
|
|
333
|
-
* Please note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:
|
|
334
|
-
* 1. Client sends a Route Directions Batch `POST` request to Azure Maps
|
|
335
|
-
* 2. The server will respond with one of the following:
|
|
336
|
-
*
|
|
337
|
-
* > HTTP `202 Accepted` - Batch request has been accepted.
|
|
338
|
-
*
|
|
339
|
-
* > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.
|
|
340
|
-
*
|
|
341
|
-
* 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.
|
|
342
|
-
* This status URI looks like following:
|
|
343
|
-
*
|
|
344
|
-
* ``` GET https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0 ```
|
|
345
|
-
* Note:- Please remember to add AUTH information (subscription-key/azure_auth - See [Security](#security)) to the _status URI_ before running it. <br>
|
|
346
|
-
* 4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.
|
|
347
|
-
*
|
|
348
|
-
* ### POST Body for Batch Request
|
|
349
|
-
* 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:
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
* ```json
|
|
353
|
-
* {
|
|
354
|
-
* "batchItems": [
|
|
355
|
-
* { "query": "?query=47.620659,-122.348934:47.610101,-122.342015&travelMode=bicycle&routeType=eco&traffic=false" },
|
|
356
|
-
* { "query": "?query=40.759856,-73.985108:40.771136,-73.973506&travelMode=pedestrian&routeType=shortest" },
|
|
357
|
-
* { "query": "?query=48.923159,-122.557362:32.621279,-116.840362" }
|
|
358
|
-
* ]
|
|
359
|
-
* }
|
|
360
|
-
* ```
|
|
361
|
-
*
|
|
362
|
-
* 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.
|
|
363
|
-
*
|
|
364
|
-
*
|
|
365
|
-
* 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.
|
|
366
|
-
*
|
|
367
|
-
*
|
|
368
|
-
* ### Download Asynchronous Batch Results
|
|
369
|
-
* 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:
|
|
370
|
-
*
|
|
371
|
-
* ```
|
|
372
|
-
* https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}
|
|
373
|
-
* ```
|
|
374
|
-
* Here's the typical sequence of operations for downloading the batch results:
|
|
375
|
-
* 1. Client sends a `GET` request using the _download URL_.
|
|
376
|
-
* 2. The server will respond with one of the following:
|
|
377
|
-
*
|
|
378
|
-
* > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.
|
|
379
|
-
*
|
|
380
|
-
* > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.
|
|
381
|
-
*
|
|
382
|
-
*
|
|
383
|
-
*
|
|
384
|
-
* ### Batch Response Model
|
|
385
|
-
* 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:
|
|
386
|
-
*
|
|
387
|
-
* - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
|
|
388
|
-
*
|
|
389
|
-
* - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
|
|
390
|
-
*
|
|
391
|
-
*
|
|
392
|
-
* Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
* ```json
|
|
396
|
-
* {
|
|
397
|
-
* "summary": {
|
|
398
|
-
* "successfulRequests": 1,
|
|
399
|
-
* "totalRequests": 2
|
|
400
|
-
* },
|
|
401
|
-
* "batchItems": [
|
|
402
|
-
* {
|
|
403
|
-
* "statusCode": 200,
|
|
404
|
-
* "response": {
|
|
405
|
-
* "routes": [
|
|
406
|
-
* {
|
|
407
|
-
* "summary": {
|
|
408
|
-
* "lengthInMeters": 1758,
|
|
409
|
-
* "travelTimeInSeconds": 387,
|
|
410
|
-
* "trafficDelayInSeconds": 0,
|
|
411
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
412
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
413
|
-
* },
|
|
414
|
-
* "legs": [
|
|
415
|
-
* {
|
|
416
|
-
* "summary": {
|
|
417
|
-
* "lengthInMeters": 1758,
|
|
418
|
-
* "travelTimeInSeconds": 387,
|
|
419
|
-
* "trafficDelayInSeconds": 0,
|
|
420
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
421
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
422
|
-
* },
|
|
423
|
-
* "points": [
|
|
424
|
-
* {
|
|
425
|
-
* "latitude": 47.62094,
|
|
426
|
-
* "longitude": -122.34892
|
|
427
|
-
* },
|
|
428
|
-
* {
|
|
429
|
-
* "latitude": 47.62094,
|
|
430
|
-
* "longitude": -122.3485
|
|
431
|
-
* },
|
|
432
|
-
* {
|
|
433
|
-
* "latitude": 47.62095,
|
|
434
|
-
* "longitude": -122.3476
|
|
435
|
-
* }
|
|
436
|
-
* ]
|
|
437
|
-
* }
|
|
438
|
-
* ],
|
|
439
|
-
* "sections": [
|
|
440
|
-
* {
|
|
441
|
-
* "startPointIndex": 0,
|
|
442
|
-
* "endPointIndex": 40,
|
|
443
|
-
* "sectionType": "TRAVEL_MODE",
|
|
444
|
-
* "travelMode": "bicycle"
|
|
445
|
-
* }
|
|
446
|
-
* ]
|
|
447
|
-
* }
|
|
448
|
-
* ]
|
|
449
|
-
* }
|
|
450
|
-
* },
|
|
451
|
-
* {
|
|
452
|
-
* "statusCode": 400,
|
|
453
|
-
* "response":
|
|
454
|
-
* {
|
|
455
|
-
* "error":
|
|
456
|
-
* {
|
|
457
|
-
* "code": "400 BadRequest",
|
|
458
|
-
* "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
|
|
459
|
-
* }
|
|
460
|
-
* }
|
|
461
|
-
* }
|
|
462
|
-
* ]
|
|
463
|
-
* }
|
|
464
|
-
* ```
|
|
465
|
-
*/
|
|
466
|
-
post(options: RouteRequestRouteDirectionsBatchParameters): StreamableMethod<RouteRequestRouteDirectionsBatch200Response | RouteRequestRouteDirectionsBatch202Response>;
|
|
467
|
-
/**
|
|
468
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
469
|
-
*
|
|
470
|
-
* ### Download Asynchronous Batch Results
|
|
471
|
-
* 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:
|
|
472
|
-
*
|
|
473
|
-
* ```
|
|
474
|
-
* https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}
|
|
475
|
-
* ```
|
|
476
|
-
* Here's the typical sequence of operations for downloading the batch results:
|
|
477
|
-
* 1. Client sends a `GET` request using the _download URL_.
|
|
478
|
-
* 2. The server will respond with one of the following:
|
|
479
|
-
*
|
|
480
|
-
* > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.
|
|
481
|
-
*
|
|
482
|
-
* > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.
|
|
483
|
-
*
|
|
484
|
-
*
|
|
485
|
-
*
|
|
486
|
-
* ### Batch Response Model
|
|
487
|
-
* 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:
|
|
488
|
-
*
|
|
489
|
-
* - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
|
|
490
|
-
*
|
|
491
|
-
* - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
|
|
492
|
-
*
|
|
493
|
-
*
|
|
494
|
-
* Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
|
|
495
|
-
*
|
|
496
|
-
*
|
|
497
|
-
* ```json
|
|
498
|
-
* {
|
|
499
|
-
* "summary": {
|
|
500
|
-
* "successfulRequests": 1,
|
|
501
|
-
* "totalRequests": 2
|
|
502
|
-
* },
|
|
503
|
-
* "batchItems": [
|
|
504
|
-
* {
|
|
505
|
-
* "statusCode": 200,
|
|
506
|
-
* "response": {
|
|
507
|
-
* "routes": [
|
|
508
|
-
* {
|
|
509
|
-
* "summary": {
|
|
510
|
-
* "lengthInMeters": 1758,
|
|
511
|
-
* "travelTimeInSeconds": 387,
|
|
512
|
-
* "trafficDelayInSeconds": 0,
|
|
513
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
514
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
515
|
-
* },
|
|
516
|
-
* "legs": [
|
|
517
|
-
* {
|
|
518
|
-
* "summary": {
|
|
519
|
-
* "lengthInMeters": 1758,
|
|
520
|
-
* "travelTimeInSeconds": 387,
|
|
521
|
-
* "trafficDelayInSeconds": 0,
|
|
522
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
523
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
524
|
-
* },
|
|
525
|
-
* "points": [
|
|
526
|
-
* {
|
|
527
|
-
* "latitude": 47.62094,
|
|
528
|
-
* "longitude": -122.34892
|
|
529
|
-
* },
|
|
530
|
-
* {
|
|
531
|
-
* "latitude": 47.62094,
|
|
532
|
-
* "longitude": -122.3485
|
|
533
|
-
* },
|
|
534
|
-
* {
|
|
535
|
-
* "latitude": 47.62095,
|
|
536
|
-
* "longitude": -122.3476
|
|
537
|
-
* }
|
|
538
|
-
* ]
|
|
539
|
-
* }
|
|
540
|
-
* ],
|
|
541
|
-
* "sections": [
|
|
542
|
-
* {
|
|
543
|
-
* "startPointIndex": 0,
|
|
544
|
-
* "endPointIndex": 40,
|
|
545
|
-
* "sectionType": "TRAVEL_MODE",
|
|
546
|
-
* "travelMode": "bicycle"
|
|
547
|
-
* }
|
|
548
|
-
* ]
|
|
549
|
-
* }
|
|
550
|
-
* ]
|
|
551
|
-
* }
|
|
552
|
-
* },
|
|
553
|
-
* {
|
|
554
|
-
* "statusCode": 400,
|
|
555
|
-
* "response":
|
|
556
|
-
* {
|
|
557
|
-
* "error":
|
|
558
|
-
* {
|
|
559
|
-
* "code": "400 BadRequest",
|
|
560
|
-
* "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
|
|
561
|
-
* }
|
|
562
|
-
* }
|
|
563
|
-
* }
|
|
564
|
-
* ]
|
|
565
|
-
* }
|
|
566
|
-
* ```
|
|
567
|
-
*/
|
|
568
|
-
get(options?: RouteGetRouteDirectionsBatchParameters): StreamableMethod<RouteGetRouteDirectionsBatch200Response | RouteGetRouteDirectionsBatch202Response>;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
export declare interface RequestRouteDirectionsBatchSync {
|
|
572
|
-
/**
|
|
573
|
-
* **Route Directions Batch API**
|
|
574
|
-
*
|
|
575
|
-
*
|
|
576
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
577
|
-
*
|
|
578
|
-
*
|
|
579
|
-
*
|
|
580
|
-
* The Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/rest/api/maps/route/getroutedirections) using just a single API call. 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.
|
|
581
|
-
* ### Submit Synchronous Batch Request
|
|
582
|
-
* 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.
|
|
583
|
-
* ```
|
|
584
|
-
* POST https://atlas.microsoft.com/route/directions/batch/sync/json?api-version=1.0&subscription-key={subscription-key}
|
|
585
|
-
* ```
|
|
586
|
-
* ### Batch Response Model
|
|
587
|
-
* 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:
|
|
588
|
-
*
|
|
589
|
-
* - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
|
|
590
|
-
*
|
|
591
|
-
* - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
|
|
592
|
-
*
|
|
593
|
-
*
|
|
594
|
-
* Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
|
|
595
|
-
*
|
|
596
|
-
*
|
|
597
|
-
* ```json
|
|
598
|
-
* {
|
|
599
|
-
* "summary": {
|
|
600
|
-
* "successfulRequests": 1,
|
|
601
|
-
* "totalRequests": 2
|
|
602
|
-
* },
|
|
603
|
-
* "batchItems": [
|
|
604
|
-
* {
|
|
605
|
-
* "statusCode": 200,
|
|
606
|
-
* "response": {
|
|
607
|
-
* "routes": [
|
|
608
|
-
* {
|
|
609
|
-
* "summary": {
|
|
610
|
-
* "lengthInMeters": 1758,
|
|
611
|
-
* "travelTimeInSeconds": 387,
|
|
612
|
-
* "trafficDelayInSeconds": 0,
|
|
613
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
614
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
615
|
-
* },
|
|
616
|
-
* "legs": [
|
|
617
|
-
* {
|
|
618
|
-
* "summary": {
|
|
619
|
-
* "lengthInMeters": 1758,
|
|
620
|
-
* "travelTimeInSeconds": 387,
|
|
621
|
-
* "trafficDelayInSeconds": 0,
|
|
622
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
623
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
624
|
-
* },
|
|
625
|
-
* "points": [
|
|
626
|
-
* {
|
|
627
|
-
* "latitude": 47.62094,
|
|
628
|
-
* "longitude": -122.34892
|
|
629
|
-
* },
|
|
630
|
-
* {
|
|
631
|
-
* "latitude": 47.62094,
|
|
632
|
-
* "longitude": -122.3485
|
|
633
|
-
* },
|
|
634
|
-
* {
|
|
635
|
-
* "latitude": 47.62095,
|
|
636
|
-
* "longitude": -122.3476
|
|
637
|
-
* }
|
|
638
|
-
* ]
|
|
639
|
-
* }
|
|
640
|
-
* ],
|
|
641
|
-
* "sections": [
|
|
642
|
-
* {
|
|
643
|
-
* "startPointIndex": 0,
|
|
644
|
-
* "endPointIndex": 40,
|
|
645
|
-
* "sectionType": "TRAVEL_MODE",
|
|
646
|
-
* "travelMode": "bicycle"
|
|
647
|
-
* }
|
|
648
|
-
* ]
|
|
649
|
-
* }
|
|
650
|
-
* ]
|
|
651
|
-
* }
|
|
652
|
-
* },
|
|
653
|
-
* {
|
|
654
|
-
* "statusCode": 400,
|
|
655
|
-
* "response":
|
|
656
|
-
* {
|
|
657
|
-
* "error":
|
|
658
|
-
* {
|
|
659
|
-
* "code": "400 BadRequest",
|
|
660
|
-
* "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
|
|
661
|
-
* }
|
|
662
|
-
* }
|
|
663
|
-
* }
|
|
664
|
-
* ]
|
|
665
|
-
* }
|
|
666
|
-
* ```
|
|
667
|
-
*/
|
|
668
|
-
post(options: RouteRequestRouteDirectionsBatchSyncParameters): StreamableMethod<RouteRequestRouteDirectionsBatchSync200Response | RouteRequestRouteDirectionsBatchSync408Response | RouteRequestRouteDirectionsBatchSyncDefaultResponse>;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
export declare interface RequestRouteMatrix {
|
|
672
|
-
/**
|
|
673
|
-
*
|
|
674
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
675
|
-
*
|
|
676
|
-
* The Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. 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.
|
|
677
|
-
*
|
|
678
|
-
*
|
|
679
|
-
* 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.
|
|
680
|
-
*
|
|
681
|
-
*
|
|
682
|
-
* 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).
|
|
683
|
-
*
|
|
684
|
-
*
|
|
685
|
-
*
|
|
686
|
-
* ### Submit Synchronous Route Matrix Request
|
|
687
|
-
* 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).
|
|
688
|
-
*
|
|
689
|
-
* ```
|
|
690
|
-
* POST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
|
|
691
|
-
* ```
|
|
692
|
-
*
|
|
693
|
-
* ### Submit Asynchronous Route Matrix Request
|
|
694
|
-
* 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.
|
|
695
|
-
*
|
|
696
|
-
*
|
|
697
|
-
* 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).
|
|
698
|
-
*
|
|
699
|
-
*
|
|
700
|
-
* The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.
|
|
701
|
-
*
|
|
702
|
-
*
|
|
703
|
-
*
|
|
704
|
-
*
|
|
705
|
-
* ```
|
|
706
|
-
* POST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
|
|
707
|
-
* ```
|
|
708
|
-
*
|
|
709
|
-
* Here's a typical sequence of asynchronous operations:
|
|
710
|
-
* 1. Client sends a Route Matrix POST request to Azure Maps
|
|
711
|
-
*
|
|
712
|
-
* 2. The server will respond with one of the following:
|
|
713
|
-
*
|
|
714
|
-
* > HTTP `202 Accepted` - Route Matrix request has been accepted.
|
|
715
|
-
*
|
|
716
|
-
* > 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.
|
|
717
|
-
*
|
|
718
|
-
*
|
|
719
|
-
* 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:
|
|
720
|
-
*
|
|
721
|
-
* ```
|
|
722
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
723
|
-
* ```
|
|
724
|
-
*
|
|
725
|
-
*
|
|
726
|
-
* 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
|
|
727
|
-
*
|
|
728
|
-
* ### Download Sync Results
|
|
729
|
-
* 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.
|
|
730
|
-
*
|
|
731
|
-
* ### Download Async Results
|
|
732
|
-
* 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:
|
|
733
|
-
* ```
|
|
734
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
735
|
-
* ```
|
|
736
|
-
*
|
|
737
|
-
* The URL provided by the location header will return the following responses when a `GET` request is issued.
|
|
738
|
-
*
|
|
739
|
-
* > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
|
|
740
|
-
*
|
|
741
|
-
* > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
|
|
742
|
-
*/
|
|
743
|
-
post(options: RouteRequestRouteMatrixParameters): StreamableMethod<RouteRequestRouteMatrix200Response | RouteRequestRouteMatrix202Response>;
|
|
744
|
-
/**
|
|
745
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
746
|
-
*
|
|
747
|
-
* 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:
|
|
748
|
-
*
|
|
749
|
-
* ```
|
|
750
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
751
|
-
* ```
|
|
752
|
-
*
|
|
753
|
-
*
|
|
754
|
-
* 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
|
|
755
|
-
*
|
|
756
|
-
* ### Download Sync Results
|
|
757
|
-
* 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.
|
|
758
|
-
*
|
|
759
|
-
* ### Download Async Results
|
|
760
|
-
* 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:
|
|
761
|
-
* ```
|
|
762
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
763
|
-
* ```
|
|
764
|
-
*
|
|
765
|
-
* The URL provided by the location header will return the following responses when a `GET` request is issued.
|
|
766
|
-
*
|
|
767
|
-
* > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
|
|
768
|
-
*
|
|
769
|
-
* > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
|
|
770
|
-
*/
|
|
771
|
-
get(options?: RouteGetRouteMatrixParameters): StreamableMethod<RouteGetRouteMatrix200Response | RouteGetRouteMatrix202Response>;
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
export declare interface RequestRouteMatrixSync {
|
|
775
|
-
/**
|
|
776
|
-
*
|
|
777
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
778
|
-
*
|
|
779
|
-
* The Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. 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.
|
|
780
|
-
*
|
|
781
|
-
*
|
|
782
|
-
* 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.
|
|
783
|
-
*
|
|
784
|
-
*
|
|
785
|
-
* 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).
|
|
786
|
-
*
|
|
787
|
-
*
|
|
788
|
-
*
|
|
789
|
-
* ### Submit Synchronous Route Matrix Request
|
|
790
|
-
* 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).
|
|
791
|
-
*
|
|
792
|
-
* ```
|
|
793
|
-
* POST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
|
|
794
|
-
* ```
|
|
795
|
-
*
|
|
796
|
-
* ### Submit Asynchronous Route Matrix Request
|
|
797
|
-
* 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.
|
|
798
|
-
*
|
|
799
|
-
*
|
|
800
|
-
* 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).
|
|
801
|
-
*
|
|
802
|
-
*
|
|
803
|
-
* The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.
|
|
804
|
-
*
|
|
805
|
-
*
|
|
806
|
-
*
|
|
807
|
-
*
|
|
808
|
-
* ```
|
|
809
|
-
* POST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
|
|
810
|
-
* ```
|
|
811
|
-
*
|
|
812
|
-
* Here's a typical sequence of asynchronous operations:
|
|
813
|
-
* 1. Client sends a Route Matrix POST request to Azure Maps
|
|
814
|
-
*
|
|
815
|
-
* 2. The server will respond with one of the following:
|
|
816
|
-
*
|
|
817
|
-
* > HTTP `202 Accepted` - Route Matrix request has been accepted.
|
|
818
|
-
*
|
|
819
|
-
* > 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.
|
|
820
|
-
*
|
|
821
|
-
*
|
|
822
|
-
* 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:
|
|
823
|
-
*
|
|
824
|
-
* ```
|
|
825
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
826
|
-
* ```
|
|
827
|
-
*
|
|
828
|
-
*
|
|
829
|
-
* 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
|
|
830
|
-
*
|
|
831
|
-
* ### Download Sync Results
|
|
832
|
-
* 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.
|
|
833
|
-
*
|
|
834
|
-
* ### Download Async Results
|
|
835
|
-
* 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:
|
|
836
|
-
* ```
|
|
837
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
838
|
-
* ```
|
|
839
|
-
*
|
|
840
|
-
* The URL provided by the location header will return the following responses when a `GET` request is issued.
|
|
841
|
-
*
|
|
842
|
-
* > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
|
|
843
|
-
*
|
|
844
|
-
* > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
|
|
845
|
-
*/
|
|
846
|
-
post(options: RouteRequestRouteMatrixSyncParameters): StreamableMethod<RouteRequestRouteMatrixSync200Response | RouteRequestRouteMatrixSync408Response | RouteRequestRouteMatrixSyncDefaultResponse>;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
/** Post body parameters for Route directions. */
|
|
850
|
-
export declare interface RouteDirectionParameters {
|
|
851
|
-
/**
|
|
852
|
-
* A GeoJSON Geometry collection representing sequence of coordinates used as input for route reconstruction and for calculating zero or more alternative routes to this reference route.
|
|
853
|
-
* - The provided sequence of supporting points is used as input for route reconstruction.
|
|
854
|
-
* - The alternative routes are calculated between the origin and destination points specified in the base path parameter locations.
|
|
855
|
-
* - If both _minDeviationDistance_ and _minDeviationTime_ are set to zero, then these origin and destination points are
|
|
856
|
-
* expected to be at (or very near) the beginning and end of the reference route, respectively.
|
|
857
|
-
* - Intermediate locations (_waypoints_) are not supported when using <_supportingPoints_>.
|
|
858
|
-
* - The reference route may contain traffic incidents of type _ROAD_CLOSURE_, which are
|
|
859
|
-
* ignored for the calculation of the reference route's travel time and traffic delay.
|
|
860
|
-
*/
|
|
861
|
-
supportingPoints?: Record<string, unknown>;
|
|
862
|
-
/** This is a list of 3-character, ISO 3166-1, alpha-3 country codes of countries in which all toll roads with vignettes are to be avoided, e.g. "AUS,CHE". Toll roads with vignettes in countries not in the list are unaffected. Note: It is an error to specify both **avoidVignette** and **allowVignette**. */
|
|
863
|
-
avoidVignette?: Array<string>;
|
|
864
|
-
/** This is a list of 3-character, ISO 3166-1, alpha-3 country codes of countries in which toll roads with vignettes are allowed, e.g. "AUS,CHE". Specifying **allowVignette** with some countries X is equivalent to specifying **avoidVignette** with all countries but X. Specifying **allowVignette** with an empty list is the same as avoiding all toll roads with vignettes. Note: It is an error to specify both **avoidVignette** and **allowVignette**. */
|
|
865
|
-
allowVignette?: Array<string>;
|
|
866
|
-
/** A GeoJSON MultiPolygon representing list of areas to avoid. Only rectangle polygons are supported. The maximum size of a rectangle is about 160x160 km. Maximum number of avoided areas is **10**. It cannot cross the 180th meridian. It must be between -80 and +80 degrees of latitude. */
|
|
867
|
-
avoidAreas?: GeoJsonMultiPolygon;
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
/** An item returned from Route Directions Batch service call. */
|
|
871
|
-
export declare interface RouteDirectionsBatchItemOutput extends BatchResultItemOutput {
|
|
872
|
-
/** The result of the query. RouteDirections if the query completed successfully, ErrorResponse otherwise. */
|
|
873
|
-
response: RouteDirectionsBatchItemResponseOutput;
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
/** The result of the query. RouteDirections if the query completed successfully, ErrorResponse otherwise. */
|
|
877
|
-
export declare interface RouteDirectionsBatchItemResponseOutput extends RouteDirectionsOutput, ErrorResponseOutput {
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
/** This object is returned from a successful Route Directions Batch service call. */
|
|
881
|
-
export declare interface RouteDirectionsBatchResultOutput extends BatchResultOutput {
|
|
882
|
-
/** Array containing the batch results. */
|
|
883
|
-
batchItems: Array<RouteDirectionsBatchItemOutput>;
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
/** This object is returned from a successful Route Directions call */
|
|
887
|
-
export declare interface RouteDirectionsOutput {
|
|
888
|
-
/** Format Version property */
|
|
889
|
-
formatVersion?: string;
|
|
890
|
-
/** Routes array */
|
|
891
|
-
routes: Array<RouteOutput>;
|
|
892
|
-
/**
|
|
893
|
-
* Optimized sequence of waypoints. It shows the index from the user provided waypoint sequence for the original and optimized list. For instance, a response:
|
|
894
|
-
*
|
|
895
|
-
* ```
|
|
896
|
-
* <optimizedWaypoints>
|
|
897
|
-
* <waypoint providedIndex="0" optimizedIndex="1"/>
|
|
898
|
-
* <waypoint providedIndex="1" optimizedIndex="2"/>
|
|
899
|
-
* <waypoint providedIndex="2" optimizedIndex="0"/>
|
|
900
|
-
* </optimizedWaypoints>
|
|
901
|
-
* ```
|
|
902
|
-
*
|
|
903
|
-
* means that the original sequence is [0, 1, 2] and optimized sequence is [1, 2, 0]. Since the index starts by 0 the original is "first, second, third" while the optimized is "second, third, first".
|
|
904
|
-
*/
|
|
905
|
-
optimizedWaypoints?: Array<RouteOptimizedWaypointOutput>;
|
|
906
|
-
/** Reports the effective settings used in the current call. */
|
|
907
|
-
report?: RouteReportOutput;
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
/**
|
|
911
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
912
|
-
*
|
|
913
|
-
*
|
|
914
|
-
* 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.
|
|
915
|
-
*
|
|
916
|
-
* 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.
|
|
917
|
-
*
|
|
918
|
-
* Routing service provides a set of parameters for a detailed description of 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.
|
|
919
|
-
*/
|
|
920
|
-
export declare interface RouteGetRouteDirections200Response extends HttpResponse {
|
|
921
|
-
status: "200";
|
|
922
|
-
body: RouteDirectionsOutput;
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
/**
|
|
926
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
927
|
-
*
|
|
928
|
-
* ### Download Asynchronous Batch Results
|
|
929
|
-
* 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:
|
|
930
|
-
*
|
|
931
|
-
* ```
|
|
932
|
-
* https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}
|
|
933
|
-
* ```
|
|
934
|
-
* Here's the typical sequence of operations for downloading the batch results:
|
|
935
|
-
* 1. Client sends a `GET` request using the _download URL_.
|
|
936
|
-
* 2. The server will respond with one of the following:
|
|
937
|
-
*
|
|
938
|
-
* > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.
|
|
939
|
-
*
|
|
940
|
-
* > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.
|
|
941
|
-
*
|
|
942
|
-
*
|
|
943
|
-
*
|
|
944
|
-
* ### Batch Response Model
|
|
945
|
-
* 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:
|
|
946
|
-
*
|
|
947
|
-
* - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
|
|
948
|
-
*
|
|
949
|
-
* - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
|
|
950
|
-
*
|
|
951
|
-
*
|
|
952
|
-
* Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
|
|
953
|
-
*
|
|
954
|
-
*
|
|
955
|
-
* ```json
|
|
956
|
-
* {
|
|
957
|
-
* "summary": {
|
|
958
|
-
* "successfulRequests": 1,
|
|
959
|
-
* "totalRequests": 2
|
|
960
|
-
* },
|
|
961
|
-
* "batchItems": [
|
|
962
|
-
* {
|
|
963
|
-
* "statusCode": 200,
|
|
964
|
-
* "response": {
|
|
965
|
-
* "routes": [
|
|
966
|
-
* {
|
|
967
|
-
* "summary": {
|
|
968
|
-
* "lengthInMeters": 1758,
|
|
969
|
-
* "travelTimeInSeconds": 387,
|
|
970
|
-
* "trafficDelayInSeconds": 0,
|
|
971
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
972
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
973
|
-
* },
|
|
974
|
-
* "legs": [
|
|
975
|
-
* {
|
|
976
|
-
* "summary": {
|
|
977
|
-
* "lengthInMeters": 1758,
|
|
978
|
-
* "travelTimeInSeconds": 387,
|
|
979
|
-
* "trafficDelayInSeconds": 0,
|
|
980
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
981
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
982
|
-
* },
|
|
983
|
-
* "points": [
|
|
984
|
-
* {
|
|
985
|
-
* "latitude": 47.62094,
|
|
986
|
-
* "longitude": -122.34892
|
|
987
|
-
* },
|
|
988
|
-
* {
|
|
989
|
-
* "latitude": 47.62094,
|
|
990
|
-
* "longitude": -122.3485
|
|
991
|
-
* },
|
|
992
|
-
* {
|
|
993
|
-
* "latitude": 47.62095,
|
|
994
|
-
* "longitude": -122.3476
|
|
995
|
-
* }
|
|
996
|
-
* ]
|
|
997
|
-
* }
|
|
998
|
-
* ],
|
|
999
|
-
* "sections": [
|
|
1000
|
-
* {
|
|
1001
|
-
* "startPointIndex": 0,
|
|
1002
|
-
* "endPointIndex": 40,
|
|
1003
|
-
* "sectionType": "TRAVEL_MODE",
|
|
1004
|
-
* "travelMode": "bicycle"
|
|
1005
|
-
* }
|
|
1006
|
-
* ]
|
|
1007
|
-
* }
|
|
1008
|
-
* ]
|
|
1009
|
-
* }
|
|
1010
|
-
* },
|
|
1011
|
-
* {
|
|
1012
|
-
* "statusCode": 400,
|
|
1013
|
-
* "response":
|
|
1014
|
-
* {
|
|
1015
|
-
* "error":
|
|
1016
|
-
* {
|
|
1017
|
-
* "code": "400 BadRequest",
|
|
1018
|
-
* "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
|
|
1019
|
-
* }
|
|
1020
|
-
* }
|
|
1021
|
-
* }
|
|
1022
|
-
* ]
|
|
1023
|
-
* }
|
|
1024
|
-
* ```
|
|
1025
|
-
*/
|
|
1026
|
-
export declare interface RouteGetRouteDirectionsBatch200Response extends HttpResponse {
|
|
1027
|
-
status: "200";
|
|
1028
|
-
body: RouteDirectionsBatchResultOutput;
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
export declare interface RouteGetRouteDirectionsBatch202Headers {
|
|
1032
|
-
/** New URL to check for the results of the long running process. */
|
|
1033
|
-
location?: string;
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
/**
|
|
1037
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
1038
|
-
*
|
|
1039
|
-
* ### Download Asynchronous Batch Results
|
|
1040
|
-
* 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:
|
|
1041
|
-
*
|
|
1042
|
-
* ```
|
|
1043
|
-
* https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}
|
|
1044
|
-
* ```
|
|
1045
|
-
* Here's the typical sequence of operations for downloading the batch results:
|
|
1046
|
-
* 1. Client sends a `GET` request using the _download URL_.
|
|
1047
|
-
* 2. The server will respond with one of the following:
|
|
1048
|
-
*
|
|
1049
|
-
* > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.
|
|
1050
|
-
*
|
|
1051
|
-
* > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.
|
|
1052
|
-
*
|
|
1053
|
-
*
|
|
1054
|
-
*
|
|
1055
|
-
* ### Batch Response Model
|
|
1056
|
-
* 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:
|
|
1057
|
-
*
|
|
1058
|
-
* - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
|
|
1059
|
-
*
|
|
1060
|
-
* - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
|
|
1061
|
-
*
|
|
1062
|
-
*
|
|
1063
|
-
* Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
|
|
1064
|
-
*
|
|
1065
|
-
*
|
|
1066
|
-
* ```json
|
|
1067
|
-
* {
|
|
1068
|
-
* "summary": {
|
|
1069
|
-
* "successfulRequests": 1,
|
|
1070
|
-
* "totalRequests": 2
|
|
1071
|
-
* },
|
|
1072
|
-
* "batchItems": [
|
|
1073
|
-
* {
|
|
1074
|
-
* "statusCode": 200,
|
|
1075
|
-
* "response": {
|
|
1076
|
-
* "routes": [
|
|
1077
|
-
* {
|
|
1078
|
-
* "summary": {
|
|
1079
|
-
* "lengthInMeters": 1758,
|
|
1080
|
-
* "travelTimeInSeconds": 387,
|
|
1081
|
-
* "trafficDelayInSeconds": 0,
|
|
1082
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
1083
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
1084
|
-
* },
|
|
1085
|
-
* "legs": [
|
|
1086
|
-
* {
|
|
1087
|
-
* "summary": {
|
|
1088
|
-
* "lengthInMeters": 1758,
|
|
1089
|
-
* "travelTimeInSeconds": 387,
|
|
1090
|
-
* "trafficDelayInSeconds": 0,
|
|
1091
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
1092
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
1093
|
-
* },
|
|
1094
|
-
* "points": [
|
|
1095
|
-
* {
|
|
1096
|
-
* "latitude": 47.62094,
|
|
1097
|
-
* "longitude": -122.34892
|
|
1098
|
-
* },
|
|
1099
|
-
* {
|
|
1100
|
-
* "latitude": 47.62094,
|
|
1101
|
-
* "longitude": -122.3485
|
|
1102
|
-
* },
|
|
1103
|
-
* {
|
|
1104
|
-
* "latitude": 47.62095,
|
|
1105
|
-
* "longitude": -122.3476
|
|
1106
|
-
* }
|
|
1107
|
-
* ]
|
|
1108
|
-
* }
|
|
1109
|
-
* ],
|
|
1110
|
-
* "sections": [
|
|
1111
|
-
* {
|
|
1112
|
-
* "startPointIndex": 0,
|
|
1113
|
-
* "endPointIndex": 40,
|
|
1114
|
-
* "sectionType": "TRAVEL_MODE",
|
|
1115
|
-
* "travelMode": "bicycle"
|
|
1116
|
-
* }
|
|
1117
|
-
* ]
|
|
1118
|
-
* }
|
|
1119
|
-
* ]
|
|
1120
|
-
* }
|
|
1121
|
-
* },
|
|
1122
|
-
* {
|
|
1123
|
-
* "statusCode": 400,
|
|
1124
|
-
* "response":
|
|
1125
|
-
* {
|
|
1126
|
-
* "error":
|
|
1127
|
-
* {
|
|
1128
|
-
* "code": "400 BadRequest",
|
|
1129
|
-
* "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
|
|
1130
|
-
* }
|
|
1131
|
-
* }
|
|
1132
|
-
* }
|
|
1133
|
-
* ]
|
|
1134
|
-
* }
|
|
1135
|
-
* ```
|
|
1136
|
-
*/
|
|
1137
|
-
export declare interface RouteGetRouteDirectionsBatch202Response extends HttpResponse {
|
|
1138
|
-
status: "202";
|
|
1139
|
-
body: Record<string, unknown>;
|
|
1140
|
-
headers: RawHttpHeaders & RouteGetRouteDirectionsBatch202Headers;
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
export declare type RouteGetRouteDirectionsBatchParameters = RequestParameters;
|
|
1144
|
-
|
|
1145
|
-
/**
|
|
1146
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
1147
|
-
*
|
|
1148
|
-
*
|
|
1149
|
-
* 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.
|
|
1150
|
-
*
|
|
1151
|
-
* 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.
|
|
1152
|
-
*
|
|
1153
|
-
* Routing service provides a set of parameters for a detailed description of 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.
|
|
1154
|
-
*/
|
|
1155
|
-
export declare interface RouteGetRouteDirectionsDefaultResponse extends HttpResponse {
|
|
1156
|
-
status: string;
|
|
1157
|
-
body: ErrorResponseOutput;
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
export declare type RouteGetRouteDirectionsParameters = RouteGetRouteDirectionsQueryParam & RequestParameters;
|
|
1161
|
-
|
|
1162
|
-
export declare interface RouteGetRouteDirectionsQueryParam {
|
|
1163
|
-
queryParameters: RouteGetRouteDirectionsQueryParamProperties;
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
export declare interface RouteGetRouteDirectionsQueryParamProperties {
|
|
1167
|
-
/** The Coordinates through which the route is calculated, delimited by a colon. A minimum of two coordinates is required. The first one is the origin and the last is the destination of the route. Optional coordinates in-between act as WayPoints in the route. You can pass up to 150 WayPoints. */
|
|
1168
|
-
query: string;
|
|
1169
|
-
/** Number of desired alternative routes to be calculated. Default: 0, minimum: 0 and maximum: 5 */
|
|
1170
|
-
maxAlternatives?: number;
|
|
1171
|
-
/** Controls the optimality, with respect to the given planning criteria, of the calculated alternatives compared to the reference route. */
|
|
1172
|
-
alternativeType?: "anyRoute" | "betterRoute";
|
|
1173
|
-
/** All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of meters. Can only be used when reconstructing a route. The minDeviationDistance parameter cannot be used in conjunction with arriveAt */
|
|
1174
|
-
minDeviationDistance?: number;
|
|
1175
|
-
/** The date and time of arrival at the destination point. It must be specified as a dateTime. When a time zone offset is not specified it will be assumed to be that of the destination point. The arriveAt value must be in the future. The arriveAt parameter cannot be used in conjunction with departAt, minDeviationDistance or minDeviationTime. */
|
|
1176
|
-
arriveAt?: Date | string;
|
|
1177
|
-
/** The date and time of departure from the origin point. Departure times apart from now must be specified as a dateTime. When a time zone offset is not specified, it will be assumed to be that of the origin point. The departAt value must be in the future in the date-time format (1996-12-19T16:39:57-08:00). */
|
|
1178
|
-
departAt?: Date | string;
|
|
1179
|
-
/**
|
|
1180
|
-
* All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of seconds. Can only be used when reconstructing a route. The minDeviationTime parameter cannot be used in conjunction with arriveAt. Default value is 0. Setting )minDeviationTime_ to a value greater than zero has the following consequences:
|
|
1181
|
-
* - The origin point of the _calculateRoute_ Request must be on
|
|
1182
|
-
* (or very near) the input reference route.
|
|
1183
|
-
* - If this is not the case, an error is returned.
|
|
1184
|
-
* - However, the origin point does not need to be at the beginning
|
|
1185
|
-
* of the input reference route (it can be thought of as the current
|
|
1186
|
-
* vehicle position on the reference route).
|
|
1187
|
-
* - The reference route, returned as the first route in the _calculateRoute_
|
|
1188
|
-
* Response, will start at the origin point specified in the _calculateRoute_
|
|
1189
|
-
* Request. The initial part of the input reference route up until the origin
|
|
1190
|
-
* point will be excluded from the Response.
|
|
1191
|
-
* - The values of _minDeviationDistance_ and _minDeviationTime_ determine
|
|
1192
|
-
* how far alternative routes will be guaranteed to follow the reference
|
|
1193
|
-
* route from the origin point onwards.
|
|
1194
|
-
* - The route must use _departAt_.
|
|
1195
|
-
* - The _vehicleHeading_ is ignored.
|
|
1196
|
-
*/
|
|
1197
|
-
minDeviationTime?: number;
|
|
1198
|
-
/** If specified, guidance instructions will be returned. Note that the instructionsType parameter cannot be used in conjunction with routeRepresentation=none */
|
|
1199
|
-
instructionsType?: "coded" | "text" | "tagged";
|
|
1200
|
-
/**
|
|
1201
|
-
* The language parameter determines the language of the guidance messages. Proper nouns (the names of streets, plazas, etc.) are returned in the specified language, or if that is not available, they are returned in an available language that is close to it. Allowed values are (a subset of) the IETF language tags. The currently supported languages are listed in the [Supported languages section](https://docs.microsoft.com/azure/azure-maps/supported-languages).
|
|
1202
|
-
*
|
|
1203
|
-
* Default value: en-GB
|
|
1204
|
-
*/
|
|
1205
|
-
language?: string;
|
|
1206
|
-
/** Re-order the route waypoints using a fast heuristic algorithm to reduce the route length. Yields best results when used in conjunction with routeType _shortest_. Notice that origin and destination are excluded from the optimized waypoint indices. To include origin and destination in the response, please increase all the indices by 1 to account for the origin, and then add the destination as the final index. Possible values are true or false. True computes a better order if possible, but is not allowed to be used in conjunction with maxAlternatives value greater than 0 or in conjunction with circle waypoints. False will use the locations in the given order and not allowed to be used in conjunction with routeRepresentation _none_. */
|
|
1207
|
-
computeBestOrder?: boolean;
|
|
1208
|
-
/** Specifies the representation of the set of routes provided as response. This parameter value can only be used in conjunction with computeBestOrder=true. */
|
|
1209
|
-
routeRepresentation?: "polyline" | "summaryOnly" | "none";
|
|
1210
|
-
/** Specifies whether to return additional travel times using different types of traffic information (none, historic, live) as well as the default best-estimate travel time. */
|
|
1211
|
-
computeTravelTimeFor?: "none" | "all";
|
|
1212
|
-
/** The directional heading of the vehicle in degrees starting at true North and continuing in clockwise direction. North is 0 degrees, east is 90 degrees, south is 180 degrees, west is 270 degrees. Possible values 0-359 */
|
|
1213
|
-
vehicleHeading?: number;
|
|
1214
|
-
/** Specifies which data should be reported for diagnosis purposes. The only possible value is _effectiveSettings_. Reports the effective parameters or data used when calling the API. In the case of defaulted parameters the default will be reflected where the parameter was not specified by the caller. */
|
|
1215
|
-
report?: "effectiveSettings";
|
|
1216
|
-
/** Specifies which of the section types is reported in the route response. <br><br>For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Multiple types can be used. The default sectionType refers to the travelMode input. By default travelMode is set to car */
|
|
1217
|
-
sectionType?: "carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban";
|
|
1218
|
-
/** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */
|
|
1219
|
-
vehicleAxleWeight?: number;
|
|
1220
|
-
/** Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. */
|
|
1221
|
-
vehicleWidth?: number;
|
|
1222
|
-
/** Height of the vehicle in meters. A value of 0 means that height restrictions are not considered. */
|
|
1223
|
-
vehicleHeight?: number;
|
|
1224
|
-
/** Length of the vehicle in meters. A value of 0 means that length restrictions are not considered. */
|
|
1225
|
-
vehicleLength?: number;
|
|
1226
|
-
/**
|
|
1227
|
-
* Maximum speed of the vehicle in km/hour. The max speed in the vehicle profile is used to check whether a vehicle is allowed on motorways.
|
|
1228
|
-
*
|
|
1229
|
-
* * A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.
|
|
1230
|
-
*
|
|
1231
|
-
* * A non-zero value may be overridden during route planning. For example, the current traffic flow is 60 km/hour. If the vehicle maximum speed is set to 50 km/hour, the routing engine will consider 60 km/hour as this is the current situation. If the maximum speed of the vehicle is provided as 80 km/hour but the current traffic flow is 60 km/hour, then routing engine will again use 60 km/hour.
|
|
1232
|
-
*/
|
|
1233
|
-
vehicleMaxSpeed?: number;
|
|
1234
|
-
/**
|
|
1235
|
-
* Weight of the vehicle in kilograms.
|
|
1236
|
-
*
|
|
1237
|
-
* * It is mandatory if any of the *Efficiency parameters are set.
|
|
1238
|
-
*
|
|
1239
|
-
* * It must be strictly positive when used in the context of the Consumption Model. Weight restrictions are considered.
|
|
1240
|
-
*
|
|
1241
|
-
* * If no detailed **Consumption Model** is specified and the value of **vehicleWeight** is non-zero, then weight restrictions are considered.
|
|
1242
|
-
*
|
|
1243
|
-
* * In all other cases, this parameter is ignored.
|
|
1244
|
-
*
|
|
1245
|
-
* Sensible Values : for **Combustion Model** : 1600, for **Electric Model** : 1900
|
|
1246
|
-
*/
|
|
1247
|
-
vehicleWeight?: number;
|
|
1248
|
-
/** Whether the vehicle is used for commercial purposes. Commercial vehicles may not be allowed to drive on some roads. */
|
|
1249
|
-
vehicleCommercial?: boolean;
|
|
1250
|
-
/** Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
1251
|
-
windingness?: "low" | "normal" | "high";
|
|
1252
|
-
/** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
1253
|
-
hilliness?: "low" | "normal" | "high";
|
|
1254
|
-
/** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be "other". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. In **calculateReachableRange** requests, the values bicycle and pedestrian must not be used. */
|
|
1255
|
-
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
1256
|
-
/** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In calculateReachableRange requests, the value alreadyUsedRoads must not be used. */
|
|
1257
|
-
avoid?: Array<"tollRoads" | "motorways" | "ferries" | "unpavedRoads" | "carpools" | "alreadyUsedRoads" | "borderCrossings">;
|
|
1258
|
-
/**
|
|
1259
|
-
* Possible values:
|
|
1260
|
-
* * true - Do consider all available traffic information during routing
|
|
1261
|
-
* * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored
|
|
1262
|
-
* during routing, the effect of historic traffic on effective road speeds is still incorporated.
|
|
1263
|
-
*/
|
|
1264
|
-
traffic?: boolean;
|
|
1265
|
-
/** The type of route requested. */
|
|
1266
|
-
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
1267
|
-
/** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */
|
|
1268
|
-
vehicleLoadType?: "USHazmatClass1" | "USHazmatClass2" | "USHazmatClass3" | "USHazmatClass4" | "USHazmatClass5" | "USHazmatClass6" | "USHazmatClass7" | "USHazmatClass8" | "USHazmatClass9" | "otherHazmatExplosive" | "otherHazmatGeneral" | "otherHazmatHarmfulToWater";
|
|
1269
|
-
/** Engine type of the vehicle. When a detailed Consumption Model is specified, it must be consistent with the value of **vehicleEngineType**. */
|
|
1270
|
-
vehicleEngineType?: "combustion" | "electric";
|
|
1271
|
-
/**
|
|
1272
|
-
*
|
|
1273
|
-
* Specifies the speed-dependent component of consumption.
|
|
1274
|
-
*
|
|
1275
|
-
* Provided as an unordered list of colon-delimited speed & consumption-rate pairs. The list defines points on a consumption curve. Consumption rates for speeds not in the list are found as follows:
|
|
1276
|
-
*
|
|
1277
|
-
* * by linear interpolation, if the given speed lies in between two speeds in the list
|
|
1278
|
-
*
|
|
1279
|
-
* * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list
|
|
1280
|
-
*
|
|
1281
|
-
* The list must contain between 1 and 25 points (inclusive), and may not contain duplicate points for the same speed. If it only contains a single point, then the consumption rate of that point is used without further processing.
|
|
1282
|
-
*
|
|
1283
|
-
* Consumption specified for the largest speed must be greater than or equal to that of the penultimate largest speed. This ensures that extrapolation does not lead to negative consumption rates.
|
|
1284
|
-
*
|
|
1285
|
-
* Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.
|
|
1286
|
-
*
|
|
1287
|
-
* The valid range for the consumption values(expressed in l/100km) is between 0.01 and 100000.0.
|
|
1288
|
-
*
|
|
1289
|
-
* Sensible Values : 50,6.3:130,11.5
|
|
1290
|
-
*
|
|
1291
|
-
* **Note** : This parameter is required for **The Combustion Consumption Model**.
|
|
1292
|
-
*/
|
|
1293
|
-
constantSpeedConsumptionInLitersPerHundredkm?: string;
|
|
1294
|
-
/**
|
|
1295
|
-
* Specifies the current supply of fuel in liters.
|
|
1296
|
-
*
|
|
1297
|
-
* Sensible Values : 55
|
|
1298
|
-
*/
|
|
1299
|
-
currentFuelInLiters?: number;
|
|
1300
|
-
/**
|
|
1301
|
-
* Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in liters per hour.
|
|
1302
|
-
*
|
|
1303
|
-
* It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.
|
|
1304
|
-
*
|
|
1305
|
-
* Sensible Values : 0.2
|
|
1306
|
-
*/
|
|
1307
|
-
auxiliaryPowerInLitersPerHour?: number;
|
|
1308
|
-
/**
|
|
1309
|
-
* Specifies the amount of chemical energy stored in one liter of fuel in megajoules (MJ). It is used in conjunction with the ***Efficiency** parameters for conversions between saved or consumed energy and fuel. For example, energy density is 34.2 MJ/l for gasoline, and 35.8 MJ/l for Diesel fuel.
|
|
1310
|
-
*
|
|
1311
|
-
* This parameter is required if any ***Efficiency** parameter is set.
|
|
1312
|
-
*
|
|
1313
|
-
* Sensible Values : 34.2
|
|
1314
|
-
*/
|
|
1315
|
-
fuelEnergyDensityInMJoulesPerLiter?: number;
|
|
1316
|
-
/**
|
|
1317
|
-
* Specifies the efficiency of converting chemical energy stored in fuel to kinetic energy when the vehicle accelerates _(i.e. KineticEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed_ is obtained by converting consumed fuel to chemical energy using **fuelEnergyDensityInMJoulesPerLiter**.
|
|
1318
|
-
*
|
|
1319
|
-
* Must be paired with **decelerationEfficiency**.
|
|
1320
|
-
*
|
|
1321
|
-
* The range of values allowed are 0.0 to 1/**decelerationEfficiency**.
|
|
1322
|
-
*
|
|
1323
|
-
* Sensible Values : for **Combustion Model** : 0.33, for **Electric Model** : 0.66
|
|
1324
|
-
*/
|
|
1325
|
-
accelerationEfficiency?: number;
|
|
1326
|
-
/**
|
|
1327
|
-
* Specifies the efficiency of converting kinetic energy to saved (not consumed) fuel when the vehicle decelerates _(i.e. ChemicalEnergySaved/KineticEnergyLost). ChemicalEnergySaved_ is obtained by converting saved (not consumed) fuel to energy using **fuelEnergyDensityInMJoulesPerLiter**.
|
|
1328
|
-
*
|
|
1329
|
-
* Must be paired with **accelerationEfficiency**.
|
|
1330
|
-
*
|
|
1331
|
-
* The range of values allowed are 0.0 to 1/**accelerationEfficiency**.
|
|
1332
|
-
*
|
|
1333
|
-
* Sensible Values : for **Combustion Model** : 0.83, for **Electric Model** : 0.91
|
|
1334
|
-
*/
|
|
1335
|
-
decelerationEfficiency?: number;
|
|
1336
|
-
/**
|
|
1337
|
-
* Specifies the efficiency of converting chemical energy stored in fuel to potential energy when the vehicle gains elevation _(i.e. PotentialEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed_ is obtained by converting consumed fuel to chemical energy using **fuelEnergyDensityInMJoulesPerLiter**.
|
|
1338
|
-
*
|
|
1339
|
-
* Must be paired with **downhillEfficiency**.
|
|
1340
|
-
*
|
|
1341
|
-
* The range of values allowed are 0.0 to 1/**downhillEfficiency**.
|
|
1342
|
-
*
|
|
1343
|
-
* Sensible Values : for **Combustion Model** : 0.27, for **Electric Model** : 0.74
|
|
1344
|
-
*/
|
|
1345
|
-
uphillEfficiency?: number;
|
|
1346
|
-
/**
|
|
1347
|
-
* Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the vehicle loses elevation _(i.e. ChemicalEnergySaved/PotentialEnergyLost). ChemicalEnergySaved_ is obtained by converting saved (not consumed) fuel to energy using **fuelEnergyDensityInMJoulesPerLiter**.
|
|
1348
|
-
*
|
|
1349
|
-
* Must be paired with **uphillEfficiency**.
|
|
1350
|
-
*
|
|
1351
|
-
* The range of values allowed are 0.0 to 1/**uphillEfficiency**.
|
|
1352
|
-
*
|
|
1353
|
-
* Sensible Values : for **Combustion Model** : 0.51, for **Electric Model** : 0.73
|
|
1354
|
-
*/
|
|
1355
|
-
downhillEfficiency?: number;
|
|
1356
|
-
/**
|
|
1357
|
-
* Specifies the speed-dependent component of consumption.
|
|
1358
|
-
*
|
|
1359
|
-
* Provided as an unordered list of speed/consumption-rate pairs. The list defines points on a consumption curve. Consumption rates for speeds not in the list are found as follows:
|
|
1360
|
-
*
|
|
1361
|
-
* * by linear interpolation, if the given speed lies in between two speeds in the list
|
|
1362
|
-
*
|
|
1363
|
-
* * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list
|
|
1364
|
-
*
|
|
1365
|
-
* The list must contain between 1 and 25 points (inclusive), and may not contain duplicate points for the same speed. If it only contains a single point, then the consumption rate of that point is used without further processing.
|
|
1366
|
-
*
|
|
1367
|
-
* Consumption specified for the largest speed must be greater than or equal to that of the penultimate largest speed. This ensures that extrapolation does not lead to negative consumption rates.
|
|
1368
|
-
*
|
|
1369
|
-
* Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.
|
|
1370
|
-
*
|
|
1371
|
-
* The valid range for the consumption values(expressed in kWh/100km) is between 0.01 and 100000.0.
|
|
1372
|
-
*
|
|
1373
|
-
* Sensible Values : 50,8.2:130,21.3
|
|
1374
|
-
*
|
|
1375
|
-
* This parameter is required for **Electric consumption model**.
|
|
1376
|
-
*/
|
|
1377
|
-
constantSpeedConsumptionInkWhPerHundredkm?: string;
|
|
1378
|
-
/**
|
|
1379
|
-
* Specifies the current electric energy supply in kilowatt hours (kWh).
|
|
1380
|
-
*
|
|
1381
|
-
* This parameter co-exists with **maxChargeInkWh** parameter.
|
|
1382
|
-
*
|
|
1383
|
-
* The range of values allowed are 0.0 to **maxChargeInkWh**.
|
|
1384
|
-
*
|
|
1385
|
-
* Sensible Values : 43
|
|
1386
|
-
*/
|
|
1387
|
-
currentChargeInkWh?: number;
|
|
1388
|
-
/**
|
|
1389
|
-
* Specifies the maximum electric energy supply in kilowatt hours (kWh) that may be stored in the vehicle's battery.
|
|
1390
|
-
*
|
|
1391
|
-
* This parameter co-exists with **currentChargeInkWh** parameter.
|
|
1392
|
-
*
|
|
1393
|
-
* Minimum value has to be greater than or equal to **currentChargeInkWh**.
|
|
1394
|
-
*
|
|
1395
|
-
* Sensible Values : 85
|
|
1396
|
-
*/
|
|
1397
|
-
maxChargeInkWh?: number;
|
|
1398
|
-
/**
|
|
1399
|
-
* Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW).
|
|
1400
|
-
*
|
|
1401
|
-
* It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.
|
|
1402
|
-
*
|
|
1403
|
-
* Sensible Values : 1.7
|
|
1404
|
-
*/
|
|
1405
|
-
auxiliaryPowerInkW?: number;
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
/**
|
|
1409
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
1410
|
-
*
|
|
1411
|
-
*
|
|
1412
|
-
* 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.
|
|
1413
|
-
*
|
|
1414
|
-
* 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.
|
|
1415
|
-
*
|
|
1416
|
-
* 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.
|
|
1417
|
-
*/
|
|
1418
|
-
export declare interface RouteGetRouteDirectionsWithAdditionalParameters200Response extends HttpResponse {
|
|
1419
|
-
status: "200";
|
|
1420
|
-
body: RouteDirectionsOutput;
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1423
|
-
export declare interface RouteGetRouteDirectionsWithAdditionalParametersBodyParam {
|
|
1424
|
-
/**
|
|
1425
|
-
* Used for reconstructing a route and for calculating zero or more alternative routes to this reference route. The provided sequence of coordinates is used as input for route reconstruction. The alternative routes are calculated between the origin and destination points specified in the base path parameter locations. If both minDeviationDistance and minDeviationTime are set to zero, then these origin and destination points are expected to be at (or very near) the beginning and end of the reference route, respectively. Intermediate locations (waypoints) are not supported when using supportingPoints.
|
|
1426
|
-
*
|
|
1427
|
-
* Setting at least one of minDeviationDistance or minDeviationTime to a value greater than zero has the following consequences:
|
|
1428
|
-
*
|
|
1429
|
-
* * The origin point of the calculateRoute request must be on (or very near) the input reference route. If this is not the case, an error is returned. However, the origin point does not need to be at the beginning of the input reference route (it can be thought of as the current vehicle position on the reference route).
|
|
1430
|
-
* * The reference route, returned as the first route in the calculateRoute response, will start at the origin point specified in the calculateRoute request. The initial part of the input reference route up until the origin point will be excluded from the response.
|
|
1431
|
-
* * The values of minDeviationDistance and minDeviationTime determine how far alternative routes will be guaranteed to follow the reference route from the origin point onwards.
|
|
1432
|
-
* * The route must use departAt.
|
|
1433
|
-
* * The vehicleHeading is ignored.
|
|
1434
|
-
*/
|
|
1435
|
-
body: RouteDirectionParameters;
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
|
-
/**
|
|
1439
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
1440
|
-
*
|
|
1441
|
-
*
|
|
1442
|
-
* 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.
|
|
1443
|
-
*
|
|
1444
|
-
* 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.
|
|
1445
|
-
*
|
|
1446
|
-
* 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.
|
|
1447
|
-
*/
|
|
1448
|
-
export declare interface RouteGetRouteDirectionsWithAdditionalParametersDefaultResponse extends HttpResponse {
|
|
1449
|
-
status: string;
|
|
1450
|
-
body: ErrorResponseOutput;
|
|
1451
|
-
}
|
|
1452
|
-
|
|
1453
|
-
export declare interface RouteGetRouteDirectionsWithAdditionalParametersMediaTypesParam {
|
|
1454
|
-
/** Request content type */
|
|
1455
|
-
contentType?: "application/json";
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
export declare type RouteGetRouteDirectionsWithAdditionalParametersParameters = RouteGetRouteDirectionsWithAdditionalParametersQueryParam & RouteGetRouteDirectionsWithAdditionalParametersMediaTypesParam & RouteGetRouteDirectionsWithAdditionalParametersBodyParam & RequestParameters;
|
|
1459
|
-
|
|
1460
|
-
export declare interface RouteGetRouteDirectionsWithAdditionalParametersQueryParam {
|
|
1461
|
-
queryParameters: RouteGetRouteDirectionsWithAdditionalParametersQueryParamProperties;
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
export declare interface RouteGetRouteDirectionsWithAdditionalParametersQueryParamProperties {
|
|
1465
|
-
/** The Coordinates through which the route is calculated, delimited by a colon. A minimum of two coordinates is required. The first one is the origin and the last is the destination of the route. Optional coordinates in-between act as WayPoints in the route. You can pass up to 150 WayPoints. */
|
|
1466
|
-
query: string;
|
|
1467
|
-
/** Number of desired alternative routes to be calculated. Default: 0, minimum: 0 and maximum: 5 */
|
|
1468
|
-
maxAlternatives?: number;
|
|
1469
|
-
/** Controls the optimality, with respect to the given planning criteria, of the calculated alternatives compared to the reference route. */
|
|
1470
|
-
alternativeType?: "anyRoute" | "betterRoute";
|
|
1471
|
-
/** All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of meters. Can only be used when reconstructing a route. The minDeviationDistance parameter cannot be used in conjunction with arriveAt */
|
|
1472
|
-
minDeviationDistance?: number;
|
|
1473
|
-
/**
|
|
1474
|
-
* All alternative routes returned will follow the reference route (see section POST Requests) from the origin point of the calculateRoute request for at least this number of seconds. Can only be used when reconstructing a route. The minDeviationTime parameter cannot be used in conjunction with arriveAt. Default value is 0. Setting )minDeviationTime_ to a value greater than zero has the following consequences:
|
|
1475
|
-
* - The origin point of the _calculateRoute_ Request must be on
|
|
1476
|
-
* (or very near) the input reference route.
|
|
1477
|
-
* - If this is not the case, an error is returned.
|
|
1478
|
-
* - However, the origin point does not need to be at the beginning
|
|
1479
|
-
* of the input reference route (it can be thought of as the current
|
|
1480
|
-
* vehicle position on the reference route).
|
|
1481
|
-
* - The reference route, returned as the first route in the _calculateRoute_
|
|
1482
|
-
* Response, will start at the origin point specified in the _calculateRoute_
|
|
1483
|
-
* Request. The initial part of the input reference route up until the origin
|
|
1484
|
-
* point will be excluded from the Response.
|
|
1485
|
-
* - The values of _minDeviationDistance_ and _minDeviationTime_ determine
|
|
1486
|
-
* how far alternative routes will be guaranteed to follow the reference
|
|
1487
|
-
* route from the origin point onwards.
|
|
1488
|
-
* - The route must use _departAt_.
|
|
1489
|
-
* - The _vehicleHeading_ is ignored.
|
|
1490
|
-
*/
|
|
1491
|
-
minDeviationTime?: number;
|
|
1492
|
-
/** If specified, guidance instructions will be returned. Note that the instructionsType parameter cannot be used in conjunction with routeRepresentation=none */
|
|
1493
|
-
instructionsType?: "coded" | "text" | "tagged";
|
|
1494
|
-
/** The language parameter determines the language of the guidance messages. It does not affect proper nouns (the names of streets, plazas, etc.) It has no effect when instructionsType=coded. Allowed values are (a subset of) the IETF language tags described */
|
|
1495
|
-
language?: string;
|
|
1496
|
-
/** Re-order the route waypoints using a fast heuristic algorithm to reduce the route length. Yields best results when used in conjunction with routeType _shortest_. Notice that origin and destination are excluded from the optimized waypoint indices. To include origin and destination in the response, please increase all the indices by 1 to account for the origin, and then add the destination as the final index. Possible values are true or false. True computes a better order if possible, but is not allowed to be used in conjunction with maxAlternatives value greater than 0 or in conjunction with circle waypoints. False will use the locations in the given order and not allowed to be used in conjunction with routeRepresentation _none_. */
|
|
1497
|
-
computeBestOrder?: boolean;
|
|
1498
|
-
/** Specifies the representation of the set of routes provided as response. This parameter value can only be used in conjunction with computeBestOrder=true. */
|
|
1499
|
-
routeRepresentation?: "polyline" | "summaryOnly" | "none";
|
|
1500
|
-
/** Specifies whether to return additional travel times using different types of traffic information (none, historic, live) as well as the default best-estimate travel time. */
|
|
1501
|
-
computeTravelTimeFor?: "none" | "all";
|
|
1502
|
-
/** The directional heading of the vehicle in degrees starting at true North and continuing in clockwise direction. North is 0 degrees, east is 90 degrees, south is 180 degrees, west is 270 degrees. Possible values 0-359 */
|
|
1503
|
-
vehicleHeading?: number;
|
|
1504
|
-
/** Specifies which data should be reported for diagnosis purposes. The only possible value is _effectiveSettings_. Reports the effective parameters or data used when calling the API. In the case of defaulted parameters the default will be reflected where the parameter was not specified by the caller. */
|
|
1505
|
-
report?: "effectiveSettings";
|
|
1506
|
-
/** Specifies which of the section types is reported in the route response. <br><br>For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Multiple types can be used. The default sectionType refers to the travelMode input. By default travelMode is set to car */
|
|
1507
|
-
sectionType?: "carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban";
|
|
1508
|
-
/** The date and time of arrival at the destination point. It must be specified as a dateTime. When a time zone offset is not specified it will be assumed to be that of the destination point. The arriveAt value must be in the future. The arriveAt parameter cannot be used in conjunction with departAt, minDeviationDistance or minDeviationTime. */
|
|
1509
|
-
arriveAt?: Date | string;
|
|
1510
|
-
/** The date and time of departure from the origin point. Departure times apart from now must be specified as a dateTime. When a time zone offset is not specified, it will be assumed to be that of the origin point. The departAt value must be in the future in the date-time format (1996-12-19T16:39:57-08:00). */
|
|
1511
|
-
departAt?: Date | string;
|
|
1512
|
-
/** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */
|
|
1513
|
-
vehicleAxleWeight?: number;
|
|
1514
|
-
/** Length of the vehicle in meters. A value of 0 means that length restrictions are not considered. */
|
|
1515
|
-
vehicleLength?: number;
|
|
1516
|
-
/** Height of the vehicle in meters. A value of 0 means that height restrictions are not considered. */
|
|
1517
|
-
vehicleHeight?: number;
|
|
1518
|
-
/** Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. */
|
|
1519
|
-
vehicleWidth?: number;
|
|
1520
|
-
/**
|
|
1521
|
-
* Maximum speed of the vehicle in km/hour. The max speed in the vehicle profile is used to check whether a vehicle is allowed on motorways.
|
|
1522
|
-
*
|
|
1523
|
-
* * A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.
|
|
1524
|
-
*
|
|
1525
|
-
* * A non-zero value may be overridden during route planning. For example, the current traffic flow is 60 km/hour. If the vehicle maximum speed is set to 50 km/hour, the routing engine will consider 60 km/hour as this is the current situation. If the maximum speed of the vehicle is provided as 80 km/hour but the current traffic flow is 60 km/hour, then routing engine will again use 60 km/hour.
|
|
1526
|
-
*/
|
|
1527
|
-
vehicleMaxSpeed?: number;
|
|
1528
|
-
/**
|
|
1529
|
-
* Weight of the vehicle in kilograms.
|
|
1530
|
-
*
|
|
1531
|
-
* * It is mandatory if any of the *Efficiency parameters are set.
|
|
1532
|
-
*
|
|
1533
|
-
* * It must be strictly positive when used in the context of the Consumption Model. Weight restrictions are considered.
|
|
1534
|
-
*
|
|
1535
|
-
* * If no detailed **Consumption Model** is specified and the value of **vehicleWeight** is non-zero, then weight restrictions are considered.
|
|
1536
|
-
*
|
|
1537
|
-
* * In all other cases, this parameter is ignored.
|
|
1538
|
-
*
|
|
1539
|
-
* Sensible Values : for **Combustion Model** : 1600, for **Electric Model** : 1900
|
|
1540
|
-
*/
|
|
1541
|
-
vehicleWeight?: number;
|
|
1542
|
-
/** Whether the vehicle is used for commercial purposes. Commercial vehicles may not be allowed to drive on some roads. */
|
|
1543
|
-
vehicleCommercial?: boolean;
|
|
1544
|
-
/** Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
1545
|
-
windingness?: "low" | "normal" | "high";
|
|
1546
|
-
/** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
1547
|
-
hilliness?: "low" | "normal" | "high";
|
|
1548
|
-
/** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be "other". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. In **calculateReachableRange** requests, the values bicycle and pedestrian must not be used. */
|
|
1549
|
-
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
1550
|
-
/** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In calculateReachableRange requests, the value alreadyUsedRoads must not be used. */
|
|
1551
|
-
avoid?: Array<"tollRoads" | "motorways" | "ferries" | "unpavedRoads" | "carpools" | "alreadyUsedRoads" | "borderCrossings">;
|
|
1552
|
-
/**
|
|
1553
|
-
* Possible values:
|
|
1554
|
-
* * true - Do consider all available traffic information during routing
|
|
1555
|
-
* * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored
|
|
1556
|
-
* during routing, the effect of historic traffic on effective road speeds is still incorporated.
|
|
1557
|
-
*/
|
|
1558
|
-
traffic?: boolean;
|
|
1559
|
-
/** The type of route requested. */
|
|
1560
|
-
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
1561
|
-
/** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */
|
|
1562
|
-
vehicleLoadType?: "USHazmatClass1" | "USHazmatClass2" | "USHazmatClass3" | "USHazmatClass4" | "USHazmatClass5" | "USHazmatClass6" | "USHazmatClass7" | "USHazmatClass8" | "USHazmatClass9" | "otherHazmatExplosive" | "otherHazmatGeneral" | "otherHazmatHarmfulToWater";
|
|
1563
|
-
/** Engine type of the vehicle. When a detailed Consumption Model is specified, it must be consistent with the value of **vehicleEngineType**. */
|
|
1564
|
-
vehicleEngineType?: "combustion" | "electric";
|
|
1565
|
-
/**
|
|
1566
|
-
*
|
|
1567
|
-
* Specifies the speed-dependent component of consumption.
|
|
1568
|
-
*
|
|
1569
|
-
* Provided as an unordered list of colon-delimited speed & consumption-rate pairs. The list defines points on a consumption curve. Consumption rates for speeds not in the list are found as follows:
|
|
1570
|
-
*
|
|
1571
|
-
* * by linear interpolation, if the given speed lies in between two speeds in the list
|
|
1572
|
-
*
|
|
1573
|
-
* * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list
|
|
1574
|
-
*
|
|
1575
|
-
* The list must contain between 1 and 25 points (inclusive), and may not contain duplicate points for the same speed. If it only contains a single point, then the consumption rate of that point is used without further processing.
|
|
1576
|
-
*
|
|
1577
|
-
* Consumption specified for the largest speed must be greater than or equal to that of the penultimate largest speed. This ensures that extrapolation does not lead to negative consumption rates.
|
|
1578
|
-
*
|
|
1579
|
-
* Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.
|
|
1580
|
-
*
|
|
1581
|
-
* The valid range for the consumption values(expressed in l/100km) is between 0.01 and 100000.0.
|
|
1582
|
-
*
|
|
1583
|
-
* Sensible Values : 50,6.3:130,11.5
|
|
1584
|
-
*
|
|
1585
|
-
* **Note** : This parameter is required for **The Combustion Consumption Model**.
|
|
1586
|
-
*/
|
|
1587
|
-
constantSpeedConsumptionInLitersPerHundredkm?: string;
|
|
1588
|
-
/**
|
|
1589
|
-
* Specifies the current supply of fuel in liters.
|
|
1590
|
-
*
|
|
1591
|
-
* Sensible Values : 55
|
|
1592
|
-
*/
|
|
1593
|
-
currentFuelInLiters?: number;
|
|
1594
|
-
/**
|
|
1595
|
-
* Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in liters per hour.
|
|
1596
|
-
*
|
|
1597
|
-
* It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.
|
|
1598
|
-
*
|
|
1599
|
-
* Sensible Values : 0.2
|
|
1600
|
-
*/
|
|
1601
|
-
auxiliaryPowerInLitersPerHour?: number;
|
|
1602
|
-
/**
|
|
1603
|
-
* Specifies the amount of chemical energy stored in one liter of fuel in megajoules (MJ). It is used in conjunction with the ***Efficiency** parameters for conversions between saved or consumed energy and fuel. For example, energy density is 34.2 MJ/l for gasoline, and 35.8 MJ/l for Diesel fuel.
|
|
1604
|
-
*
|
|
1605
|
-
* This parameter is required if any ***Efficiency** parameter is set.
|
|
1606
|
-
*
|
|
1607
|
-
* Sensible Values : 34.2
|
|
1608
|
-
*/
|
|
1609
|
-
fuelEnergyDensityInMJoulesPerLiter?: number;
|
|
1610
|
-
/**
|
|
1611
|
-
* Specifies the efficiency of converting chemical energy stored in fuel to kinetic energy when the vehicle accelerates _(i.e. KineticEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed_ is obtained by converting consumed fuel to chemical energy using **fuelEnergyDensityInMJoulesPerLiter**.
|
|
1612
|
-
*
|
|
1613
|
-
* Must be paired with **decelerationEfficiency**.
|
|
1614
|
-
*
|
|
1615
|
-
* The range of values allowed are 0.0 to 1/**decelerationEfficiency**.
|
|
1616
|
-
*
|
|
1617
|
-
* Sensible Values : for **Combustion Model** : 0.33, for **Electric Model** : 0.66
|
|
1618
|
-
*/
|
|
1619
|
-
accelerationEfficiency?: number;
|
|
1620
|
-
/**
|
|
1621
|
-
* Specifies the efficiency of converting kinetic energy to saved (not consumed) fuel when the vehicle decelerates _(i.e. ChemicalEnergySaved/KineticEnergyLost). ChemicalEnergySaved_ is obtained by converting saved (not consumed) fuel to energy using **fuelEnergyDensityInMJoulesPerLiter**.
|
|
1622
|
-
*
|
|
1623
|
-
* Must be paired with **accelerationEfficiency**.
|
|
1624
|
-
*
|
|
1625
|
-
* The range of values allowed are 0.0 to 1/**accelerationEfficiency**.
|
|
1626
|
-
*
|
|
1627
|
-
* Sensible Values : for **Combustion Model** : 0.83, for **Electric Model** : 0.91
|
|
1628
|
-
*/
|
|
1629
|
-
decelerationEfficiency?: number;
|
|
1630
|
-
/**
|
|
1631
|
-
* Specifies the efficiency of converting chemical energy stored in fuel to potential energy when the vehicle gains elevation _(i.e. PotentialEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed_ is obtained by converting consumed fuel to chemical energy using **fuelEnergyDensityInMJoulesPerLiter**.
|
|
1632
|
-
*
|
|
1633
|
-
* Must be paired with **downhillEfficiency**.
|
|
1634
|
-
*
|
|
1635
|
-
* The range of values allowed are 0.0 to 1/**downhillEfficiency**.
|
|
1636
|
-
*
|
|
1637
|
-
* Sensible Values : for **Combustion Model** : 0.27, for **Electric Model** : 0.74
|
|
1638
|
-
*/
|
|
1639
|
-
uphillEfficiency?: number;
|
|
1640
|
-
/**
|
|
1641
|
-
* Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the vehicle loses elevation _(i.e. ChemicalEnergySaved/PotentialEnergyLost). ChemicalEnergySaved_ is obtained by converting saved (not consumed) fuel to energy using **fuelEnergyDensityInMJoulesPerLiter**.
|
|
1642
|
-
*
|
|
1643
|
-
* Must be paired with **uphillEfficiency**.
|
|
1644
|
-
*
|
|
1645
|
-
* The range of values allowed are 0.0 to 1/**uphillEfficiency**.
|
|
1646
|
-
*
|
|
1647
|
-
* Sensible Values : for **Combustion Model** : 0.51, for **Electric Model** : 0.73
|
|
1648
|
-
*/
|
|
1649
|
-
downhillEfficiency?: number;
|
|
1650
|
-
/**
|
|
1651
|
-
* Specifies the speed-dependent component of consumption.
|
|
1652
|
-
*
|
|
1653
|
-
* Provided as an unordered list of speed/consumption-rate pairs. The list defines points on a consumption curve. Consumption rates for speeds not in the list are found as follows:
|
|
1654
|
-
*
|
|
1655
|
-
* * by linear interpolation, if the given speed lies in between two speeds in the list
|
|
1656
|
-
*
|
|
1657
|
-
* * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list
|
|
1658
|
-
*
|
|
1659
|
-
* The list must contain between 1 and 25 points (inclusive), and may not contain duplicate points for the same speed. If it only contains a single point, then the consumption rate of that point is used without further processing.
|
|
1660
|
-
*
|
|
1661
|
-
* Consumption specified for the largest speed must be greater than or equal to that of the penultimate largest speed. This ensures that extrapolation does not lead to negative consumption rates.
|
|
1662
|
-
*
|
|
1663
|
-
* Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.
|
|
1664
|
-
*
|
|
1665
|
-
* The valid range for the consumption values(expressed in kWh/100km) is between 0.01 and 100000.0.
|
|
1666
|
-
*
|
|
1667
|
-
* Sensible Values : 50,8.2:130,21.3
|
|
1668
|
-
*
|
|
1669
|
-
* This parameter is required for **Electric consumption model**.
|
|
1670
|
-
*/
|
|
1671
|
-
constantSpeedConsumptionInkWhPerHundredkm?: string;
|
|
1672
|
-
/**
|
|
1673
|
-
* Specifies the current electric energy supply in kilowatt hours (kWh).
|
|
1674
|
-
*
|
|
1675
|
-
* This parameter co-exists with **maxChargeInkWh** parameter.
|
|
1676
|
-
*
|
|
1677
|
-
* The range of values allowed are 0.0 to **maxChargeInkWh**.
|
|
1678
|
-
*
|
|
1679
|
-
* Sensible Values : 43
|
|
1680
|
-
*/
|
|
1681
|
-
currentChargeInkWh?: number;
|
|
1682
|
-
/**
|
|
1683
|
-
* Specifies the maximum electric energy supply in kilowatt hours (kWh) that may be stored in the vehicle's battery.
|
|
1684
|
-
*
|
|
1685
|
-
* This parameter co-exists with **currentChargeInkWh** parameter.
|
|
1686
|
-
*
|
|
1687
|
-
* Minimum value has to be greater than or equal to **currentChargeInkWh**.
|
|
1688
|
-
*
|
|
1689
|
-
* Sensible Values : 85
|
|
1690
|
-
*/
|
|
1691
|
-
maxChargeInkWh?: number;
|
|
1692
|
-
/**
|
|
1693
|
-
* Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW).
|
|
1694
|
-
*
|
|
1695
|
-
* It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.
|
|
1696
|
-
*
|
|
1697
|
-
* Sensible Values : 1.7
|
|
1698
|
-
*/
|
|
1699
|
-
auxiliaryPowerInkW?: number;
|
|
1700
|
-
}
|
|
1701
|
-
|
|
1702
|
-
/**
|
|
1703
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
1704
|
-
*
|
|
1705
|
-
* 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:
|
|
1706
|
-
*
|
|
1707
|
-
* ```
|
|
1708
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
1709
|
-
* ```
|
|
1710
|
-
*
|
|
1711
|
-
*
|
|
1712
|
-
* 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
|
|
1713
|
-
*
|
|
1714
|
-
* ### Download Sync Results
|
|
1715
|
-
* 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.
|
|
1716
|
-
*
|
|
1717
|
-
* ### Download Async Results
|
|
1718
|
-
* 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:
|
|
1719
|
-
* ```
|
|
1720
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
1721
|
-
* ```
|
|
1722
|
-
*
|
|
1723
|
-
* The URL provided by the location header will return the following responses when a `GET` request is issued.
|
|
1724
|
-
*
|
|
1725
|
-
* > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
|
|
1726
|
-
*
|
|
1727
|
-
* > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
|
|
1728
|
-
*/
|
|
1729
|
-
export declare interface RouteGetRouteMatrix200Response extends HttpResponse {
|
|
1730
|
-
status: "200";
|
|
1731
|
-
body: RouteMatrixResultOutput;
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
export declare interface RouteGetRouteMatrix202Headers {
|
|
1735
|
-
/** New URL to check for the results of the long running process. */
|
|
1736
|
-
location?: string;
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1739
|
-
/**
|
|
1740
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
1741
|
-
*
|
|
1742
|
-
* 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:
|
|
1743
|
-
*
|
|
1744
|
-
* ```
|
|
1745
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
1746
|
-
* ```
|
|
1747
|
-
*
|
|
1748
|
-
*
|
|
1749
|
-
* 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
|
|
1750
|
-
*
|
|
1751
|
-
* ### Download Sync Results
|
|
1752
|
-
* 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.
|
|
1753
|
-
*
|
|
1754
|
-
* ### Download Async Results
|
|
1755
|
-
* 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:
|
|
1756
|
-
* ```
|
|
1757
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
1758
|
-
* ```
|
|
1759
|
-
*
|
|
1760
|
-
* The URL provided by the location header will return the following responses when a `GET` request is issued.
|
|
1761
|
-
*
|
|
1762
|
-
* > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
|
|
1763
|
-
*
|
|
1764
|
-
* > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
|
|
1765
|
-
*/
|
|
1766
|
-
export declare interface RouteGetRouteMatrix202Response extends HttpResponse {
|
|
1767
|
-
status: "202";
|
|
1768
|
-
body: Record<string, unknown>;
|
|
1769
|
-
headers: RawHttpHeaders & RouteGetRouteMatrix202Headers;
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
export declare type RouteGetRouteMatrixParameters = RequestParameters;
|
|
1773
|
-
|
|
1774
|
-
/**
|
|
1775
|
-
* __Route Range (Isochrone) API__
|
|
1776
|
-
*
|
|
1777
|
-
*
|
|
1778
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
1779
|
-
*
|
|
1780
|
-
* This service 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.
|
|
1781
|
-
*
|
|
1782
|
-
* The returned polygon can be used for further processing such as [Search Inside Geometry](https://docs.microsoft.com/rest/api/maps/search/postsearchinsidegeometry) to search for POIs within the provided Isochrone.
|
|
1783
|
-
*/
|
|
1784
|
-
export declare interface RouteGetRouteRange200Response extends HttpResponse {
|
|
1785
|
-
status: "200";
|
|
1786
|
-
body: RouteRangeResultOutput;
|
|
1787
|
-
}
|
|
1788
|
-
|
|
1789
|
-
/**
|
|
1790
|
-
* __Route Range (Isochrone) API__
|
|
1791
|
-
*
|
|
1792
|
-
*
|
|
1793
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
1794
|
-
*
|
|
1795
|
-
* This service 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.
|
|
1796
|
-
*
|
|
1797
|
-
* The returned polygon can be used for further processing such as [Search Inside Geometry](https://docs.microsoft.com/rest/api/maps/search/postsearchinsidegeometry) to search for POIs within the provided Isochrone.
|
|
1798
|
-
*/
|
|
1799
|
-
export declare interface RouteGetRouteRangeDefaultResponse extends HttpResponse {
|
|
1800
|
-
status: string;
|
|
1801
|
-
body: ErrorResponseOutput;
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
|
-
export declare type RouteGetRouteRangeParameters = RouteGetRouteRangeQueryParam & RequestParameters;
|
|
1805
|
-
|
|
1806
|
-
export declare interface RouteGetRouteRangeQueryParam {
|
|
1807
|
-
queryParameters: RouteGetRouteRangeQueryParamProperties;
|
|
1808
|
-
}
|
|
1809
|
-
|
|
1810
|
-
export declare interface RouteGetRouteRangeQueryParamProperties {
|
|
1811
|
-
/** The Coordinate from which the range calculation should start. */
|
|
1812
|
-
query: Array<number>;
|
|
1813
|
-
/** Fuel budget in liters that determines maximal range which can be travelled using the specified Combustion Consumption Model.<br> When fuelBudgetInLiters is used, it is mandatory to specify a detailed Combustion Consumption Model.<br> Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used. */
|
|
1814
|
-
fuelBudgetInLiters?: number;
|
|
1815
|
-
/** Electric energy budget in kilowatt hours (kWh) that determines maximal range which can be travelled using the specified Electric Consumption Model.<br> When energyBudgetInkWh is used, it is mandatory to specify a detailed Electric Consumption Model.<br> Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used. */
|
|
1816
|
-
energyBudgetInkWh?: number;
|
|
1817
|
-
/** Time budget in seconds that determines maximal range which can be travelled using driving time. The Consumption Model will only affect the range when routeType is eco.<br> Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used. */
|
|
1818
|
-
timeBudgetInSec?: number;
|
|
1819
|
-
/** Distance budget in meters that determines maximal range which can be travelled using driving distance. The Consumption Model will only affect the range when routeType is eco.<br> Exactly one budget (fuelBudgetInLiters, energyBudgetInkWh, timeBudgetInSec, or distanceBudgetInMeters) must be used. */
|
|
1820
|
-
distanceBudgetInMeters?: number;
|
|
1821
|
-
/** The date and time of departure from the origin point. Departure times apart from now must be specified as a dateTime. When a time zone offset is not specified, it will be assumed to be that of the origin point. The departAt value must be in the future in the date-time format (1996-12-19T16:39:57-08:00). */
|
|
1822
|
-
departAt?: Date | string;
|
|
1823
|
-
/** The type of route requested. */
|
|
1824
|
-
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
1825
|
-
/**
|
|
1826
|
-
* Possible values:
|
|
1827
|
-
* * true - Do consider all available traffic information during routing
|
|
1828
|
-
* * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored
|
|
1829
|
-
* during routing, the effect of historic traffic on effective road speeds is still incorporated.
|
|
1830
|
-
*/
|
|
1831
|
-
traffic?: boolean;
|
|
1832
|
-
/** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In calculateReachableRange requests, the value alreadyUsedRoads must not be used. */
|
|
1833
|
-
avoid?: Array<"tollRoads" | "motorways" | "ferries" | "unpavedRoads" | "carpools" | "alreadyUsedRoads" | "borderCrossings">;
|
|
1834
|
-
/** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be "other". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. In **calculateReachableRange** requests, the values bicycle and pedestrian must not be used. */
|
|
1835
|
-
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
1836
|
-
/** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
1837
|
-
hilliness?: "low" | "normal" | "high";
|
|
1838
|
-
/** Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
1839
|
-
windingness?: "low" | "normal" | "high";
|
|
1840
|
-
/** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */
|
|
1841
|
-
vehicleAxleWeight?: number;
|
|
1842
|
-
/** Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. */
|
|
1843
|
-
vehicleWidth?: number;
|
|
1844
|
-
/** Height of the vehicle in meters. A value of 0 means that height restrictions are not considered. */
|
|
1845
|
-
vehicleHeight?: number;
|
|
1846
|
-
/** Length of the vehicle in meters. A value of 0 means that length restrictions are not considered. */
|
|
1847
|
-
vehicleLength?: number;
|
|
1848
|
-
/**
|
|
1849
|
-
* Maximum speed of the vehicle in km/hour. The max speed in the vehicle profile is used to check whether a vehicle is allowed on motorways.
|
|
1850
|
-
*
|
|
1851
|
-
* * A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.
|
|
1852
|
-
*
|
|
1853
|
-
* * A non-zero value may be overridden during route planning. For example, the current traffic flow is 60 km/hour. If the vehicle maximum speed is set to 50 km/hour, the routing engine will consider 60 km/hour as this is the current situation. If the maximum speed of the vehicle is provided as 80 km/hour but the current traffic flow is 60 km/hour, then routing engine will again use 60 km/hour.
|
|
1854
|
-
*/
|
|
1855
|
-
vehicleMaxSpeed?: number;
|
|
1856
|
-
/**
|
|
1857
|
-
* Weight of the vehicle in kilograms.
|
|
1858
|
-
*
|
|
1859
|
-
* * It is mandatory if any of the *Efficiency parameters are set.
|
|
1860
|
-
*
|
|
1861
|
-
* * It must be strictly positive when used in the context of the Consumption Model. Weight restrictions are considered.
|
|
1862
|
-
*
|
|
1863
|
-
* * If no detailed **Consumption Model** is specified and the value of **vehicleWeight** is non-zero, then weight restrictions are considered.
|
|
1864
|
-
*
|
|
1865
|
-
* * In all other cases, this parameter is ignored.
|
|
1866
|
-
*
|
|
1867
|
-
* Sensible Values : for **Combustion Model** : 1600, for **Electric Model** : 1900
|
|
1868
|
-
*/
|
|
1869
|
-
vehicleWeight?: number;
|
|
1870
|
-
/** Whether the vehicle is used for commercial purposes. Commercial vehicles may not be allowed to drive on some roads. */
|
|
1871
|
-
vehicleCommercial?: boolean;
|
|
1872
|
-
/** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */
|
|
1873
|
-
vehicleLoadType?: "USHazmatClass1" | "USHazmatClass2" | "USHazmatClass3" | "USHazmatClass4" | "USHazmatClass5" | "USHazmatClass6" | "USHazmatClass7" | "USHazmatClass8" | "USHazmatClass9" | "otherHazmatExplosive" | "otherHazmatGeneral" | "otherHazmatHarmfulToWater";
|
|
1874
|
-
/** Engine type of the vehicle. When a detailed Consumption Model is specified, it must be consistent with the value of **vehicleEngineType**. */
|
|
1875
|
-
vehicleEngineType?: "combustion" | "electric";
|
|
1876
|
-
/**
|
|
1877
|
-
*
|
|
1878
|
-
* Specifies the speed-dependent component of consumption.
|
|
1879
|
-
*
|
|
1880
|
-
* Provided as an unordered list of colon-delimited speed & consumption-rate pairs. The list defines points on a consumption curve. Consumption rates for speeds not in the list are found as follows:
|
|
1881
|
-
*
|
|
1882
|
-
* * by linear interpolation, if the given speed lies in between two speeds in the list
|
|
1883
|
-
*
|
|
1884
|
-
* * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list
|
|
1885
|
-
*
|
|
1886
|
-
* The list must contain between 1 and 25 points (inclusive), and may not contain duplicate points for the same speed. If it only contains a single point, then the consumption rate of that point is used without further processing.
|
|
1887
|
-
*
|
|
1888
|
-
* Consumption specified for the largest speed must be greater than or equal to that of the penultimate largest speed. This ensures that extrapolation does not lead to negative consumption rates.
|
|
1889
|
-
*
|
|
1890
|
-
* Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.
|
|
1891
|
-
*
|
|
1892
|
-
* The valid range for the consumption values(expressed in l/100km) is between 0.01 and 100000.0.
|
|
1893
|
-
*
|
|
1894
|
-
* Sensible Values : 50,6.3:130,11.5
|
|
1895
|
-
*
|
|
1896
|
-
* **Note** : This parameter is required for **The Combustion Consumption Model**.
|
|
1897
|
-
*/
|
|
1898
|
-
constantSpeedConsumptionInLitersPerHundredkm?: string;
|
|
1899
|
-
/**
|
|
1900
|
-
* Specifies the current supply of fuel in liters.
|
|
1901
|
-
*
|
|
1902
|
-
* Sensible Values : 55
|
|
1903
|
-
*/
|
|
1904
|
-
currentFuelInLiters?: number;
|
|
1905
|
-
/**
|
|
1906
|
-
* Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in liters per hour.
|
|
1907
|
-
*
|
|
1908
|
-
* It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.
|
|
1909
|
-
*
|
|
1910
|
-
* Sensible Values : 0.2
|
|
1911
|
-
*/
|
|
1912
|
-
auxiliaryPowerInLitersPerHour?: number;
|
|
1913
|
-
/**
|
|
1914
|
-
* Specifies the amount of chemical energy stored in one liter of fuel in megajoules (MJ). It is used in conjunction with the ***Efficiency** parameters for conversions between saved or consumed energy and fuel. For example, energy density is 34.2 MJ/l for gasoline, and 35.8 MJ/l for Diesel fuel.
|
|
1915
|
-
*
|
|
1916
|
-
* This parameter is required if any ***Efficiency** parameter is set.
|
|
1917
|
-
*
|
|
1918
|
-
* Sensible Values : 34.2
|
|
1919
|
-
*/
|
|
1920
|
-
fuelEnergyDensityInMJoulesPerLiter?: number;
|
|
1921
|
-
/**
|
|
1922
|
-
* Specifies the efficiency of converting chemical energy stored in fuel to kinetic energy when the vehicle accelerates _(i.e. KineticEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed_ is obtained by converting consumed fuel to chemical energy using **fuelEnergyDensityInMJoulesPerLiter**.
|
|
1923
|
-
*
|
|
1924
|
-
* Must be paired with **decelerationEfficiency**.
|
|
1925
|
-
*
|
|
1926
|
-
* The range of values allowed are 0.0 to 1/**decelerationEfficiency**.
|
|
1927
|
-
*
|
|
1928
|
-
* Sensible Values : for **Combustion Model** : 0.33, for **Electric Model** : 0.66
|
|
1929
|
-
*/
|
|
1930
|
-
accelerationEfficiency?: number;
|
|
1931
|
-
/**
|
|
1932
|
-
* Specifies the efficiency of converting kinetic energy to saved (not consumed) fuel when the vehicle decelerates _(i.e. ChemicalEnergySaved/KineticEnergyLost). ChemicalEnergySaved_ is obtained by converting saved (not consumed) fuel to energy using **fuelEnergyDensityInMJoulesPerLiter**.
|
|
1933
|
-
*
|
|
1934
|
-
* Must be paired with **accelerationEfficiency**.
|
|
1935
|
-
*
|
|
1936
|
-
* The range of values allowed are 0.0 to 1/**accelerationEfficiency**.
|
|
1937
|
-
*
|
|
1938
|
-
* Sensible Values : for **Combustion Model** : 0.83, for **Electric Model** : 0.91
|
|
1939
|
-
*/
|
|
1940
|
-
decelerationEfficiency?: number;
|
|
1941
|
-
/**
|
|
1942
|
-
* Specifies the efficiency of converting chemical energy stored in fuel to potential energy when the vehicle gains elevation _(i.e. PotentialEnergyGained/ChemicalEnergyConsumed). ChemicalEnergyConsumed_ is obtained by converting consumed fuel to chemical energy using **fuelEnergyDensityInMJoulesPerLiter**.
|
|
1943
|
-
*
|
|
1944
|
-
* Must be paired with **downhillEfficiency**.
|
|
1945
|
-
*
|
|
1946
|
-
* The range of values allowed are 0.0 to 1/**downhillEfficiency**.
|
|
1947
|
-
*
|
|
1948
|
-
* Sensible Values : for **Combustion Model** : 0.27, for **Electric Model** : 0.74
|
|
1949
|
-
*/
|
|
1950
|
-
uphillEfficiency?: number;
|
|
1951
|
-
/**
|
|
1952
|
-
* Specifies the efficiency of converting potential energy to saved (not consumed) fuel when the vehicle loses elevation _(i.e. ChemicalEnergySaved/PotentialEnergyLost). ChemicalEnergySaved_ is obtained by converting saved (not consumed) fuel to energy using **fuelEnergyDensityInMJoulesPerLiter**.
|
|
1953
|
-
*
|
|
1954
|
-
* Must be paired with **uphillEfficiency**.
|
|
1955
|
-
*
|
|
1956
|
-
* The range of values allowed are 0.0 to 1/**uphillEfficiency**.
|
|
1957
|
-
*
|
|
1958
|
-
* Sensible Values : for **Combustion Model** : 0.51, for **Electric Model** : 0.73
|
|
1959
|
-
*/
|
|
1960
|
-
downhillEfficiency?: number;
|
|
1961
|
-
/**
|
|
1962
|
-
* Specifies the speed-dependent component of consumption.
|
|
1963
|
-
*
|
|
1964
|
-
* Provided as an unordered list of speed/consumption-rate pairs. The list defines points on a consumption curve. Consumption rates for speeds not in the list are found as follows:
|
|
1965
|
-
*
|
|
1966
|
-
* * by linear interpolation, if the given speed lies in between two speeds in the list
|
|
1967
|
-
*
|
|
1968
|
-
* * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list
|
|
1969
|
-
*
|
|
1970
|
-
* The list must contain between 1 and 25 points (inclusive), and may not contain duplicate points for the same speed. If it only contains a single point, then the consumption rate of that point is used without further processing.
|
|
1971
|
-
*
|
|
1972
|
-
* Consumption specified for the largest speed must be greater than or equal to that of the penultimate largest speed. This ensures that extrapolation does not lead to negative consumption rates.
|
|
1973
|
-
*
|
|
1974
|
-
* Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.
|
|
1975
|
-
*
|
|
1976
|
-
* The valid range for the consumption values(expressed in kWh/100km) is between 0.01 and 100000.0.
|
|
1977
|
-
*
|
|
1978
|
-
* Sensible Values : 50,8.2:130,21.3
|
|
1979
|
-
*
|
|
1980
|
-
* This parameter is required for **Electric consumption model**.
|
|
1981
|
-
*/
|
|
1982
|
-
constantSpeedConsumptionInkWhPerHundredkm?: string;
|
|
1983
|
-
/**
|
|
1984
|
-
* Specifies the current electric energy supply in kilowatt hours (kWh).
|
|
1985
|
-
*
|
|
1986
|
-
* This parameter co-exists with **maxChargeInkWh** parameter.
|
|
1987
|
-
*
|
|
1988
|
-
* The range of values allowed are 0.0 to **maxChargeInkWh**.
|
|
1989
|
-
*
|
|
1990
|
-
* Sensible Values : 43
|
|
1991
|
-
*/
|
|
1992
|
-
currentChargeInkWh?: number;
|
|
1993
|
-
/**
|
|
1994
|
-
* Specifies the maximum electric energy supply in kilowatt hours (kWh) that may be stored in the vehicle's battery.
|
|
1995
|
-
*
|
|
1996
|
-
* This parameter co-exists with **currentChargeInkWh** parameter.
|
|
1997
|
-
*
|
|
1998
|
-
* Minimum value has to be greater than or equal to **currentChargeInkWh**.
|
|
1999
|
-
*
|
|
2000
|
-
* Sensible Values : 85
|
|
2001
|
-
*/
|
|
2002
|
-
maxChargeInkWh?: number;
|
|
2003
|
-
/**
|
|
2004
|
-
* Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW).
|
|
2005
|
-
*
|
|
2006
|
-
* It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.
|
|
2007
|
-
*
|
|
2008
|
-
* Sensible Values : 1.7
|
|
2009
|
-
*/
|
|
2010
|
-
auxiliaryPowerInkW?: number;
|
|
2011
|
-
}
|
|
2012
|
-
|
|
2013
|
-
/** Contains guidance related elements. This field is present only when guidance was requested and is available. */
|
|
2014
|
-
export declare interface RouteGuidanceOutput {
|
|
2015
|
-
/** A list of instructions describing maneuvers. */
|
|
2016
|
-
instructions: Array<RouteInstructionOutput>;
|
|
2017
|
-
/** Groups a sequence of instruction elements which are related to each other. */
|
|
2018
|
-
instructionGroups: Array<RouteInstructionGroupOutput>;
|
|
2019
|
-
}
|
|
2020
|
-
|
|
2021
|
-
/** Groups a sequence of instruction elements which are related to each other. The sequence range is constrained with firstInstructionIndex and lastInstructionIndex. When human-readable text messages are requested for guidance (instructionType=text or tagged), then the instructionGroup has a summary message returned when available. */
|
|
2022
|
-
export declare interface RouteInstructionGroupOutput {
|
|
2023
|
-
/** Index of the first instruction in the instructions and belonging to this group. */
|
|
2024
|
-
firstInstructionIndex?: number;
|
|
2025
|
-
/** Index of the last instruction in the instructions and belonging to this group. */
|
|
2026
|
-
lastInstructionIndex?: number;
|
|
2027
|
-
/** Length of the group. */
|
|
2028
|
-
groupLengthInMeters?: number;
|
|
2029
|
-
/** Summary message when human-readable text messages are requested for guidance (instructionType=text or tagged). */
|
|
2030
|
-
groupMessage?: string;
|
|
2031
|
-
}
|
|
2032
|
-
|
|
2033
|
-
/** A set of attributes describing a maneuver, e.g. 'Turn right', 'Keep left', 'Take the ferry', 'Take the motorway', 'Arrive'. */
|
|
2034
|
-
export declare interface RouteInstructionOutput {
|
|
2035
|
-
/** Distance from the start of the route to the point of the instruction. */
|
|
2036
|
-
routeOffsetInMeters?: number;
|
|
2037
|
-
/** Estimated travel time up to the point corresponding to routeOffsetInMeters. */
|
|
2038
|
-
travelTimeInSeconds?: number;
|
|
2039
|
-
/** A location represented as a latitude and longitude. */
|
|
2040
|
-
point?: LatLongPairOutput;
|
|
2041
|
-
/** The index of the point in the list of polyline "points" corresponding to the point of the instruction. */
|
|
2042
|
-
pointIndex?: number;
|
|
2043
|
-
/** Type of the instruction, e.g., turn or change of road form. */
|
|
2044
|
-
instructionType?: "TURN" | "ROAD_CHANGE" | "LOCATION_DEPARTURE" | "LOCATION_ARRIVAL" | "DIRECTION_INFO" | "LOCATION_WAYPOINT";
|
|
2045
|
-
/** The road number(s) of the next significant road segment(s) after the maneuver, or of the road(s) to be followed. Example: ["E34", "N205"] */
|
|
2046
|
-
roadNumbers?: Array<string>;
|
|
2047
|
-
/** The number(s) of a highway exit taken by the current maneuver. If an exit has multiple exit numbers, they will be separated by "," and possibly aggregated by "-", e.g., "10, 13-15". */
|
|
2048
|
-
exitNumber?: string;
|
|
2049
|
-
/** Street name of the next significant road segment after the maneuver, or of the street that should be followed. */
|
|
2050
|
-
street?: string;
|
|
2051
|
-
/** The text on a signpost which is most relevant to the maneuver, or to the direction that should be followed. */
|
|
2052
|
-
signpostText?: string;
|
|
2053
|
-
/** 3-character [ISO 3166-1](https://www.iso.org/iso-3166-country-codes.html) alpha-3 country code. E.g. USA. */
|
|
2054
|
-
countryCode?: string;
|
|
2055
|
-
/** A subdivision (e.g., state) of the country, represented by the second part of an [ISO 3166-2](https://www.iso.org/standard/63546.html) code. This is only available for some countries like the US, Canada, and Mexico. */
|
|
2056
|
-
stateCode?: string;
|
|
2057
|
-
/** The type of the junction where the maneuver takes place. For larger roundabouts, two separate instructions are generated for entering and leaving the roundabout. */
|
|
2058
|
-
junctionType?: "REGULAR" | "ROUNDABOUT" | "BIFURCATION";
|
|
2059
|
-
/**
|
|
2060
|
-
* Indicates the direction of an instruction. If junctionType indicates a turn instruction:
|
|
2061
|
-
*
|
|
2062
|
-
* * 180 = U-turn
|
|
2063
|
-
* * [-179, -1] = Left turn
|
|
2064
|
-
* * 0 = Straight on (a '0 degree' turn)
|
|
2065
|
-
* * [1, 179] = Right turn
|
|
2066
|
-
*
|
|
2067
|
-
* If junctionType indicates a bifurcation instruction:
|
|
2068
|
-
*
|
|
2069
|
-
* * <0 - keep left
|
|
2070
|
-
* * \>0 - keep right
|
|
2071
|
-
*/
|
|
2072
|
-
turnAngleInDecimalDegrees?: number;
|
|
2073
|
-
/** This indicates which exit to take at a roundabout. */
|
|
2074
|
-
roundaboutExitNumber?: string;
|
|
2075
|
-
/** It is possible to optionally combine the instruction with the next one. This can be used to build messages like "Turn left and then turn right". */
|
|
2076
|
-
possibleCombineWithNext?: boolean;
|
|
2077
|
-
/** Indicates left-hand vs. right-hand side driving at the point of the maneuver. */
|
|
2078
|
-
drivingSide?: "LEFT" | "RIGHT";
|
|
2079
|
-
/** A code identifying the maneuver. */
|
|
2080
|
-
maneuver?: "ARRIVE" | "ARRIVE_LEFT" | "ARRIVE_RIGHT" | "DEPART" | "STRAIGHT" | "KEEP_RIGHT" | "BEAR_RIGHT" | "TURN_RIGHT" | "SHARP_RIGHT" | "KEEP_LEFT" | "BEAR_LEFT" | "TURN_LEFT" | "SHARP_LEFT" | "MAKE_UTURN" | "ENTER_MOTORWAY" | "ENTER_FREEWAY" | "ENTER_HIGHWAY" | "TAKE_EXIT" | "MOTORWAY_EXIT_LEFT" | "MOTORWAY_EXIT_RIGHT" | "TAKE_FERRY" | "ROUNDABOUT_CROSS" | "ROUNDABOUT_RIGHT" | "ROUNDABOUT_LEFT" | "ROUNDABOUT_BACK" | "TRY_MAKE_UTURN" | "FOLLOW" | "SWITCH_PARALLEL_ROAD" | "SWITCH_MAIN_ROAD" | "ENTRANCE_RAMP" | "WAYPOINT_LEFT" | "WAYPOINT_RIGHT" | "WAYPOINT_REACHED";
|
|
2081
|
-
/** A human-readable message for the maneuver. */
|
|
2082
|
-
message?: string;
|
|
2083
|
-
/**
|
|
2084
|
-
* A human-readable message for the maneuver combined with the message from the next instruction. Sometimes it is possible to combine two successive instructions into a single instruction making it easier to follow. When this is the case the possibleCombineWithNext flag will be true. For example:
|
|
2085
|
-
*
|
|
2086
|
-
* ```
|
|
2087
|
-
* 10. Turn left onto Einsteinweg/A10/E22 towards Ring Amsterdam
|
|
2088
|
-
* 11. Follow Einsteinweg/A10/E22 towards Ring Amsterdam
|
|
2089
|
-
* ```
|
|
2090
|
-
*
|
|
2091
|
-
* The possibleCombineWithNext flag on instruction 10 is true. This indicates to the clients of coded guidance that it can be combined with instruction 11. The instructions will be combined automatically for clients requesting human-readable guidance. The combinedMessage field contains the combined message:
|
|
2092
|
-
*
|
|
2093
|
-
* ```
|
|
2094
|
-
* Turn left onto Einsteinweg/A10/E22 towards Ring Amsterdam
|
|
2095
|
-
* then follow Einsteinweg/A10/E22 towards Ring Amsterdam.
|
|
2096
|
-
* ```
|
|
2097
|
-
*/
|
|
2098
|
-
combinedMessage?: string;
|
|
2099
|
-
}
|
|
2100
|
-
|
|
2101
|
-
/** A description of a part of a route, comprised of a list of points. Each additional waypoint provided in the request will result in an additional leg in the returned route. */
|
|
2102
|
-
export declare interface RouteLegOutput {
|
|
2103
|
-
/** Summary object */
|
|
2104
|
-
summary: RouteSummaryOutput;
|
|
2105
|
-
/** Points array */
|
|
2106
|
-
points: Array<LatLongPairOutput>;
|
|
2107
|
-
}
|
|
2108
|
-
|
|
2109
|
-
/** Matrix result object */
|
|
2110
|
-
export declare interface RouteMatrixOutput {
|
|
2111
|
-
/** StatusCode property for the current cell in the input matrix. */
|
|
2112
|
-
statusCode: number;
|
|
2113
|
-
/** Response object of the current cell in the input matrix. */
|
|
2114
|
-
response?: RouteMatrixResultResponseOutput;
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
-
/** An object with a matrix of coordinates. */
|
|
2118
|
-
export declare interface RouteMatrixQuery {
|
|
2119
|
-
/** A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details. */
|
|
2120
|
-
origins: GeoJsonMultiPoint;
|
|
2121
|
-
/** A valid `GeoJSON MultiPoint` geometry type. Please refer to [RFC 7946](https://tools.ietf.org/html/rfc7946#section-3.1.3) for details. */
|
|
2122
|
-
destinations: GeoJsonMultiPoint;
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
/** This object is returned from a successful Route Matrix call. For ex, if 2 origins and 3 destinations are provided, there are going to 2 arrays with 3 elements in each. Each element's content depends on the options provided in the query. */
|
|
2126
|
-
export declare interface RouteMatrixResultOutput {
|
|
2127
|
-
/** Format Version property */
|
|
2128
|
-
formatVersion?: string;
|
|
2129
|
-
/** Results as a 2 dimensional array of route summaries. */
|
|
2130
|
-
matrix: Array<Array<RouteMatrixOutput>>;
|
|
2131
|
-
/** Summary object */
|
|
2132
|
-
summary: RouteMatrixSummaryOutput;
|
|
2133
|
-
}
|
|
2134
|
-
|
|
2135
|
-
/** Response object of the current cell in the input matrix. */
|
|
2136
|
-
export declare interface RouteMatrixResultResponseOutput {
|
|
2137
|
-
/** Summary object */
|
|
2138
|
-
routeSummary?: RouteSummaryOutput;
|
|
2139
|
-
}
|
|
2140
|
-
|
|
2141
|
-
/** Summary object */
|
|
2142
|
-
export declare interface RouteMatrixSummaryOutput {
|
|
2143
|
-
/** Number of successful routes in the response. */
|
|
2144
|
-
successfulRoutes: number;
|
|
2145
|
-
/** Total number of routes requested. Number of cells in the input matrix. */
|
|
2146
|
-
totalRoutes: number;
|
|
2147
|
-
}
|
|
2148
|
-
|
|
2149
|
-
/** Optimized way point object. */
|
|
2150
|
-
export declare interface RouteOptimizedWaypointOutput {
|
|
2151
|
-
/** Way point index provided by the user. */
|
|
2152
|
-
providedIndex: number;
|
|
2153
|
-
/** Optimized way point index from the system. */
|
|
2154
|
-
optimizedIndex: number;
|
|
2155
|
-
}
|
|
2156
|
-
|
|
2157
|
-
export declare interface RouteOutput {
|
|
2158
|
-
/** Summary object */
|
|
2159
|
-
summary: RouteSummaryOutput;
|
|
2160
|
-
/** Legs array */
|
|
2161
|
-
legs: Array<RouteLegOutput>;
|
|
2162
|
-
/** Sections array */
|
|
2163
|
-
sections?: Array<RouteSectionOutput>;
|
|
2164
|
-
/** Contains guidance related elements. This field is present only when guidance was requested and is available. */
|
|
2165
|
-
guidance?: RouteGuidanceOutput;
|
|
2166
|
-
}
|
|
2167
|
-
|
|
2168
|
-
/** Reachable Range */
|
|
2169
|
-
export declare interface RouteRangeOutput {
|
|
2170
|
-
/** Center point of the reachable range */
|
|
2171
|
-
center: LatLongPairOutput;
|
|
2172
|
-
/** Polygon boundary of the reachable range represented as a list of points. */
|
|
2173
|
-
boundary: Array<LatLongPairOutput>;
|
|
2174
|
-
}
|
|
2175
|
-
|
|
2176
|
-
/** This object is returned from a successful Route Reachable Range call */
|
|
2177
|
-
export declare interface RouteRangeResultOutput {
|
|
2178
|
-
/** Format Version property */
|
|
2179
|
-
formatVersion?: string;
|
|
2180
|
-
/** Reachable Range */
|
|
2181
|
-
reachableRange: RouteRangeOutput;
|
|
2182
|
-
/** Reports the effective settings used in the current call. */
|
|
2183
|
-
report?: RouteReportOutput;
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
|
-
/** Reports the effective settings used in the current call. */
|
|
2187
|
-
export declare interface RouteReportOutput {
|
|
2188
|
-
/** Effective parameters or data used when calling this Route API. */
|
|
2189
|
-
effectiveSettings: Array<EffectiveSettingOutput>;
|
|
2190
|
-
}
|
|
2191
|
-
|
|
2192
|
-
/**
|
|
2193
|
-
* **Route Directions Batch API**
|
|
2194
|
-
*
|
|
2195
|
-
*
|
|
2196
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
2197
|
-
*
|
|
2198
|
-
*
|
|
2199
|
-
*
|
|
2200
|
-
* The Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/rest/api/maps/route/getroutedirections) using just a single API call. 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.
|
|
2201
|
-
* ### Submit Asynchronous Batch Request
|
|
2202
|
-
* The Asynchronous API is appropriate for processing big volumes of relatively complex route requests
|
|
2203
|
-
* - It allows the retrieval of results in a separate call (multiple downloads are possible).
|
|
2204
|
-
* - The asynchronous API is optimized for reliability and is not expected to run into a timeout.
|
|
2205
|
-
* - The number of batch items is limited to **700** for this API.
|
|
2206
|
-
*
|
|
2207
|
-
* 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.
|
|
2208
|
-
* The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.
|
|
2209
|
-
*
|
|
2210
|
-
* Please note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:
|
|
2211
|
-
* 1. Client sends a Route Directions Batch `POST` request to Azure Maps
|
|
2212
|
-
* 2. The server will respond with one of the following:
|
|
2213
|
-
*
|
|
2214
|
-
* > HTTP `202 Accepted` - Batch request has been accepted.
|
|
2215
|
-
*
|
|
2216
|
-
* > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.
|
|
2217
|
-
*
|
|
2218
|
-
* 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.
|
|
2219
|
-
* This status URI looks like following:
|
|
2220
|
-
*
|
|
2221
|
-
* ``` GET https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0 ```
|
|
2222
|
-
* Note:- Please remember to add AUTH information (subscription-key/azure_auth - See [Security](#security)) to the _status URI_ before running it. <br>
|
|
2223
|
-
* 4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.
|
|
2224
|
-
*
|
|
2225
|
-
* ### POST Body for Batch Request
|
|
2226
|
-
* 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:
|
|
2227
|
-
*
|
|
2228
|
-
*
|
|
2229
|
-
* ```json
|
|
2230
|
-
* {
|
|
2231
|
-
* "batchItems": [
|
|
2232
|
-
* { "query": "?query=47.620659,-122.348934:47.610101,-122.342015&travelMode=bicycle&routeType=eco&traffic=false" },
|
|
2233
|
-
* { "query": "?query=40.759856,-73.985108:40.771136,-73.973506&travelMode=pedestrian&routeType=shortest" },
|
|
2234
|
-
* { "query": "?query=48.923159,-122.557362:32.621279,-116.840362" }
|
|
2235
|
-
* ]
|
|
2236
|
-
* }
|
|
2237
|
-
* ```
|
|
2238
|
-
*
|
|
2239
|
-
* 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.
|
|
2240
|
-
*
|
|
2241
|
-
*
|
|
2242
|
-
* 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.
|
|
2243
|
-
*
|
|
2244
|
-
*
|
|
2245
|
-
* ### Download Asynchronous Batch Results
|
|
2246
|
-
* 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:
|
|
2247
|
-
*
|
|
2248
|
-
* ```
|
|
2249
|
-
* https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}
|
|
2250
|
-
* ```
|
|
2251
|
-
* Here's the typical sequence of operations for downloading the batch results:
|
|
2252
|
-
* 1. Client sends a `GET` request using the _download URL_.
|
|
2253
|
-
* 2. The server will respond with one of the following:
|
|
2254
|
-
*
|
|
2255
|
-
* > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.
|
|
2256
|
-
*
|
|
2257
|
-
* > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.
|
|
2258
|
-
*
|
|
2259
|
-
*
|
|
2260
|
-
*
|
|
2261
|
-
* ### Batch Response Model
|
|
2262
|
-
* 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:
|
|
2263
|
-
*
|
|
2264
|
-
* - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
|
|
2265
|
-
*
|
|
2266
|
-
* - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
|
|
2267
|
-
*
|
|
2268
|
-
*
|
|
2269
|
-
* Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
|
|
2270
|
-
*
|
|
2271
|
-
*
|
|
2272
|
-
* ```json
|
|
2273
|
-
* {
|
|
2274
|
-
* "summary": {
|
|
2275
|
-
* "successfulRequests": 1,
|
|
2276
|
-
* "totalRequests": 2
|
|
2277
|
-
* },
|
|
2278
|
-
* "batchItems": [
|
|
2279
|
-
* {
|
|
2280
|
-
* "statusCode": 200,
|
|
2281
|
-
* "response": {
|
|
2282
|
-
* "routes": [
|
|
2283
|
-
* {
|
|
2284
|
-
* "summary": {
|
|
2285
|
-
* "lengthInMeters": 1758,
|
|
2286
|
-
* "travelTimeInSeconds": 387,
|
|
2287
|
-
* "trafficDelayInSeconds": 0,
|
|
2288
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
2289
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
2290
|
-
* },
|
|
2291
|
-
* "legs": [
|
|
2292
|
-
* {
|
|
2293
|
-
* "summary": {
|
|
2294
|
-
* "lengthInMeters": 1758,
|
|
2295
|
-
* "travelTimeInSeconds": 387,
|
|
2296
|
-
* "trafficDelayInSeconds": 0,
|
|
2297
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
2298
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
2299
|
-
* },
|
|
2300
|
-
* "points": [
|
|
2301
|
-
* {
|
|
2302
|
-
* "latitude": 47.62094,
|
|
2303
|
-
* "longitude": -122.34892
|
|
2304
|
-
* },
|
|
2305
|
-
* {
|
|
2306
|
-
* "latitude": 47.62094,
|
|
2307
|
-
* "longitude": -122.3485
|
|
2308
|
-
* },
|
|
2309
|
-
* {
|
|
2310
|
-
* "latitude": 47.62095,
|
|
2311
|
-
* "longitude": -122.3476
|
|
2312
|
-
* }
|
|
2313
|
-
* ]
|
|
2314
|
-
* }
|
|
2315
|
-
* ],
|
|
2316
|
-
* "sections": [
|
|
2317
|
-
* {
|
|
2318
|
-
* "startPointIndex": 0,
|
|
2319
|
-
* "endPointIndex": 40,
|
|
2320
|
-
* "sectionType": "TRAVEL_MODE",
|
|
2321
|
-
* "travelMode": "bicycle"
|
|
2322
|
-
* }
|
|
2323
|
-
* ]
|
|
2324
|
-
* }
|
|
2325
|
-
* ]
|
|
2326
|
-
* }
|
|
2327
|
-
* },
|
|
2328
|
-
* {
|
|
2329
|
-
* "statusCode": 400,
|
|
2330
|
-
* "response":
|
|
2331
|
-
* {
|
|
2332
|
-
* "error":
|
|
2333
|
-
* {
|
|
2334
|
-
* "code": "400 BadRequest",
|
|
2335
|
-
* "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
|
|
2336
|
-
* }
|
|
2337
|
-
* }
|
|
2338
|
-
* }
|
|
2339
|
-
* ]
|
|
2340
|
-
* }
|
|
2341
|
-
* ```
|
|
2342
|
-
*/
|
|
2343
|
-
export declare interface RouteRequestRouteDirectionsBatch200Response extends HttpResponse {
|
|
2344
|
-
status: "200";
|
|
2345
|
-
body: RouteDirectionsBatchResultOutput;
|
|
2346
|
-
}
|
|
2347
|
-
|
|
2348
|
-
export declare interface RouteRequestRouteDirectionsBatch202Headers {
|
|
2349
|
-
/** New URL to check for the results of the long running process. */
|
|
2350
|
-
location?: string;
|
|
2351
|
-
}
|
|
2352
|
-
|
|
2353
|
-
/**
|
|
2354
|
-
* **Route Directions Batch API**
|
|
2355
|
-
*
|
|
2356
|
-
*
|
|
2357
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
2358
|
-
*
|
|
2359
|
-
*
|
|
2360
|
-
*
|
|
2361
|
-
* The Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/rest/api/maps/route/getroutedirections) using just a single API call. 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.
|
|
2362
|
-
* ### Submit Asynchronous Batch Request
|
|
2363
|
-
* The Asynchronous API is appropriate for processing big volumes of relatively complex route requests
|
|
2364
|
-
* - It allows the retrieval of results in a separate call (multiple downloads are possible).
|
|
2365
|
-
* - The asynchronous API is optimized for reliability and is not expected to run into a timeout.
|
|
2366
|
-
* - The number of batch items is limited to **700** for this API.
|
|
2367
|
-
*
|
|
2368
|
-
* 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.
|
|
2369
|
-
* The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.
|
|
2370
|
-
*
|
|
2371
|
-
* Please note that asynchronous batch request is a long-running request. Here's a typical sequence of operations:
|
|
2372
|
-
* 1. Client sends a Route Directions Batch `POST` request to Azure Maps
|
|
2373
|
-
* 2. The server will respond with one of the following:
|
|
2374
|
-
*
|
|
2375
|
-
* > HTTP `202 Accepted` - Batch request has been accepted.
|
|
2376
|
-
*
|
|
2377
|
-
* > HTTP `Error` - There was an error processing your Batch request. This could either be a `400 Bad Request` or any other `Error` status code.
|
|
2378
|
-
*
|
|
2379
|
-
* 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.
|
|
2380
|
-
* This status URI looks like following:
|
|
2381
|
-
*
|
|
2382
|
-
* ``` GET https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0 ```
|
|
2383
|
-
* Note:- Please remember to add AUTH information (subscription-key/azure_auth - See [Security](#security)) to the _status URI_ before running it. <br>
|
|
2384
|
-
* 4. Client issues a `GET` request on the _download URL_ obtained in Step 3 to download the batch results.
|
|
2385
|
-
*
|
|
2386
|
-
* ### POST Body for Batch Request
|
|
2387
|
-
* 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:
|
|
2388
|
-
*
|
|
2389
|
-
*
|
|
2390
|
-
* ```json
|
|
2391
|
-
* {
|
|
2392
|
-
* "batchItems": [
|
|
2393
|
-
* { "query": "?query=47.620659,-122.348934:47.610101,-122.342015&travelMode=bicycle&routeType=eco&traffic=false" },
|
|
2394
|
-
* { "query": "?query=40.759856,-73.985108:40.771136,-73.973506&travelMode=pedestrian&routeType=shortest" },
|
|
2395
|
-
* { "query": "?query=48.923159,-122.557362:32.621279,-116.840362" }
|
|
2396
|
-
* ]
|
|
2397
|
-
* }
|
|
2398
|
-
* ```
|
|
2399
|
-
*
|
|
2400
|
-
* 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.
|
|
2401
|
-
*
|
|
2402
|
-
*
|
|
2403
|
-
* 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.
|
|
2404
|
-
*
|
|
2405
|
-
*
|
|
2406
|
-
* ### Download Asynchronous Batch Results
|
|
2407
|
-
* 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:
|
|
2408
|
-
*
|
|
2409
|
-
* ```
|
|
2410
|
-
* https://atlas.microsoft.com/route/directions/batch/{batch-id}?api-version=1.0&subscription-key={subscription-key}
|
|
2411
|
-
* ```
|
|
2412
|
-
* Here's the typical sequence of operations for downloading the batch results:
|
|
2413
|
-
* 1. Client sends a `GET` request using the _download URL_.
|
|
2414
|
-
* 2. The server will respond with one of the following:
|
|
2415
|
-
*
|
|
2416
|
-
* > HTTP `202 Accepted` - Batch request was accepted but is still being processed. Please try again in some time.
|
|
2417
|
-
*
|
|
2418
|
-
* > HTTP `200 OK` - Batch request successfully processed. The response body contains all the batch results.
|
|
2419
|
-
*
|
|
2420
|
-
*
|
|
2421
|
-
*
|
|
2422
|
-
* ### Batch Response Model
|
|
2423
|
-
* 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:
|
|
2424
|
-
*
|
|
2425
|
-
* - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
|
|
2426
|
-
*
|
|
2427
|
-
* - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
|
|
2428
|
-
*
|
|
2429
|
-
*
|
|
2430
|
-
* Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
|
|
2431
|
-
*
|
|
2432
|
-
*
|
|
2433
|
-
* ```json
|
|
2434
|
-
* {
|
|
2435
|
-
* "summary": {
|
|
2436
|
-
* "successfulRequests": 1,
|
|
2437
|
-
* "totalRequests": 2
|
|
2438
|
-
* },
|
|
2439
|
-
* "batchItems": [
|
|
2440
|
-
* {
|
|
2441
|
-
* "statusCode": 200,
|
|
2442
|
-
* "response": {
|
|
2443
|
-
* "routes": [
|
|
2444
|
-
* {
|
|
2445
|
-
* "summary": {
|
|
2446
|
-
* "lengthInMeters": 1758,
|
|
2447
|
-
* "travelTimeInSeconds": 387,
|
|
2448
|
-
* "trafficDelayInSeconds": 0,
|
|
2449
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
2450
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
2451
|
-
* },
|
|
2452
|
-
* "legs": [
|
|
2453
|
-
* {
|
|
2454
|
-
* "summary": {
|
|
2455
|
-
* "lengthInMeters": 1758,
|
|
2456
|
-
* "travelTimeInSeconds": 387,
|
|
2457
|
-
* "trafficDelayInSeconds": 0,
|
|
2458
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
2459
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
2460
|
-
* },
|
|
2461
|
-
* "points": [
|
|
2462
|
-
* {
|
|
2463
|
-
* "latitude": 47.62094,
|
|
2464
|
-
* "longitude": -122.34892
|
|
2465
|
-
* },
|
|
2466
|
-
* {
|
|
2467
|
-
* "latitude": 47.62094,
|
|
2468
|
-
* "longitude": -122.3485
|
|
2469
|
-
* },
|
|
2470
|
-
* {
|
|
2471
|
-
* "latitude": 47.62095,
|
|
2472
|
-
* "longitude": -122.3476
|
|
2473
|
-
* }
|
|
2474
|
-
* ]
|
|
2475
|
-
* }
|
|
2476
|
-
* ],
|
|
2477
|
-
* "sections": [
|
|
2478
|
-
* {
|
|
2479
|
-
* "startPointIndex": 0,
|
|
2480
|
-
* "endPointIndex": 40,
|
|
2481
|
-
* "sectionType": "TRAVEL_MODE",
|
|
2482
|
-
* "travelMode": "bicycle"
|
|
2483
|
-
* }
|
|
2484
|
-
* ]
|
|
2485
|
-
* }
|
|
2486
|
-
* ]
|
|
2487
|
-
* }
|
|
2488
|
-
* },
|
|
2489
|
-
* {
|
|
2490
|
-
* "statusCode": 400,
|
|
2491
|
-
* "response":
|
|
2492
|
-
* {
|
|
2493
|
-
* "error":
|
|
2494
|
-
* {
|
|
2495
|
-
* "code": "400 BadRequest",
|
|
2496
|
-
* "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
|
|
2497
|
-
* }
|
|
2498
|
-
* }
|
|
2499
|
-
* }
|
|
2500
|
-
* ]
|
|
2501
|
-
* }
|
|
2502
|
-
* ```
|
|
2503
|
-
*/
|
|
2504
|
-
export declare interface RouteRequestRouteDirectionsBatch202Response extends HttpResponse {
|
|
2505
|
-
status: "202";
|
|
2506
|
-
body: Record<string, unknown>;
|
|
2507
|
-
headers: RawHttpHeaders & RouteRequestRouteDirectionsBatch202Headers;
|
|
2508
|
-
}
|
|
2509
|
-
|
|
2510
|
-
export declare interface RouteRequestRouteDirectionsBatchBodyParam {
|
|
2511
|
-
/** The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query. */
|
|
2512
|
-
body: BatchRequest;
|
|
2513
|
-
}
|
|
2514
|
-
|
|
2515
|
-
export declare interface RouteRequestRouteDirectionsBatchMediaTypesParam {
|
|
2516
|
-
/** Request content type */
|
|
2517
|
-
contentType?: "application/json";
|
|
2518
|
-
}
|
|
2519
|
-
|
|
2520
|
-
export declare type RouteRequestRouteDirectionsBatchParameters = RouteRequestRouteDirectionsBatchMediaTypesParam & RouteRequestRouteDirectionsBatchBodyParam & RequestParameters;
|
|
2521
|
-
|
|
2522
|
-
/**
|
|
2523
|
-
* **Route Directions Batch API**
|
|
2524
|
-
*
|
|
2525
|
-
*
|
|
2526
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
2527
|
-
*
|
|
2528
|
-
*
|
|
2529
|
-
*
|
|
2530
|
-
* The Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/rest/api/maps/route/getroutedirections) using just a single API call. 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.
|
|
2531
|
-
* ### Submit Synchronous Batch Request
|
|
2532
|
-
* 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.
|
|
2533
|
-
* ```
|
|
2534
|
-
* POST https://atlas.microsoft.com/route/directions/batch/sync/json?api-version=1.0&subscription-key={subscription-key}
|
|
2535
|
-
* ```
|
|
2536
|
-
* ### Batch Response Model
|
|
2537
|
-
* 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:
|
|
2538
|
-
*
|
|
2539
|
-
* - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
|
|
2540
|
-
*
|
|
2541
|
-
* - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
|
|
2542
|
-
*
|
|
2543
|
-
*
|
|
2544
|
-
* Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
|
|
2545
|
-
*
|
|
2546
|
-
*
|
|
2547
|
-
* ```json
|
|
2548
|
-
* {
|
|
2549
|
-
* "summary": {
|
|
2550
|
-
* "successfulRequests": 1,
|
|
2551
|
-
* "totalRequests": 2
|
|
2552
|
-
* },
|
|
2553
|
-
* "batchItems": [
|
|
2554
|
-
* {
|
|
2555
|
-
* "statusCode": 200,
|
|
2556
|
-
* "response": {
|
|
2557
|
-
* "routes": [
|
|
2558
|
-
* {
|
|
2559
|
-
* "summary": {
|
|
2560
|
-
* "lengthInMeters": 1758,
|
|
2561
|
-
* "travelTimeInSeconds": 387,
|
|
2562
|
-
* "trafficDelayInSeconds": 0,
|
|
2563
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
2564
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
2565
|
-
* },
|
|
2566
|
-
* "legs": [
|
|
2567
|
-
* {
|
|
2568
|
-
* "summary": {
|
|
2569
|
-
* "lengthInMeters": 1758,
|
|
2570
|
-
* "travelTimeInSeconds": 387,
|
|
2571
|
-
* "trafficDelayInSeconds": 0,
|
|
2572
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
2573
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
2574
|
-
* },
|
|
2575
|
-
* "points": [
|
|
2576
|
-
* {
|
|
2577
|
-
* "latitude": 47.62094,
|
|
2578
|
-
* "longitude": -122.34892
|
|
2579
|
-
* },
|
|
2580
|
-
* {
|
|
2581
|
-
* "latitude": 47.62094,
|
|
2582
|
-
* "longitude": -122.3485
|
|
2583
|
-
* },
|
|
2584
|
-
* {
|
|
2585
|
-
* "latitude": 47.62095,
|
|
2586
|
-
* "longitude": -122.3476
|
|
2587
|
-
* }
|
|
2588
|
-
* ]
|
|
2589
|
-
* }
|
|
2590
|
-
* ],
|
|
2591
|
-
* "sections": [
|
|
2592
|
-
* {
|
|
2593
|
-
* "startPointIndex": 0,
|
|
2594
|
-
* "endPointIndex": 40,
|
|
2595
|
-
* "sectionType": "TRAVEL_MODE",
|
|
2596
|
-
* "travelMode": "bicycle"
|
|
2597
|
-
* }
|
|
2598
|
-
* ]
|
|
2599
|
-
* }
|
|
2600
|
-
* ]
|
|
2601
|
-
* }
|
|
2602
|
-
* },
|
|
2603
|
-
* {
|
|
2604
|
-
* "statusCode": 400,
|
|
2605
|
-
* "response":
|
|
2606
|
-
* {
|
|
2607
|
-
* "error":
|
|
2608
|
-
* {
|
|
2609
|
-
* "code": "400 BadRequest",
|
|
2610
|
-
* "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
|
|
2611
|
-
* }
|
|
2612
|
-
* }
|
|
2613
|
-
* }
|
|
2614
|
-
* ]
|
|
2615
|
-
* }
|
|
2616
|
-
* ```
|
|
2617
|
-
*/
|
|
2618
|
-
export declare interface RouteRequestRouteDirectionsBatchSync200Response extends HttpResponse {
|
|
2619
|
-
status: "200";
|
|
2620
|
-
body: RouteDirectionsBatchResultOutput;
|
|
2621
|
-
}
|
|
2622
|
-
|
|
2623
|
-
/**
|
|
2624
|
-
* **Route Directions Batch API**
|
|
2625
|
-
*
|
|
2626
|
-
*
|
|
2627
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
2628
|
-
*
|
|
2629
|
-
*
|
|
2630
|
-
*
|
|
2631
|
-
* The Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/rest/api/maps/route/getroutedirections) using just a single API call. 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.
|
|
2632
|
-
* ### Submit Synchronous Batch Request
|
|
2633
|
-
* 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.
|
|
2634
|
-
* ```
|
|
2635
|
-
* POST https://atlas.microsoft.com/route/directions/batch/sync/json?api-version=1.0&subscription-key={subscription-key}
|
|
2636
|
-
* ```
|
|
2637
|
-
* ### Batch Response Model
|
|
2638
|
-
* 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:
|
|
2639
|
-
*
|
|
2640
|
-
* - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
|
|
2641
|
-
*
|
|
2642
|
-
* - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
|
|
2643
|
-
*
|
|
2644
|
-
*
|
|
2645
|
-
* Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
|
|
2646
|
-
*
|
|
2647
|
-
*
|
|
2648
|
-
* ```json
|
|
2649
|
-
* {
|
|
2650
|
-
* "summary": {
|
|
2651
|
-
* "successfulRequests": 1,
|
|
2652
|
-
* "totalRequests": 2
|
|
2653
|
-
* },
|
|
2654
|
-
* "batchItems": [
|
|
2655
|
-
* {
|
|
2656
|
-
* "statusCode": 200,
|
|
2657
|
-
* "response": {
|
|
2658
|
-
* "routes": [
|
|
2659
|
-
* {
|
|
2660
|
-
* "summary": {
|
|
2661
|
-
* "lengthInMeters": 1758,
|
|
2662
|
-
* "travelTimeInSeconds": 387,
|
|
2663
|
-
* "trafficDelayInSeconds": 0,
|
|
2664
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
2665
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
2666
|
-
* },
|
|
2667
|
-
* "legs": [
|
|
2668
|
-
* {
|
|
2669
|
-
* "summary": {
|
|
2670
|
-
* "lengthInMeters": 1758,
|
|
2671
|
-
* "travelTimeInSeconds": 387,
|
|
2672
|
-
* "trafficDelayInSeconds": 0,
|
|
2673
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
2674
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
2675
|
-
* },
|
|
2676
|
-
* "points": [
|
|
2677
|
-
* {
|
|
2678
|
-
* "latitude": 47.62094,
|
|
2679
|
-
* "longitude": -122.34892
|
|
2680
|
-
* },
|
|
2681
|
-
* {
|
|
2682
|
-
* "latitude": 47.62094,
|
|
2683
|
-
* "longitude": -122.3485
|
|
2684
|
-
* },
|
|
2685
|
-
* {
|
|
2686
|
-
* "latitude": 47.62095,
|
|
2687
|
-
* "longitude": -122.3476
|
|
2688
|
-
* }
|
|
2689
|
-
* ]
|
|
2690
|
-
* }
|
|
2691
|
-
* ],
|
|
2692
|
-
* "sections": [
|
|
2693
|
-
* {
|
|
2694
|
-
* "startPointIndex": 0,
|
|
2695
|
-
* "endPointIndex": 40,
|
|
2696
|
-
* "sectionType": "TRAVEL_MODE",
|
|
2697
|
-
* "travelMode": "bicycle"
|
|
2698
|
-
* }
|
|
2699
|
-
* ]
|
|
2700
|
-
* }
|
|
2701
|
-
* ]
|
|
2702
|
-
* }
|
|
2703
|
-
* },
|
|
2704
|
-
* {
|
|
2705
|
-
* "statusCode": 400,
|
|
2706
|
-
* "response":
|
|
2707
|
-
* {
|
|
2708
|
-
* "error":
|
|
2709
|
-
* {
|
|
2710
|
-
* "code": "400 BadRequest",
|
|
2711
|
-
* "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
|
|
2712
|
-
* }
|
|
2713
|
-
* }
|
|
2714
|
-
* }
|
|
2715
|
-
* ]
|
|
2716
|
-
* }
|
|
2717
|
-
* ```
|
|
2718
|
-
*/
|
|
2719
|
-
export declare interface RouteRequestRouteDirectionsBatchSync408Response extends HttpResponse {
|
|
2720
|
-
status: "408";
|
|
2721
|
-
body: ErrorResponseOutput;
|
|
2722
|
-
}
|
|
2723
|
-
|
|
2724
|
-
export declare interface RouteRequestRouteDirectionsBatchSyncBodyParam {
|
|
2725
|
-
/** The list of route directions queries/requests to process. The list can contain a max of 700 queries for async and 100 queries for sync version and must contain at least 1 query. */
|
|
2726
|
-
body: BatchRequest;
|
|
2727
|
-
}
|
|
2728
|
-
|
|
2729
|
-
/**
|
|
2730
|
-
* **Route Directions Batch API**
|
|
2731
|
-
*
|
|
2732
|
-
*
|
|
2733
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
2734
|
-
*
|
|
2735
|
-
*
|
|
2736
|
-
*
|
|
2737
|
-
* The Route Directions Batch API sends batches of queries to [Route Directions API](https://docs.microsoft.com/rest/api/maps/route/getroutedirections) using just a single API call. 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.
|
|
2738
|
-
* ### Submit Synchronous Batch Request
|
|
2739
|
-
* 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.
|
|
2740
|
-
* ```
|
|
2741
|
-
* POST https://atlas.microsoft.com/route/directions/batch/sync/json?api-version=1.0&subscription-key={subscription-key}
|
|
2742
|
-
* ```
|
|
2743
|
-
* ### Batch Response Model
|
|
2744
|
-
* 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:
|
|
2745
|
-
*
|
|
2746
|
-
* - [`RouteDirections`](https://docs.microsoft.com/rest/api/maps/route/getroutedirections#routedirections) - If the query completed successfully.
|
|
2747
|
-
*
|
|
2748
|
-
* - `Error` - If the query failed. The response will contain a `code` and a `message` in this case.
|
|
2749
|
-
*
|
|
2750
|
-
*
|
|
2751
|
-
* Here's a sample Batch Response with 1 _successful_ and 1 _failed_ result:
|
|
2752
|
-
*
|
|
2753
|
-
*
|
|
2754
|
-
* ```json
|
|
2755
|
-
* {
|
|
2756
|
-
* "summary": {
|
|
2757
|
-
* "successfulRequests": 1,
|
|
2758
|
-
* "totalRequests": 2
|
|
2759
|
-
* },
|
|
2760
|
-
* "batchItems": [
|
|
2761
|
-
* {
|
|
2762
|
-
* "statusCode": 200,
|
|
2763
|
-
* "response": {
|
|
2764
|
-
* "routes": [
|
|
2765
|
-
* {
|
|
2766
|
-
* "summary": {
|
|
2767
|
-
* "lengthInMeters": 1758,
|
|
2768
|
-
* "travelTimeInSeconds": 387,
|
|
2769
|
-
* "trafficDelayInSeconds": 0,
|
|
2770
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
2771
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
2772
|
-
* },
|
|
2773
|
-
* "legs": [
|
|
2774
|
-
* {
|
|
2775
|
-
* "summary": {
|
|
2776
|
-
* "lengthInMeters": 1758,
|
|
2777
|
-
* "travelTimeInSeconds": 387,
|
|
2778
|
-
* "trafficDelayInSeconds": 0,
|
|
2779
|
-
* "departureTime": "2018-07-17T00:49:56+00:00",
|
|
2780
|
-
* "arrivalTime": "2018-07-17T00:56:22+00:00"
|
|
2781
|
-
* },
|
|
2782
|
-
* "points": [
|
|
2783
|
-
* {
|
|
2784
|
-
* "latitude": 47.62094,
|
|
2785
|
-
* "longitude": -122.34892
|
|
2786
|
-
* },
|
|
2787
|
-
* {
|
|
2788
|
-
* "latitude": 47.62094,
|
|
2789
|
-
* "longitude": -122.3485
|
|
2790
|
-
* },
|
|
2791
|
-
* {
|
|
2792
|
-
* "latitude": 47.62095,
|
|
2793
|
-
* "longitude": -122.3476
|
|
2794
|
-
* }
|
|
2795
|
-
* ]
|
|
2796
|
-
* }
|
|
2797
|
-
* ],
|
|
2798
|
-
* "sections": [
|
|
2799
|
-
* {
|
|
2800
|
-
* "startPointIndex": 0,
|
|
2801
|
-
* "endPointIndex": 40,
|
|
2802
|
-
* "sectionType": "TRAVEL_MODE",
|
|
2803
|
-
* "travelMode": "bicycle"
|
|
2804
|
-
* }
|
|
2805
|
-
* ]
|
|
2806
|
-
* }
|
|
2807
|
-
* ]
|
|
2808
|
-
* }
|
|
2809
|
-
* },
|
|
2810
|
-
* {
|
|
2811
|
-
* "statusCode": 400,
|
|
2812
|
-
* "response":
|
|
2813
|
-
* {
|
|
2814
|
-
* "error":
|
|
2815
|
-
* {
|
|
2816
|
-
* "code": "400 BadRequest",
|
|
2817
|
-
* "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
|
|
2818
|
-
* }
|
|
2819
|
-
* }
|
|
2820
|
-
* }
|
|
2821
|
-
* ]
|
|
2822
|
-
* }
|
|
2823
|
-
* ```
|
|
2824
|
-
*/
|
|
2825
|
-
export declare interface RouteRequestRouteDirectionsBatchSyncDefaultResponse extends HttpResponse {
|
|
2826
|
-
status: string;
|
|
2827
|
-
body: ErrorResponseOutput;
|
|
2828
|
-
}
|
|
2829
|
-
|
|
2830
|
-
export declare interface RouteRequestRouteDirectionsBatchSyncMediaTypesParam {
|
|
2831
|
-
/** Request content type */
|
|
2832
|
-
contentType?: "application/json";
|
|
2833
|
-
}
|
|
2834
|
-
|
|
2835
|
-
export declare type RouteRequestRouteDirectionsBatchSyncParameters = RouteRequestRouteDirectionsBatchSyncMediaTypesParam & RouteRequestRouteDirectionsBatchSyncBodyParam & RequestParameters;
|
|
2836
|
-
|
|
2837
|
-
/**
|
|
2838
|
-
*
|
|
2839
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
2840
|
-
*
|
|
2841
|
-
* The Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. 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.
|
|
2842
|
-
*
|
|
2843
|
-
*
|
|
2844
|
-
* 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.
|
|
2845
|
-
*
|
|
2846
|
-
*
|
|
2847
|
-
* 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).
|
|
2848
|
-
*
|
|
2849
|
-
*
|
|
2850
|
-
*
|
|
2851
|
-
* ### Submit Synchronous Route Matrix Request
|
|
2852
|
-
* 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).
|
|
2853
|
-
*
|
|
2854
|
-
* ```
|
|
2855
|
-
* POST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
|
|
2856
|
-
* ```
|
|
2857
|
-
*
|
|
2858
|
-
* ### Submit Asynchronous Route Matrix Request
|
|
2859
|
-
* 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.
|
|
2860
|
-
*
|
|
2861
|
-
*
|
|
2862
|
-
* 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).
|
|
2863
|
-
*
|
|
2864
|
-
*
|
|
2865
|
-
* The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.
|
|
2866
|
-
*
|
|
2867
|
-
*
|
|
2868
|
-
*
|
|
2869
|
-
*
|
|
2870
|
-
* ```
|
|
2871
|
-
* POST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
|
|
2872
|
-
* ```
|
|
2873
|
-
*
|
|
2874
|
-
* Here's a typical sequence of asynchronous operations:
|
|
2875
|
-
* 1. Client sends a Route Matrix POST request to Azure Maps
|
|
2876
|
-
*
|
|
2877
|
-
* 2. The server will respond with one of the following:
|
|
2878
|
-
*
|
|
2879
|
-
* > HTTP `202 Accepted` - Route Matrix request has been accepted.
|
|
2880
|
-
*
|
|
2881
|
-
* > 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.
|
|
2882
|
-
*
|
|
2883
|
-
*
|
|
2884
|
-
* 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:
|
|
2885
|
-
*
|
|
2886
|
-
* ```
|
|
2887
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
2888
|
-
* ```
|
|
2889
|
-
*
|
|
2890
|
-
*
|
|
2891
|
-
* 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
|
|
2892
|
-
*
|
|
2893
|
-
* ### Download Sync Results
|
|
2894
|
-
* 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.
|
|
2895
|
-
*
|
|
2896
|
-
* ### Download Async Results
|
|
2897
|
-
* 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:
|
|
2898
|
-
* ```
|
|
2899
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
2900
|
-
* ```
|
|
2901
|
-
*
|
|
2902
|
-
* The URL provided by the location header will return the following responses when a `GET` request is issued.
|
|
2903
|
-
*
|
|
2904
|
-
* > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
|
|
2905
|
-
*
|
|
2906
|
-
* > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
|
|
2907
|
-
*/
|
|
2908
|
-
export declare interface RouteRequestRouteMatrix200Response extends HttpResponse {
|
|
2909
|
-
status: "200";
|
|
2910
|
-
body: RouteMatrixResultOutput;
|
|
2911
|
-
}
|
|
2912
|
-
|
|
2913
|
-
export declare interface RouteRequestRouteMatrix202Headers {
|
|
2914
|
-
/** New URL to check for the results of the long running process. */
|
|
2915
|
-
location?: string;
|
|
2916
|
-
}
|
|
2917
|
-
|
|
2918
|
-
/**
|
|
2919
|
-
*
|
|
2920
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
2921
|
-
*
|
|
2922
|
-
* The Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. 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.
|
|
2923
|
-
*
|
|
2924
|
-
*
|
|
2925
|
-
* 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.
|
|
2926
|
-
*
|
|
2927
|
-
*
|
|
2928
|
-
* 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).
|
|
2929
|
-
*
|
|
2930
|
-
*
|
|
2931
|
-
*
|
|
2932
|
-
* ### Submit Synchronous Route Matrix Request
|
|
2933
|
-
* 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).
|
|
2934
|
-
*
|
|
2935
|
-
* ```
|
|
2936
|
-
* POST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
|
|
2937
|
-
* ```
|
|
2938
|
-
*
|
|
2939
|
-
* ### Submit Asynchronous Route Matrix Request
|
|
2940
|
-
* 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.
|
|
2941
|
-
*
|
|
2942
|
-
*
|
|
2943
|
-
* 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).
|
|
2944
|
-
*
|
|
2945
|
-
*
|
|
2946
|
-
* The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.
|
|
2947
|
-
*
|
|
2948
|
-
*
|
|
2949
|
-
*
|
|
2950
|
-
*
|
|
2951
|
-
* ```
|
|
2952
|
-
* POST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
|
|
2953
|
-
* ```
|
|
2954
|
-
*
|
|
2955
|
-
* Here's a typical sequence of asynchronous operations:
|
|
2956
|
-
* 1. Client sends a Route Matrix POST request to Azure Maps
|
|
2957
|
-
*
|
|
2958
|
-
* 2. The server will respond with one of the following:
|
|
2959
|
-
*
|
|
2960
|
-
* > HTTP `202 Accepted` - Route Matrix request has been accepted.
|
|
2961
|
-
*
|
|
2962
|
-
* > 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.
|
|
2963
|
-
*
|
|
2964
|
-
*
|
|
2965
|
-
* 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:
|
|
2966
|
-
*
|
|
2967
|
-
* ```
|
|
2968
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
2969
|
-
* ```
|
|
2970
|
-
*
|
|
2971
|
-
*
|
|
2972
|
-
* 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
|
|
2973
|
-
*
|
|
2974
|
-
* ### Download Sync Results
|
|
2975
|
-
* 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.
|
|
2976
|
-
*
|
|
2977
|
-
* ### Download Async Results
|
|
2978
|
-
* 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:
|
|
2979
|
-
* ```
|
|
2980
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
2981
|
-
* ```
|
|
2982
|
-
*
|
|
2983
|
-
* The URL provided by the location header will return the following responses when a `GET` request is issued.
|
|
2984
|
-
*
|
|
2985
|
-
* > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
|
|
2986
|
-
*
|
|
2987
|
-
* > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
|
|
2988
|
-
*/
|
|
2989
|
-
export declare interface RouteRequestRouteMatrix202Response extends HttpResponse {
|
|
2990
|
-
status: "202";
|
|
2991
|
-
body: Record<string, unknown>;
|
|
2992
|
-
headers: RawHttpHeaders & RouteRequestRouteMatrix202Headers;
|
|
2993
|
-
}
|
|
2994
|
-
|
|
2995
|
-
export declare interface RouteRequestRouteMatrixBodyParam {
|
|
2996
|
-
/** The matrix of origin and destination coordinates to compute the route distance, travel time and other summary for each cell of the matrix based on the input parameters. The minimum and the maximum cell count supported are 1 and **700** for async and **100** for sync respectively. For example, it can be 35 origins and 20 destinations or 25 origins and 25 destinations for async API. */
|
|
2997
|
-
body: RouteMatrixQuery;
|
|
2998
|
-
}
|
|
2999
|
-
|
|
3000
|
-
export declare interface RouteRequestRouteMatrixMediaTypesParam {
|
|
3001
|
-
/** Request content type */
|
|
3002
|
-
contentType?: "application/json";
|
|
3003
|
-
}
|
|
3004
|
-
|
|
3005
|
-
export declare type RouteRequestRouteMatrixParameters = RouteRequestRouteMatrixQueryParam & RouteRequestRouteMatrixMediaTypesParam & RouteRequestRouteMatrixBodyParam & RequestParameters;
|
|
3006
|
-
|
|
3007
|
-
export declare interface RouteRequestRouteMatrixQueryParam {
|
|
3008
|
-
queryParameters?: RouteRequestRouteMatrixQueryParamProperties;
|
|
3009
|
-
}
|
|
3010
|
-
|
|
3011
|
-
export declare interface RouteRequestRouteMatrixQueryParamProperties {
|
|
3012
|
-
/** Boolean to indicate whether to execute the request synchronously. If set to true, user will get a 200 response if the request is finished under 120 seconds. Otherwise, user will get a 202 response right away. Please refer to the API description for more details on 202 response. **Supported only for async request**. */
|
|
3013
|
-
waitForResults?: boolean;
|
|
3014
|
-
/** Specifies whether to return additional travel times using different types of traffic information (none, historic, live) as well as the default best-estimate travel time. */
|
|
3015
|
-
computeTravelTimeFor?: "none" | "all";
|
|
3016
|
-
/** Specifies which of the section types is reported in the route response. <br><br>For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Multiple types can be used. The default sectionType refers to the travelMode input. By default travelMode is set to car */
|
|
3017
|
-
sectionType?: "carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban";
|
|
3018
|
-
/** The date and time of arrival at the destination point. It must be specified as a dateTime. When a time zone offset is not specified it will be assumed to be that of the destination point. The arriveAt value must be in the future. The arriveAt parameter cannot be used in conjunction with departAt, minDeviationDistance or minDeviationTime. */
|
|
3019
|
-
arriveAt?: Date | string;
|
|
3020
|
-
/** The date and time of departure from the origin point. Departure times apart from now must be specified as a dateTime. When a time zone offset is not specified, it will be assumed to be that of the origin point. The departAt value must be in the future in the date-time format (1996-12-19T16:39:57-08:00). */
|
|
3021
|
-
departAt?: Date | string;
|
|
3022
|
-
/** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */
|
|
3023
|
-
vehicleAxleWeight?: number;
|
|
3024
|
-
/** Length of the vehicle in meters. A value of 0 means that length restrictions are not considered. */
|
|
3025
|
-
vehicleLength?: number;
|
|
3026
|
-
/** Height of the vehicle in meters. A value of 0 means that height restrictions are not considered. */
|
|
3027
|
-
vehicleHeight?: number;
|
|
3028
|
-
/** Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. */
|
|
3029
|
-
vehicleWidth?: number;
|
|
3030
|
-
/**
|
|
3031
|
-
* Maximum speed of the vehicle in km/hour. The max speed in the vehicle profile is used to check whether a vehicle is allowed on motorways.
|
|
3032
|
-
*
|
|
3033
|
-
* * A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.
|
|
3034
|
-
*
|
|
3035
|
-
* * A non-zero value may be overridden during route planning. For example, the current traffic flow is 60 km/hour. If the vehicle maximum speed is set to 50 km/hour, the routing engine will consider 60 km/hour as this is the current situation. If the maximum speed of the vehicle is provided as 80 km/hour but the current traffic flow is 60 km/hour, then routing engine will again use 60 km/hour.
|
|
3036
|
-
*/
|
|
3037
|
-
vehicleMaxSpeed?: number;
|
|
3038
|
-
/** Weight of the vehicle in kilograms. */
|
|
3039
|
-
vehicleWeight?: number;
|
|
3040
|
-
/** Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
3041
|
-
windingness?: "low" | "normal" | "high";
|
|
3042
|
-
/** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
3043
|
-
hilliness?: "low" | "normal" | "high";
|
|
3044
|
-
/** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be "other". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. In **calculateReachableRange** requests, the values bicycle and pedestrian must not be used. */
|
|
3045
|
-
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
3046
|
-
/** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In calculateReachableRange requests, the value alreadyUsedRoads must not be used. */
|
|
3047
|
-
avoid?: Array<"tollRoads" | "motorways" | "ferries" | "unpavedRoads" | "carpools" | "alreadyUsedRoads" | "borderCrossings">;
|
|
3048
|
-
/**
|
|
3049
|
-
* Possible values:
|
|
3050
|
-
* * true - Do consider all available traffic information during routing
|
|
3051
|
-
* * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored
|
|
3052
|
-
* during routing, the effect of historic traffic on effective road speeds is still incorporated.
|
|
3053
|
-
*/
|
|
3054
|
-
traffic?: boolean;
|
|
3055
|
-
/** The type of route requested. */
|
|
3056
|
-
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
3057
|
-
/** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */
|
|
3058
|
-
vehicleLoadType?: "USHazmatClass1" | "USHazmatClass2" | "USHazmatClass3" | "USHazmatClass4" | "USHazmatClass5" | "USHazmatClass6" | "USHazmatClass7" | "USHazmatClass8" | "USHazmatClass9" | "otherHazmatExplosive" | "otherHazmatGeneral" | "otherHazmatHarmfulToWater";
|
|
3059
|
-
}
|
|
3060
|
-
|
|
3061
|
-
/**
|
|
3062
|
-
*
|
|
3063
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
3064
|
-
*
|
|
3065
|
-
* The Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. 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.
|
|
3066
|
-
*
|
|
3067
|
-
*
|
|
3068
|
-
* 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.
|
|
3069
|
-
*
|
|
3070
|
-
*
|
|
3071
|
-
* 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).
|
|
3072
|
-
*
|
|
3073
|
-
*
|
|
3074
|
-
*
|
|
3075
|
-
* ### Submit Synchronous Route Matrix Request
|
|
3076
|
-
* 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).
|
|
3077
|
-
*
|
|
3078
|
-
* ```
|
|
3079
|
-
* POST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
|
|
3080
|
-
* ```
|
|
3081
|
-
*
|
|
3082
|
-
* ### Submit Asynchronous Route Matrix Request
|
|
3083
|
-
* 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.
|
|
3084
|
-
*
|
|
3085
|
-
*
|
|
3086
|
-
* 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).
|
|
3087
|
-
*
|
|
3088
|
-
*
|
|
3089
|
-
* The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.
|
|
3090
|
-
*
|
|
3091
|
-
*
|
|
3092
|
-
*
|
|
3093
|
-
*
|
|
3094
|
-
* ```
|
|
3095
|
-
* POST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
|
|
3096
|
-
* ```
|
|
3097
|
-
*
|
|
3098
|
-
* Here's a typical sequence of asynchronous operations:
|
|
3099
|
-
* 1. Client sends a Route Matrix POST request to Azure Maps
|
|
3100
|
-
*
|
|
3101
|
-
* 2. The server will respond with one of the following:
|
|
3102
|
-
*
|
|
3103
|
-
* > HTTP `202 Accepted` - Route Matrix request has been accepted.
|
|
3104
|
-
*
|
|
3105
|
-
* > 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.
|
|
3106
|
-
*
|
|
3107
|
-
*
|
|
3108
|
-
* 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:
|
|
3109
|
-
*
|
|
3110
|
-
* ```
|
|
3111
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
3112
|
-
* ```
|
|
3113
|
-
*
|
|
3114
|
-
*
|
|
3115
|
-
* 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
|
|
3116
|
-
*
|
|
3117
|
-
* ### Download Sync Results
|
|
3118
|
-
* 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.
|
|
3119
|
-
*
|
|
3120
|
-
* ### Download Async Results
|
|
3121
|
-
* 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:
|
|
3122
|
-
* ```
|
|
3123
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
3124
|
-
* ```
|
|
3125
|
-
*
|
|
3126
|
-
* The URL provided by the location header will return the following responses when a `GET` request is issued.
|
|
3127
|
-
*
|
|
3128
|
-
* > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
|
|
3129
|
-
*
|
|
3130
|
-
* > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
|
|
3131
|
-
*/
|
|
3132
|
-
export declare interface RouteRequestRouteMatrixSync200Response extends HttpResponse {
|
|
3133
|
-
status: "200";
|
|
3134
|
-
body: RouteMatrixResultOutput;
|
|
3135
|
-
}
|
|
3136
|
-
|
|
3137
|
-
/**
|
|
3138
|
-
*
|
|
3139
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
3140
|
-
*
|
|
3141
|
-
* The Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. 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.
|
|
3142
|
-
*
|
|
3143
|
-
*
|
|
3144
|
-
* 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.
|
|
3145
|
-
*
|
|
3146
|
-
*
|
|
3147
|
-
* 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).
|
|
3148
|
-
*
|
|
3149
|
-
*
|
|
3150
|
-
*
|
|
3151
|
-
* ### Submit Synchronous Route Matrix Request
|
|
3152
|
-
* 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).
|
|
3153
|
-
*
|
|
3154
|
-
* ```
|
|
3155
|
-
* POST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
|
|
3156
|
-
* ```
|
|
3157
|
-
*
|
|
3158
|
-
* ### Submit Asynchronous Route Matrix Request
|
|
3159
|
-
* 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.
|
|
3160
|
-
*
|
|
3161
|
-
*
|
|
3162
|
-
* 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).
|
|
3163
|
-
*
|
|
3164
|
-
*
|
|
3165
|
-
* The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.
|
|
3166
|
-
*
|
|
3167
|
-
*
|
|
3168
|
-
*
|
|
3169
|
-
*
|
|
3170
|
-
* ```
|
|
3171
|
-
* POST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
|
|
3172
|
-
* ```
|
|
3173
|
-
*
|
|
3174
|
-
* Here's a typical sequence of asynchronous operations:
|
|
3175
|
-
* 1. Client sends a Route Matrix POST request to Azure Maps
|
|
3176
|
-
*
|
|
3177
|
-
* 2. The server will respond with one of the following:
|
|
3178
|
-
*
|
|
3179
|
-
* > HTTP `202 Accepted` - Route Matrix request has been accepted.
|
|
3180
|
-
*
|
|
3181
|
-
* > 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.
|
|
3182
|
-
*
|
|
3183
|
-
*
|
|
3184
|
-
* 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:
|
|
3185
|
-
*
|
|
3186
|
-
* ```
|
|
3187
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
3188
|
-
* ```
|
|
3189
|
-
*
|
|
3190
|
-
*
|
|
3191
|
-
* 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
|
|
3192
|
-
*
|
|
3193
|
-
* ### Download Sync Results
|
|
3194
|
-
* 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.
|
|
3195
|
-
*
|
|
3196
|
-
* ### Download Async Results
|
|
3197
|
-
* 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:
|
|
3198
|
-
* ```
|
|
3199
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
3200
|
-
* ```
|
|
3201
|
-
*
|
|
3202
|
-
* The URL provided by the location header will return the following responses when a `GET` request is issued.
|
|
3203
|
-
*
|
|
3204
|
-
* > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
|
|
3205
|
-
*
|
|
3206
|
-
* > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
|
|
3207
|
-
*/
|
|
3208
|
-
export declare interface RouteRequestRouteMatrixSync408Response extends HttpResponse {
|
|
3209
|
-
status: "408";
|
|
3210
|
-
body: ErrorResponseOutput;
|
|
3211
|
-
}
|
|
3212
|
-
|
|
3213
|
-
export declare interface RouteRequestRouteMatrixSyncBodyParam {
|
|
3214
|
-
/** The matrix of origin and destination coordinates to compute the route distance, travel time and other summary for each cell of the matrix based on the input parameters. The minimum and the maximum cell count supported are 1 and **700** for async and **100** for sync respectively. For example, it can be 35 origins and 20 destinations or 25 origins and 25 destinations for async API. */
|
|
3215
|
-
body: RouteMatrixQuery;
|
|
3216
|
-
}
|
|
3217
|
-
|
|
3218
|
-
/**
|
|
3219
|
-
*
|
|
3220
|
-
* **Applies to**: see pricing [tiers](https://aka.ms/AzureMapsPricingTier).
|
|
3221
|
-
*
|
|
3222
|
-
* The Matrix Routing service allows calculation of a matrix of route summaries for a set of routes defined by origin and destination locations by using an asynchronous (async) or synchronous (sync) POST request. 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.
|
|
3223
|
-
*
|
|
3224
|
-
*
|
|
3225
|
-
* 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.
|
|
3226
|
-
*
|
|
3227
|
-
*
|
|
3228
|
-
* 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).
|
|
3229
|
-
*
|
|
3230
|
-
*
|
|
3231
|
-
*
|
|
3232
|
-
* ### Submit Synchronous Route Matrix Request
|
|
3233
|
-
* 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).
|
|
3234
|
-
*
|
|
3235
|
-
* ```
|
|
3236
|
-
* POST https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key}
|
|
3237
|
-
* ```
|
|
3238
|
-
*
|
|
3239
|
-
* ### Submit Asynchronous Route Matrix Request
|
|
3240
|
-
* 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.
|
|
3241
|
-
*
|
|
3242
|
-
*
|
|
3243
|
-
* 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).
|
|
3244
|
-
*
|
|
3245
|
-
*
|
|
3246
|
-
* The asynchronous responses are stored for **14** days. The redirect URL returns a 404 response if used after the expiration period.
|
|
3247
|
-
*
|
|
3248
|
-
*
|
|
3249
|
-
*
|
|
3250
|
-
*
|
|
3251
|
-
* ```
|
|
3252
|
-
* POST https://atlas.microsoft.com/route/matrix/json?api-version=1.0&subscription-key={subscription-key}
|
|
3253
|
-
* ```
|
|
3254
|
-
*
|
|
3255
|
-
* Here's a typical sequence of asynchronous operations:
|
|
3256
|
-
* 1. Client sends a Route Matrix POST request to Azure Maps
|
|
3257
|
-
*
|
|
3258
|
-
* 2. The server will respond with one of the following:
|
|
3259
|
-
*
|
|
3260
|
-
* > HTTP `202 Accepted` - Route Matrix request has been accepted.
|
|
3261
|
-
*
|
|
3262
|
-
* > 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.
|
|
3263
|
-
*
|
|
3264
|
-
*
|
|
3265
|
-
* 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:
|
|
3266
|
-
*
|
|
3267
|
-
* ```
|
|
3268
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
3269
|
-
* ```
|
|
3270
|
-
*
|
|
3271
|
-
*
|
|
3272
|
-
* 4. Client issues a GET request on the download URL obtained in Step 3 to download the results
|
|
3273
|
-
*
|
|
3274
|
-
* ### Download Sync Results
|
|
3275
|
-
* 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.
|
|
3276
|
-
*
|
|
3277
|
-
* ### Download Async Results
|
|
3278
|
-
* 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:
|
|
3279
|
-
* ```
|
|
3280
|
-
* GET https://atlas.microsoft.com/route/matrix/{matrixId}?api-version=1.0?subscription-key={subscription-key}
|
|
3281
|
-
* ```
|
|
3282
|
-
*
|
|
3283
|
-
* The URL provided by the location header will return the following responses when a `GET` request is issued.
|
|
3284
|
-
*
|
|
3285
|
-
* > HTTP `202 Accepted` - Matrix request was accepted but is still being processed. Please try again in some time.
|
|
3286
|
-
*
|
|
3287
|
-
* > HTTP `200 OK` - Matrix request successfully processed. The response body contains all of the results.
|
|
3288
|
-
*/
|
|
3289
|
-
export declare interface RouteRequestRouteMatrixSyncDefaultResponse extends HttpResponse {
|
|
3290
|
-
status: string;
|
|
3291
|
-
body: ErrorResponseOutput;
|
|
3292
|
-
}
|
|
3293
|
-
|
|
3294
|
-
export declare interface RouteRequestRouteMatrixSyncMediaTypesParam {
|
|
3295
|
-
/** Request content type */
|
|
3296
|
-
contentType?: "application/json";
|
|
3297
|
-
}
|
|
3298
|
-
|
|
3299
|
-
export declare type RouteRequestRouteMatrixSyncParameters = RouteRequestRouteMatrixSyncQueryParam & RouteRequestRouteMatrixSyncMediaTypesParam & RouteRequestRouteMatrixSyncBodyParam & RequestParameters;
|
|
3300
|
-
|
|
3301
|
-
export declare interface RouteRequestRouteMatrixSyncQueryParam {
|
|
3302
|
-
queryParameters?: RouteRequestRouteMatrixSyncQueryParamProperties;
|
|
3303
|
-
}
|
|
3304
|
-
|
|
3305
|
-
export declare interface RouteRequestRouteMatrixSyncQueryParamProperties {
|
|
3306
|
-
/** Boolean to indicate whether to execute the request synchronously. If set to true, user will get a 200 response if the request is finished under 120 seconds. Otherwise, user will get a 202 response right away. Please refer to the API description for more details on 202 response. **Supported only for async request**. */
|
|
3307
|
-
waitForResults?: boolean;
|
|
3308
|
-
/** Specifies whether to return additional travel times using different types of traffic information (none, historic, live) as well as the default best-estimate travel time. */
|
|
3309
|
-
computeTravelTimeFor?: "none" | "all";
|
|
3310
|
-
/** Specifies which of the section types is reported in the route response. <br><br>For example if sectionType = pedestrian the sections which are suited for pedestrians only are returned. Multiple types can be used. The default sectionType refers to the travelMode input. By default travelMode is set to car */
|
|
3311
|
-
sectionType?: "carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban";
|
|
3312
|
-
/** The date and time of arrival at the destination point. It must be specified as a dateTime. When a time zone offset is not specified it will be assumed to be that of the destination point. The arriveAt value must be in the future. The arriveAt parameter cannot be used in conjunction with departAt, minDeviationDistance or minDeviationTime. */
|
|
3313
|
-
arriveAt?: Date | string;
|
|
3314
|
-
/** The date and time of departure from the origin point. Departure times apart from now must be specified as a dateTime. When a time zone offset is not specified, it will be assumed to be that of the origin point. The departAt value must be in the future in the date-time format (1996-12-19T16:39:57-08:00). */
|
|
3315
|
-
departAt?: Date | string;
|
|
3316
|
-
/** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */
|
|
3317
|
-
vehicleAxleWeight?: number;
|
|
3318
|
-
/** Length of the vehicle in meters. A value of 0 means that length restrictions are not considered. */
|
|
3319
|
-
vehicleLength?: number;
|
|
3320
|
-
/** Height of the vehicle in meters. A value of 0 means that height restrictions are not considered. */
|
|
3321
|
-
vehicleHeight?: number;
|
|
3322
|
-
/** Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. */
|
|
3323
|
-
vehicleWidth?: number;
|
|
3324
|
-
/**
|
|
3325
|
-
* Maximum speed of the vehicle in km/hour. The max speed in the vehicle profile is used to check whether a vehicle is allowed on motorways.
|
|
3326
|
-
*
|
|
3327
|
-
* * A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.
|
|
3328
|
-
*
|
|
3329
|
-
* * A non-zero value may be overridden during route planning. For example, the current traffic flow is 60 km/hour. If the vehicle maximum speed is set to 50 km/hour, the routing engine will consider 60 km/hour as this is the current situation. If the maximum speed of the vehicle is provided as 80 km/hour but the current traffic flow is 60 km/hour, then routing engine will again use 60 km/hour.
|
|
3330
|
-
*/
|
|
3331
|
-
vehicleMaxSpeed?: number;
|
|
3332
|
-
/** Weight of the vehicle in kilograms. */
|
|
3333
|
-
vehicleWeight?: number;
|
|
3334
|
-
/** Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
3335
|
-
windingness?: "low" | "normal" | "high";
|
|
3336
|
-
/** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
3337
|
-
hilliness?: "low" | "normal" | "high";
|
|
3338
|
-
/** The mode of travel for the requested route. If not defined, default is 'car'. Note that the requested travelMode may not be available for the entire route. Where the requested travelMode is not available for a particular section, the travelMode element of the response for that section will be "other". Note that travel modes bus, motorcycle, taxi and van are BETA functionality. Full restriction data is not available in all areas. In **calculateReachableRange** requests, the values bicycle and pedestrian must not be used. */
|
|
3339
|
-
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
3340
|
-
/** Specifies something that the route calculation should try to avoid when determining the route. Can be specified multiple times in one request, for example, '&avoid=motorways&avoid=tollRoads&avoid=ferries'. In calculateReachableRange requests, the value alreadyUsedRoads must not be used. */
|
|
3341
|
-
avoid?: Array<"tollRoads" | "motorways" | "ferries" | "unpavedRoads" | "carpools" | "alreadyUsedRoads" | "borderCrossings">;
|
|
3342
|
-
/**
|
|
3343
|
-
* Possible values:
|
|
3344
|
-
* * true - Do consider all available traffic information during routing
|
|
3345
|
-
* * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored
|
|
3346
|
-
* during routing, the effect of historic traffic on effective road speeds is still incorporated.
|
|
3347
|
-
*/
|
|
3348
|
-
traffic?: boolean;
|
|
3349
|
-
/** The type of route requested. */
|
|
3350
|
-
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
3351
|
-
/** Types of cargo that may be classified as hazardous materials and restricted from some roads. Available vehicleLoadType values are US Hazmat classes 1 through 9, plus generic classifications for use in other countries. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */
|
|
3352
|
-
vehicleLoadType?: "USHazmatClass1" | "USHazmatClass2" | "USHazmatClass3" | "USHazmatClass4" | "USHazmatClass5" | "USHazmatClass6" | "USHazmatClass7" | "USHazmatClass8" | "USHazmatClass9" | "otherHazmatExplosive" | "otherHazmatGeneral" | "otherHazmatHarmfulToWater";
|
|
3353
|
-
}
|
|
3354
|
-
|
|
3355
|
-
export declare interface Routes {
|
|
3356
|
-
/** Resource for '/route/matrix/\{format\}' has methods for the following verbs: post, get */
|
|
3357
|
-
(path: "/route/matrix/{format}", format: "json"): RequestRouteMatrix;
|
|
3358
|
-
/** Resource for '/route/matrix/sync/\{format\}' has methods for the following verbs: post */
|
|
3359
|
-
(path: "/route/matrix/sync/{format}", format: "json"): RequestRouteMatrixSync;
|
|
3360
|
-
/** Resource for '/route/directions/\{format\}' has methods for the following verbs: get, post */
|
|
3361
|
-
(path: "/route/directions/{format}", format: "json" | "xml"): GetRouteDirections;
|
|
3362
|
-
/** Resource for '/route/range/\{format\}' has methods for the following verbs: get */
|
|
3363
|
-
(path: "/route/range/{format}", format: "json" | "xml"): GetRouteRange;
|
|
3364
|
-
/** Resource for '/route/directions/batch/\{format\}' has methods for the following verbs: post, get */
|
|
3365
|
-
(path: "/route/directions/batch/{format}", format: "json"): RequestRouteDirectionsBatch;
|
|
3366
|
-
/** Resource for '/route/directions/batch/sync/\{format\}' has methods for the following verbs: post */
|
|
3367
|
-
(path: "/route/directions/batch/sync/{format}", format: "json"): RequestRouteDirectionsBatchSync;
|
|
3368
|
-
}
|
|
3369
|
-
|
|
3370
|
-
/** Route sections contain additional information about parts of a route. Each section contains at least the elements `startPointIndex`, `endPointIndex`, and `sectionType`. */
|
|
3371
|
-
export declare interface RouteSectionOutput {
|
|
3372
|
-
/** Index of the first point (offset 0) in the route this section applies to. */
|
|
3373
|
-
startPointIndex: number;
|
|
3374
|
-
/** Index of the last point (offset 0) in the route this section applies to. */
|
|
3375
|
-
endPointIndex: number;
|
|
3376
|
-
/** Section types of the reported route response */
|
|
3377
|
-
sectionType: "CAR_TRAIN" | "COUNTRY" | "FERRY" | "MOTORWAY" | "PEDESTRIAN" | "TOLL_ROAD" | "TOLL_VIGNETTE" | "TRAFFIC" | "TRAVEL_MODE" | "TUNNEL" | "CARPOOL" | "URBAN";
|
|
3378
|
-
/** Travel mode for the calculated route. The value will be set to `other` if the requested mode of transport is not possible in this section */
|
|
3379
|
-
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian" | "other";
|
|
3380
|
-
/** Type of the incident. Can currently be JAM, ROAD_WORK, ROAD_CLOSURE, or OTHER. See "tec" for detailed information. */
|
|
3381
|
-
simpleCategory?: "JAM" | "ROAD_WORK" | "ROAD_CLOSURE" | "OTHER";
|
|
3382
|
-
/** Effective speed of the incident in km/h, averaged over its entire length. */
|
|
3383
|
-
effectiveSpeedInKmh?: number;
|
|
3384
|
-
/** Delay in seconds caused by the incident. */
|
|
3385
|
-
delayInSeconds?: number;
|
|
3386
|
-
/** The magnitude of delay caused by the incident. These values correspond to the values of the response field ty of the [Get Traffic Incident Detail API](https://docs.microsoft.com/rest/api/maps/traffic/gettrafficincidentdetail). */
|
|
3387
|
-
magnitudeOfDelay?: "0" | "1" | "2" | "3" | "4";
|
|
3388
|
-
/** Details of the traffic event, using definitions in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard. Can contain effectCode and causes elements. */
|
|
3389
|
-
tec?: RouteSectionTecOutput;
|
|
3390
|
-
}
|
|
3391
|
-
|
|
3392
|
-
/** The cause of the traffic event. Can contain mainCauseCode and subCauseCode elements. Can be used to define iconography and descriptions. */
|
|
3393
|
-
export declare interface RouteSectionTecCauseOutput {
|
|
3394
|
-
/** The main cause of the traffic event. Contains a value in the tec002:CauseCode table, as defined in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard. */
|
|
3395
|
-
mainCauseCode?: number;
|
|
3396
|
-
/** The subcause of the traffic event. Contains a value in the sub cause table defined by the mainCauseCode, as defined in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard. */
|
|
3397
|
-
subCauseCode?: number;
|
|
3398
|
-
}
|
|
3399
|
-
|
|
3400
|
-
/** Details of the traffic event, using definitions in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard. Can contain effectCode and causes elements. */
|
|
3401
|
-
export declare interface RouteSectionTecOutput {
|
|
3402
|
-
/** The effect on the traffic flow. Contains a value in the tec001:EffectCode table, as defined in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard. Can be used to color-code traffic events according to severity. */
|
|
3403
|
-
effectCode?: number;
|
|
3404
|
-
/** Causes array */
|
|
3405
|
-
causes?: Array<RouteSectionTecCauseOutput>;
|
|
3406
|
-
}
|
|
3407
|
-
|
|
3408
|
-
/** Summary object */
|
|
3409
|
-
export declare interface RouteSummaryOutput {
|
|
3410
|
-
/** Length In Meters property */
|
|
3411
|
-
lengthInMeters: number;
|
|
3412
|
-
/** Estimated travel time in seconds property that includes the delay due to real-time traffic. Note that even when traffic=false travelTimeInSeconds still includes the delay due to traffic. If DepartAt is in the future, travel time is calculated using time-dependent historic traffic data. */
|
|
3413
|
-
travelTimeInSeconds: number;
|
|
3414
|
-
/** Estimated delay in seconds caused by the real-time incident(s) according to traffic information. For routes planned with departure time in the future, delays is always 0. To return additional travel times using different types of traffic information, parameter computeTravelTimeFor=all needs to be added. */
|
|
3415
|
-
trafficDelayInSeconds: number;
|
|
3416
|
-
/** The estimated departure time for the route or leg. */
|
|
3417
|
-
departureTime: string;
|
|
3418
|
-
/** The estimated arrival time for the route or leg. */
|
|
3419
|
-
arrivalTime: string;
|
|
3420
|
-
}
|
|
3421
|
-
|
|
3422
|
-
/**
|
|
3423
|
-
* Transform an array of [Latitude, Longtitute] to a string in the following format:
|
|
3424
|
-
* "Latitude_1,Longtitute_1:Latitude_2,Longtitute_2:..."
|
|
3425
|
-
*
|
|
3426
|
-
* @param coordinates - An array of Latitude/Longtitute pair to transform.
|
|
3427
|
-
* @returns The transformed string.
|
|
3428
|
-
*/
|
|
3429
|
-
export declare function toColonDelimitedLatLonString(coordinates: LatLon[]): string;
|
|
3430
|
-
|
|
3431
|
-
export { }
|