@azure-rest/maps-route 1.0.0-beta.4 → 1.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -0
- package/LICENSE +4 -4
- package/README.md +49 -35
- 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 +78 -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 +44 -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 +108 -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/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 +1 -1
- 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 +81 -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 +47 -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 +111 -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 +78 -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 +44 -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 +108 -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 +78 -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 +44 -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 +108 -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 +84 -70
- package/dist/index.js +0 -340
- package/dist/index.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/types/maps-route-rest.d.ts +0 -3659
- /package/{dist-esm/src → dist/browser}/helpers.js +0 -0
- /package/review/{maps-route.api.md → maps-route-node.api.md} +0 -0
|
@@ -0,0 +1,937 @@
|
|
|
1
|
+
import { RequestParameters } from "@azure-rest/core-client";
|
|
2
|
+
import { RouteMatrixQuery, RouteDirectionParameters, BatchRequest } from "./models.js";
|
|
3
|
+
export interface RouteRequestRouteMatrixBodyParam {
|
|
4
|
+
/** 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. */
|
|
5
|
+
body: RouteMatrixQuery;
|
|
6
|
+
}
|
|
7
|
+
export interface RouteRequestRouteMatrixQueryParamProperties {
|
|
8
|
+
/** 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**. */
|
|
9
|
+
waitForResults?: boolean;
|
|
10
|
+
/** 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. */
|
|
11
|
+
computeTravelTimeFor?: "none" | "all";
|
|
12
|
+
/** 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. Can be specified multiple times in one request, for example, '§ionType=carTrain§ionType=pedestrian§ionType=motorway'. The default sectionType refers to the travelMode input. By default travelMode is set to car */
|
|
13
|
+
sectionType?: Array<"carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban">;
|
|
14
|
+
/**
|
|
15
|
+
* The date and time of arrival at the destination point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified it will be assumed to be that of the destination point.
|
|
16
|
+
*
|
|
17
|
+
* Examples:
|
|
18
|
+
* * 2023-12-19T16:39:57
|
|
19
|
+
* * 2023-12-19T16:39:57-08:00
|
|
20
|
+
*
|
|
21
|
+
* The `arriveAt` parameter cannot be used in conjunction with `departAt`, `minDeviationDistance` or `minDeviationTime`.
|
|
22
|
+
*/
|
|
23
|
+
arriveAt?: Date | string;
|
|
24
|
+
/**
|
|
25
|
+
* The date and time of departure from the origin point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified, it will be assumed to be that of the origin point.
|
|
26
|
+
* * Default value: now
|
|
27
|
+
* * Other value: `dateTime`
|
|
28
|
+
*
|
|
29
|
+
* Examples:
|
|
30
|
+
* * 2023-12-19T16:39:57
|
|
31
|
+
* * 2023-12-19T16:39:57-08:00
|
|
32
|
+
*
|
|
33
|
+
* The `departAt` parameter cannot be used in conjunction with `arriveAt`.
|
|
34
|
+
*/
|
|
35
|
+
departAt?: Date | string;
|
|
36
|
+
/** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */
|
|
37
|
+
vehicleAxleWeight?: number;
|
|
38
|
+
/** Length of the vehicle in meters. A value of 0 means that length restrictions are not considered. */
|
|
39
|
+
vehicleLength?: number;
|
|
40
|
+
/** Height of the vehicle in meters. A value of 0 means that height restrictions are not considered. */
|
|
41
|
+
vehicleHeight?: number;
|
|
42
|
+
/** Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. */
|
|
43
|
+
vehicleWidth?: number;
|
|
44
|
+
/**
|
|
45
|
+
* 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.
|
|
46
|
+
*
|
|
47
|
+
* * A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.
|
|
48
|
+
*
|
|
49
|
+
* * 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.
|
|
50
|
+
*/
|
|
51
|
+
vehicleMaxSpeed?: number;
|
|
52
|
+
/** Weight of the vehicle in kilograms. */
|
|
53
|
+
vehicleWeight?: number;
|
|
54
|
+
/** Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
55
|
+
windingness?: "low" | "normal" | "high";
|
|
56
|
+
/** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
57
|
+
hilliness?: "low" | "normal" | "high";
|
|
58
|
+
/** 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. */
|
|
59
|
+
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
60
|
+
/** 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 Route Range requests, the value alreadyUsedRoads must not be used. */
|
|
61
|
+
avoid?: Array<"tollRoads" | "motorways" | "ferries" | "unpavedRoads" | "carpools" | "alreadyUsedRoads" | "borderCrossings">;
|
|
62
|
+
/**
|
|
63
|
+
* Possible values:
|
|
64
|
+
* * true - Do consider all available traffic information during routing
|
|
65
|
+
* * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored
|
|
66
|
+
* during routing, the effect of historic traffic on effective road speeds is still incorporated.
|
|
67
|
+
*/
|
|
68
|
+
traffic?: boolean;
|
|
69
|
+
/** The type of route requested. */
|
|
70
|
+
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
71
|
+
/** 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/regions. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries/regions. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */
|
|
72
|
+
vehicleLoadType?: "USHazmatClass1" | "USHazmatClass2" | "USHazmatClass3" | "USHazmatClass4" | "USHazmatClass5" | "USHazmatClass6" | "USHazmatClass7" | "USHazmatClass8" | "USHazmatClass9" | "otherHazmatExplosive" | "otherHazmatGeneral" | "otherHazmatHarmfulToWater";
|
|
73
|
+
}
|
|
74
|
+
export interface RouteRequestRouteMatrixQueryParam {
|
|
75
|
+
queryParameters?: RouteRequestRouteMatrixQueryParamProperties;
|
|
76
|
+
}
|
|
77
|
+
export interface RouteRequestRouteMatrixMediaTypesParam {
|
|
78
|
+
/** Request content type */
|
|
79
|
+
contentType?: "application/json";
|
|
80
|
+
}
|
|
81
|
+
export type RouteRequestRouteMatrixParameters = RouteRequestRouteMatrixQueryParam & RouteRequestRouteMatrixMediaTypesParam & RouteRequestRouteMatrixBodyParam & RequestParameters;
|
|
82
|
+
export type RouteGetRouteMatrixParameters = RequestParameters;
|
|
83
|
+
export interface RouteRequestRouteMatrixSyncBodyParam {
|
|
84
|
+
/** 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. */
|
|
85
|
+
body: RouteMatrixQuery;
|
|
86
|
+
}
|
|
87
|
+
export interface RouteRequestRouteMatrixSyncQueryParamProperties {
|
|
88
|
+
/** 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**. */
|
|
89
|
+
waitForResults?: boolean;
|
|
90
|
+
/** 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. */
|
|
91
|
+
computeTravelTimeFor?: "none" | "all";
|
|
92
|
+
/** 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. Can be specified multiple times in one request, for example, '§ionType=carTrain§ionType=pedestrian§ionType=motorway'. The default sectionType refers to the travelMode input. By default travelMode is set to car */
|
|
93
|
+
sectionType?: Array<"carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban">;
|
|
94
|
+
/**
|
|
95
|
+
* The date and time of arrival at the destination point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified it will be assumed to be that of the destination point.
|
|
96
|
+
*
|
|
97
|
+
* Examples:
|
|
98
|
+
* * 2023-12-19T16:39:57
|
|
99
|
+
* * 2023-12-19T16:39:57-08:00
|
|
100
|
+
*
|
|
101
|
+
* The `arriveAt` parameter cannot be used in conjunction with `departAt`, `minDeviationDistance` or `minDeviationTime`.
|
|
102
|
+
*/
|
|
103
|
+
arriveAt?: Date | string;
|
|
104
|
+
/**
|
|
105
|
+
* The date and time of departure from the origin point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified, it will be assumed to be that of the origin point.
|
|
106
|
+
* * Default value: now
|
|
107
|
+
* * Other value: `dateTime`
|
|
108
|
+
*
|
|
109
|
+
* Examples:
|
|
110
|
+
* * 2023-12-19T16:39:57
|
|
111
|
+
* * 2023-12-19T16:39:57-08:00
|
|
112
|
+
*
|
|
113
|
+
* The `departAt` parameter cannot be used in conjunction with `arriveAt`.
|
|
114
|
+
*/
|
|
115
|
+
departAt?: Date | string;
|
|
116
|
+
/** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */
|
|
117
|
+
vehicleAxleWeight?: number;
|
|
118
|
+
/** Length of the vehicle in meters. A value of 0 means that length restrictions are not considered. */
|
|
119
|
+
vehicleLength?: number;
|
|
120
|
+
/** Height of the vehicle in meters. A value of 0 means that height restrictions are not considered. */
|
|
121
|
+
vehicleHeight?: number;
|
|
122
|
+
/** Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. */
|
|
123
|
+
vehicleWidth?: number;
|
|
124
|
+
/**
|
|
125
|
+
* 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.
|
|
126
|
+
*
|
|
127
|
+
* * A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.
|
|
128
|
+
*
|
|
129
|
+
* * 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.
|
|
130
|
+
*/
|
|
131
|
+
vehicleMaxSpeed?: number;
|
|
132
|
+
/** Weight of the vehicle in kilograms. */
|
|
133
|
+
vehicleWeight?: number;
|
|
134
|
+
/** Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
135
|
+
windingness?: "low" | "normal" | "high";
|
|
136
|
+
/** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
137
|
+
hilliness?: "low" | "normal" | "high";
|
|
138
|
+
/** 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. */
|
|
139
|
+
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
140
|
+
/** 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 Route Range requests, the value alreadyUsedRoads must not be used. */
|
|
141
|
+
avoid?: Array<"tollRoads" | "motorways" | "ferries" | "unpavedRoads" | "carpools" | "alreadyUsedRoads" | "borderCrossings">;
|
|
142
|
+
/**
|
|
143
|
+
* Possible values:
|
|
144
|
+
* * true - Do consider all available traffic information during routing
|
|
145
|
+
* * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored
|
|
146
|
+
* during routing, the effect of historic traffic on effective road speeds is still incorporated.
|
|
147
|
+
*/
|
|
148
|
+
traffic?: boolean;
|
|
149
|
+
/** The type of route requested. */
|
|
150
|
+
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
151
|
+
/** 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/regions. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries/regions. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */
|
|
152
|
+
vehicleLoadType?: "USHazmatClass1" | "USHazmatClass2" | "USHazmatClass3" | "USHazmatClass4" | "USHazmatClass5" | "USHazmatClass6" | "USHazmatClass7" | "USHazmatClass8" | "USHazmatClass9" | "otherHazmatExplosive" | "otherHazmatGeneral" | "otherHazmatHarmfulToWater";
|
|
153
|
+
}
|
|
154
|
+
export interface RouteRequestRouteMatrixSyncQueryParam {
|
|
155
|
+
queryParameters?: RouteRequestRouteMatrixSyncQueryParamProperties;
|
|
156
|
+
}
|
|
157
|
+
export interface RouteRequestRouteMatrixSyncMediaTypesParam {
|
|
158
|
+
/** Request content type */
|
|
159
|
+
contentType?: "application/json";
|
|
160
|
+
}
|
|
161
|
+
export type RouteRequestRouteMatrixSyncParameters = RouteRequestRouteMatrixSyncQueryParam & RouteRequestRouteMatrixSyncMediaTypesParam & RouteRequestRouteMatrixSyncBodyParam & RequestParameters;
|
|
162
|
+
export interface RouteGetRouteDirectionsQueryParamProperties {
|
|
163
|
+
/** 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. */
|
|
164
|
+
query: string;
|
|
165
|
+
/** Number of desired alternative routes to be calculated. Default: 0, minimum: 0 and maximum: 5 */
|
|
166
|
+
maxAlternatives?: number;
|
|
167
|
+
/** Controls the optimality, with respect to the given planning criteria, of the calculated alternatives compared to the reference route. */
|
|
168
|
+
alternativeType?: "anyRoute" | "betterRoute";
|
|
169
|
+
/** 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 */
|
|
170
|
+
minDeviationDistance?: number;
|
|
171
|
+
/**
|
|
172
|
+
* The date and time of arrival at the destination point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified it will be assumed to be that of the destination point.
|
|
173
|
+
*
|
|
174
|
+
* Examples:
|
|
175
|
+
* * 2023-12-19T16:39:57
|
|
176
|
+
* * 2023-12-19T16:39:57-08:00
|
|
177
|
+
*
|
|
178
|
+
* The `arriveAt` parameter cannot be used in conjunction with `departAt`, `minDeviationDistance` or `minDeviationTime`.
|
|
179
|
+
*/
|
|
180
|
+
arriveAt?: Date | string;
|
|
181
|
+
/**
|
|
182
|
+
* The date and time of departure from the origin point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified, it will be assumed to be that of the origin point.
|
|
183
|
+
* * Default value: now
|
|
184
|
+
* * Other value: `dateTime`
|
|
185
|
+
*
|
|
186
|
+
* Examples:
|
|
187
|
+
* * 2023-12-19T16:39:57
|
|
188
|
+
* * 2023-12-19T16:39:57-08:00
|
|
189
|
+
*
|
|
190
|
+
* The `departAt` parameter cannot be used in conjunction with `arriveAt`.
|
|
191
|
+
*/
|
|
192
|
+
departAt?: Date | string;
|
|
193
|
+
/**
|
|
194
|
+
* 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:
|
|
195
|
+
* - The origin point of the _calculateRoute_ Request must be on
|
|
196
|
+
* (or very near) the input reference route.
|
|
197
|
+
* - If this is not the case, an error is returned.
|
|
198
|
+
* - However, the origin point does not need to be at the beginning
|
|
199
|
+
* of the input reference route (it can be thought of as the current
|
|
200
|
+
* vehicle position on the reference route).
|
|
201
|
+
* - The reference route, returned as the first route in the _calculateRoute_
|
|
202
|
+
* Response, will start at the origin point specified in the _calculateRoute_
|
|
203
|
+
* Request. The initial part of the input reference route up until the origin
|
|
204
|
+
* point will be excluded from the Response.
|
|
205
|
+
* - The values of _minDeviationDistance_ and _minDeviationTime_ determine
|
|
206
|
+
* how far alternative routes will be guaranteed to follow the reference
|
|
207
|
+
* route from the origin point onwards.
|
|
208
|
+
* - The route must use _departAt_.
|
|
209
|
+
* - The _vehicleHeading_ is ignored.
|
|
210
|
+
*/
|
|
211
|
+
minDeviationTime?: number;
|
|
212
|
+
/** If specified, guidance instructions will be returned. Note that the instructionsType parameter cannot be used in conjunction with routeRepresentation=none. */
|
|
213
|
+
instructionsType?: "coded" | "text" | "tagged";
|
|
214
|
+
/**
|
|
215
|
+
* 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).
|
|
216
|
+
*
|
|
217
|
+
* Default value: en-GB
|
|
218
|
+
*/
|
|
219
|
+
language?: string;
|
|
220
|
+
/** 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_. */
|
|
221
|
+
computeBestOrder?: boolean;
|
|
222
|
+
/** Specifies the representation of the set of routes provided as response. */
|
|
223
|
+
routeRepresentation?: "polyline" | "summaryOnly" | "none";
|
|
224
|
+
/** 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. */
|
|
225
|
+
computeTravelTimeFor?: "none" | "all";
|
|
226
|
+
/** 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 */
|
|
227
|
+
vehicleHeading?: number;
|
|
228
|
+
/** 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. */
|
|
229
|
+
report?: "effectiveSettings";
|
|
230
|
+
/** 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. Can be specified multiple times in one request, for example, '§ionType=carTrain§ionType=pedestrian§ionType=motorway'. The default sectionType refers to the travelMode input. By default travelMode is set to car */
|
|
231
|
+
sectionType?: Array<"carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban">;
|
|
232
|
+
/** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */
|
|
233
|
+
vehicleAxleWeight?: number;
|
|
234
|
+
/** Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. */
|
|
235
|
+
vehicleWidth?: number;
|
|
236
|
+
/** Height of the vehicle in meters. A value of 0 means that height restrictions are not considered. */
|
|
237
|
+
vehicleHeight?: number;
|
|
238
|
+
/** Length of the vehicle in meters. A value of 0 means that length restrictions are not considered. */
|
|
239
|
+
vehicleLength?: number;
|
|
240
|
+
/**
|
|
241
|
+
* 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.
|
|
242
|
+
*
|
|
243
|
+
* * A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.
|
|
244
|
+
*
|
|
245
|
+
* * 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.
|
|
246
|
+
*/
|
|
247
|
+
vehicleMaxSpeed?: number;
|
|
248
|
+
/**
|
|
249
|
+
* Weight of the vehicle in kilograms.
|
|
250
|
+
*
|
|
251
|
+
* * It is mandatory if any of the *Efficiency parameters are set.
|
|
252
|
+
*
|
|
253
|
+
* * It must be strictly positive when used in the context of the Consumption Model. Weight restrictions are considered.
|
|
254
|
+
*
|
|
255
|
+
* * If no detailed **Consumption Model** is specified and the value of **vehicleWeight** is non-zero, then weight restrictions are considered.
|
|
256
|
+
*
|
|
257
|
+
* * In all other cases, this parameter is ignored.
|
|
258
|
+
*
|
|
259
|
+
* Sensible Values : for **Combustion Model** : 1600, for **Electric Model** : 1900
|
|
260
|
+
*/
|
|
261
|
+
vehicleWeight?: number;
|
|
262
|
+
/** Whether the vehicle is used for commercial purposes. Commercial vehicles may not be allowed to drive on some roads. */
|
|
263
|
+
vehicleCommercial?: boolean;
|
|
264
|
+
/** Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
265
|
+
windingness?: "low" | "normal" | "high";
|
|
266
|
+
/** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
267
|
+
hilliness?: "low" | "normal" | "high";
|
|
268
|
+
/** 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. */
|
|
269
|
+
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
270
|
+
/** 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 Route Range requests, the value alreadyUsedRoads must not be used. */
|
|
271
|
+
avoid?: Array<"tollRoads" | "motorways" | "ferries" | "unpavedRoads" | "carpools" | "alreadyUsedRoads" | "borderCrossings">;
|
|
272
|
+
/**
|
|
273
|
+
* Possible values:
|
|
274
|
+
* * true - Do consider all available traffic information during routing
|
|
275
|
+
* * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored
|
|
276
|
+
* during routing, the effect of historic traffic on effective road speeds is still incorporated.
|
|
277
|
+
*/
|
|
278
|
+
traffic?: boolean;
|
|
279
|
+
/** The type of route requested. */
|
|
280
|
+
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
281
|
+
/** 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/regions. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries/regions. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */
|
|
282
|
+
vehicleLoadType?: "USHazmatClass1" | "USHazmatClass2" | "USHazmatClass3" | "USHazmatClass4" | "USHazmatClass5" | "USHazmatClass6" | "USHazmatClass7" | "USHazmatClass8" | "USHazmatClass9" | "otherHazmatExplosive" | "otherHazmatGeneral" | "otherHazmatHarmfulToWater";
|
|
283
|
+
/** Engine type of the vehicle. When a detailed Consumption Model is specified, it must be consistent with the value of **vehicleEngineType**. */
|
|
284
|
+
vehicleEngineType?: "combustion" | "electric";
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* Specifies the speed-dependent component of consumption.
|
|
288
|
+
*
|
|
289
|
+
* 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:
|
|
290
|
+
*
|
|
291
|
+
* * by linear interpolation, if the given speed lies in between two speeds in the list
|
|
292
|
+
*
|
|
293
|
+
* * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list
|
|
294
|
+
*
|
|
295
|
+
* 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.
|
|
296
|
+
*
|
|
297
|
+
* 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.
|
|
298
|
+
*
|
|
299
|
+
* Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.
|
|
300
|
+
*
|
|
301
|
+
* The valid range for the consumption values(expressed in l/100km) is between 0.01 and 100000.0.
|
|
302
|
+
*
|
|
303
|
+
* Sensible Values : 50,6.3:130,11.5
|
|
304
|
+
*
|
|
305
|
+
* **Note** : This parameter is required for **The Combustion Consumption Model**.
|
|
306
|
+
*/
|
|
307
|
+
constantSpeedConsumptionInLitersPerHundredkm?: string;
|
|
308
|
+
/**
|
|
309
|
+
* Specifies the current supply of fuel in liters.
|
|
310
|
+
*
|
|
311
|
+
* Sensible Values : 55
|
|
312
|
+
*/
|
|
313
|
+
currentFuelInLiters?: number;
|
|
314
|
+
/**
|
|
315
|
+
* Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in liters per hour.
|
|
316
|
+
*
|
|
317
|
+
* It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.
|
|
318
|
+
*
|
|
319
|
+
* Sensible Values : 0.2
|
|
320
|
+
*/
|
|
321
|
+
auxiliaryPowerInLitersPerHour?: number;
|
|
322
|
+
/**
|
|
323
|
+
* 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.
|
|
324
|
+
*
|
|
325
|
+
* This parameter is required if any ***Efficiency** parameter is set.
|
|
326
|
+
*
|
|
327
|
+
* Sensible Values : 34.2
|
|
328
|
+
*/
|
|
329
|
+
fuelEnergyDensityInMJoulesPerLiter?: number;
|
|
330
|
+
/**
|
|
331
|
+
* 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**.
|
|
332
|
+
*
|
|
333
|
+
* Must be paired with **decelerationEfficiency**.
|
|
334
|
+
*
|
|
335
|
+
* The range of values allowed are 0.0 to 1/**decelerationEfficiency**.
|
|
336
|
+
*
|
|
337
|
+
* Sensible Values : for **Combustion Model** : 0.33, for **Electric Model** : 0.66
|
|
338
|
+
*/
|
|
339
|
+
accelerationEfficiency?: number;
|
|
340
|
+
/**
|
|
341
|
+
* 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**.
|
|
342
|
+
*
|
|
343
|
+
* Must be paired with **accelerationEfficiency**.
|
|
344
|
+
*
|
|
345
|
+
* The range of values allowed are 0.0 to 1/**accelerationEfficiency**.
|
|
346
|
+
*
|
|
347
|
+
* Sensible Values : for **Combustion Model** : 0.83, for **Electric Model** : 0.91
|
|
348
|
+
*/
|
|
349
|
+
decelerationEfficiency?: number;
|
|
350
|
+
/**
|
|
351
|
+
* 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**.
|
|
352
|
+
*
|
|
353
|
+
* Must be paired with **downhillEfficiency**.
|
|
354
|
+
*
|
|
355
|
+
* The range of values allowed are 0.0 to 1/**downhillEfficiency**.
|
|
356
|
+
*
|
|
357
|
+
* Sensible Values : for **Combustion Model** : 0.27, for **Electric Model** : 0.74
|
|
358
|
+
*/
|
|
359
|
+
uphillEfficiency?: number;
|
|
360
|
+
/**
|
|
361
|
+
* 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**.
|
|
362
|
+
*
|
|
363
|
+
* Must be paired with **uphillEfficiency**.
|
|
364
|
+
*
|
|
365
|
+
* The range of values allowed are 0.0 to 1/**uphillEfficiency**.
|
|
366
|
+
*
|
|
367
|
+
* Sensible Values : for **Combustion Model** : 0.51, for **Electric Model** : 0.73
|
|
368
|
+
*/
|
|
369
|
+
downhillEfficiency?: number;
|
|
370
|
+
/**
|
|
371
|
+
* Specifies the speed-dependent component of consumption.
|
|
372
|
+
*
|
|
373
|
+
* 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:
|
|
374
|
+
*
|
|
375
|
+
* * by linear interpolation, if the given speed lies in between two speeds in the list
|
|
376
|
+
*
|
|
377
|
+
* * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list
|
|
378
|
+
*
|
|
379
|
+
* 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.
|
|
380
|
+
*
|
|
381
|
+
* 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.
|
|
382
|
+
*
|
|
383
|
+
* Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.
|
|
384
|
+
*
|
|
385
|
+
* The valid range for the consumption values(expressed in kWh/100km) is between 0.01 and 100000.0.
|
|
386
|
+
*
|
|
387
|
+
* Sensible Values : 50,8.2:130,21.3
|
|
388
|
+
*
|
|
389
|
+
* This parameter is required for **Electric consumption model**.
|
|
390
|
+
*/
|
|
391
|
+
constantSpeedConsumptionInkWhPerHundredkm?: string;
|
|
392
|
+
/**
|
|
393
|
+
* Specifies the current electric energy supply in kilowatt hours (kWh).
|
|
394
|
+
*
|
|
395
|
+
* This parameter co-exists with **maxChargeInkWh** parameter.
|
|
396
|
+
*
|
|
397
|
+
* The range of values allowed are 0.0 to **maxChargeInkWh**.
|
|
398
|
+
*
|
|
399
|
+
* Sensible Values : 43
|
|
400
|
+
*/
|
|
401
|
+
currentChargeInkWh?: number;
|
|
402
|
+
/**
|
|
403
|
+
* Specifies the maximum electric energy supply in kilowatt hours (kWh) that may be stored in the vehicle's battery.
|
|
404
|
+
*
|
|
405
|
+
* This parameter co-exists with **currentChargeInkWh** parameter.
|
|
406
|
+
*
|
|
407
|
+
* Minimum value has to be greater than or equal to **currentChargeInkWh**.
|
|
408
|
+
*
|
|
409
|
+
* Sensible Values : 85
|
|
410
|
+
*/
|
|
411
|
+
maxChargeInkWh?: number;
|
|
412
|
+
/**
|
|
413
|
+
* Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW).
|
|
414
|
+
*
|
|
415
|
+
* It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.
|
|
416
|
+
*
|
|
417
|
+
* Sensible Values : 1.7
|
|
418
|
+
*/
|
|
419
|
+
auxiliaryPowerInkW?: number;
|
|
420
|
+
}
|
|
421
|
+
export interface RouteGetRouteDirectionsQueryParam {
|
|
422
|
+
queryParameters: RouteGetRouteDirectionsQueryParamProperties;
|
|
423
|
+
}
|
|
424
|
+
export type RouteGetRouteDirectionsParameters = RouteGetRouteDirectionsQueryParam & RequestParameters;
|
|
425
|
+
export interface RouteGetRouteDirectionsWithAdditionalParametersBodyParam {
|
|
426
|
+
/**
|
|
427
|
+
* 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.
|
|
428
|
+
*
|
|
429
|
+
* Setting at least one of minDeviationDistance or minDeviationTime to a value greater than zero has the following consequences:
|
|
430
|
+
*
|
|
431
|
+
* * 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).
|
|
432
|
+
* * 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.
|
|
433
|
+
* * The values of minDeviationDistance and minDeviationTime determine how far alternative routes will be guaranteed to follow the reference route from the origin point onwards.
|
|
434
|
+
* * The route must use departAt.
|
|
435
|
+
* * The vehicleHeading is ignored.
|
|
436
|
+
*/
|
|
437
|
+
body: RouteDirectionParameters;
|
|
438
|
+
}
|
|
439
|
+
export interface RouteGetRouteDirectionsWithAdditionalParametersQueryParamProperties {
|
|
440
|
+
/** 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. */
|
|
441
|
+
query: string;
|
|
442
|
+
/** Number of desired alternative routes to be calculated. Default: 0, minimum: 0 and maximum: 5 */
|
|
443
|
+
maxAlternatives?: number;
|
|
444
|
+
/** Controls the optimality, with respect to the given planning criteria, of the calculated alternatives compared to the reference route. */
|
|
445
|
+
alternativeType?: "anyRoute" | "betterRoute";
|
|
446
|
+
/** 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 */
|
|
447
|
+
minDeviationDistance?: number;
|
|
448
|
+
/**
|
|
449
|
+
* 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:
|
|
450
|
+
* - The origin point of the _calculateRoute_ Request must be on
|
|
451
|
+
* (or very near) the input reference route.
|
|
452
|
+
* - If this is not the case, an error is returned.
|
|
453
|
+
* - However, the origin point does not need to be at the beginning
|
|
454
|
+
* of the input reference route (it can be thought of as the current
|
|
455
|
+
* vehicle position on the reference route).
|
|
456
|
+
* - The reference route, returned as the first route in the _calculateRoute_
|
|
457
|
+
* Response, will start at the origin point specified in the _calculateRoute_
|
|
458
|
+
* Request. The initial part of the input reference route up until the origin
|
|
459
|
+
* point will be excluded from the Response.
|
|
460
|
+
* - The values of _minDeviationDistance_ and _minDeviationTime_ determine
|
|
461
|
+
* how far alternative routes will be guaranteed to follow the reference
|
|
462
|
+
* route from the origin point onwards.
|
|
463
|
+
* - The route must use _departAt_.
|
|
464
|
+
* - The _vehicleHeading_ is ignored.
|
|
465
|
+
*/
|
|
466
|
+
minDeviationTime?: number;
|
|
467
|
+
/** If specified, guidance instructions will be returned. Note that the instructionsType parameter cannot be used in conjunction with routeRepresentation=none. */
|
|
468
|
+
instructionsType?: "coded" | "text" | "tagged";
|
|
469
|
+
/** 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 */
|
|
470
|
+
language?: string;
|
|
471
|
+
/** 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_. */
|
|
472
|
+
computeBestOrder?: boolean;
|
|
473
|
+
/** Specifies the representation of the set of routes provided as response. */
|
|
474
|
+
routeRepresentation?: "polyline" | "summaryOnly" | "none";
|
|
475
|
+
/** 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. */
|
|
476
|
+
computeTravelTimeFor?: "none" | "all";
|
|
477
|
+
/** 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 */
|
|
478
|
+
vehicleHeading?: number;
|
|
479
|
+
/** 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. */
|
|
480
|
+
report?: "effectiveSettings";
|
|
481
|
+
/** 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. Can be specified multiple times in one request, for example, '§ionType=carTrain§ionType=pedestrian§ionType=motorway'. The default sectionType refers to the travelMode input. By default travelMode is set to car */
|
|
482
|
+
sectionType?: Array<"carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban">;
|
|
483
|
+
/**
|
|
484
|
+
* The date and time of arrival at the destination point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified it will be assumed to be that of the destination point.
|
|
485
|
+
*
|
|
486
|
+
* Examples:
|
|
487
|
+
* * 2023-12-19T16:39:57
|
|
488
|
+
* * 2023-12-19T16:39:57-08:00
|
|
489
|
+
*
|
|
490
|
+
* The `arriveAt` parameter cannot be used in conjunction with `departAt`, `minDeviationDistance` or `minDeviationTime`.
|
|
491
|
+
*/
|
|
492
|
+
arriveAt?: Date | string;
|
|
493
|
+
/**
|
|
494
|
+
* The date and time of departure from the origin point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified, it will be assumed to be that of the origin point.
|
|
495
|
+
* * Default value: now
|
|
496
|
+
* * Other value: `dateTime`
|
|
497
|
+
*
|
|
498
|
+
* Examples:
|
|
499
|
+
* * 2023-12-19T16:39:57
|
|
500
|
+
* * 2023-12-19T16:39:57-08:00
|
|
501
|
+
*
|
|
502
|
+
* The `departAt` parameter cannot be used in conjunction with `arriveAt`.
|
|
503
|
+
*/
|
|
504
|
+
departAt?: Date | string;
|
|
505
|
+
/** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */
|
|
506
|
+
vehicleAxleWeight?: number;
|
|
507
|
+
/** Length of the vehicle in meters. A value of 0 means that length restrictions are not considered. */
|
|
508
|
+
vehicleLength?: number;
|
|
509
|
+
/** Height of the vehicle in meters. A value of 0 means that height restrictions are not considered. */
|
|
510
|
+
vehicleHeight?: number;
|
|
511
|
+
/** Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. */
|
|
512
|
+
vehicleWidth?: number;
|
|
513
|
+
/**
|
|
514
|
+
* 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.
|
|
515
|
+
*
|
|
516
|
+
* * A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.
|
|
517
|
+
*
|
|
518
|
+
* * 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.
|
|
519
|
+
*/
|
|
520
|
+
vehicleMaxSpeed?: number;
|
|
521
|
+
/**
|
|
522
|
+
* Weight of the vehicle in kilograms.
|
|
523
|
+
*
|
|
524
|
+
* * It is mandatory if any of the *Efficiency parameters are set.
|
|
525
|
+
*
|
|
526
|
+
* * It must be strictly positive when used in the context of the Consumption Model. Weight restrictions are considered.
|
|
527
|
+
*
|
|
528
|
+
* * If no detailed **Consumption Model** is specified and the value of **vehicleWeight** is non-zero, then weight restrictions are considered.
|
|
529
|
+
*
|
|
530
|
+
* * In all other cases, this parameter is ignored.
|
|
531
|
+
*
|
|
532
|
+
* Sensible Values : for **Combustion Model** : 1600, for **Electric Model** : 1900
|
|
533
|
+
*/
|
|
534
|
+
vehicleWeight?: number;
|
|
535
|
+
/** Whether the vehicle is used for commercial purposes. Commercial vehicles may not be allowed to drive on some roads. */
|
|
536
|
+
vehicleCommercial?: boolean;
|
|
537
|
+
/** Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
538
|
+
windingness?: "low" | "normal" | "high";
|
|
539
|
+
/** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
540
|
+
hilliness?: "low" | "normal" | "high";
|
|
541
|
+
/** 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. */
|
|
542
|
+
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
543
|
+
/** 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 Route Range requests, the value alreadyUsedRoads must not be used. */
|
|
544
|
+
avoid?: Array<"tollRoads" | "motorways" | "ferries" | "unpavedRoads" | "carpools" | "alreadyUsedRoads" | "borderCrossings">;
|
|
545
|
+
/**
|
|
546
|
+
* Possible values:
|
|
547
|
+
* * true - Do consider all available traffic information during routing
|
|
548
|
+
* * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored
|
|
549
|
+
* during routing, the effect of historic traffic on effective road speeds is still incorporated.
|
|
550
|
+
*/
|
|
551
|
+
traffic?: boolean;
|
|
552
|
+
/** The type of route requested. */
|
|
553
|
+
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
554
|
+
/** 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/regions. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries/regions. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */
|
|
555
|
+
vehicleLoadType?: "USHazmatClass1" | "USHazmatClass2" | "USHazmatClass3" | "USHazmatClass4" | "USHazmatClass5" | "USHazmatClass6" | "USHazmatClass7" | "USHazmatClass8" | "USHazmatClass9" | "otherHazmatExplosive" | "otherHazmatGeneral" | "otherHazmatHarmfulToWater";
|
|
556
|
+
/** Engine type of the vehicle. When a detailed Consumption Model is specified, it must be consistent with the value of **vehicleEngineType**. */
|
|
557
|
+
vehicleEngineType?: "combustion" | "electric";
|
|
558
|
+
/**
|
|
559
|
+
*
|
|
560
|
+
* Specifies the speed-dependent component of consumption.
|
|
561
|
+
*
|
|
562
|
+
* 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:
|
|
563
|
+
*
|
|
564
|
+
* * by linear interpolation, if the given speed lies in between two speeds in the list
|
|
565
|
+
*
|
|
566
|
+
* * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list
|
|
567
|
+
*
|
|
568
|
+
* 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.
|
|
569
|
+
*
|
|
570
|
+
* 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.
|
|
571
|
+
*
|
|
572
|
+
* Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.
|
|
573
|
+
*
|
|
574
|
+
* The valid range for the consumption values(expressed in l/100km) is between 0.01 and 100000.0.
|
|
575
|
+
*
|
|
576
|
+
* Sensible Values : 50,6.3:130,11.5
|
|
577
|
+
*
|
|
578
|
+
* **Note** : This parameter is required for **The Combustion Consumption Model**.
|
|
579
|
+
*/
|
|
580
|
+
constantSpeedConsumptionInLitersPerHundredkm?: string;
|
|
581
|
+
/**
|
|
582
|
+
* Specifies the current supply of fuel in liters.
|
|
583
|
+
*
|
|
584
|
+
* Sensible Values : 55
|
|
585
|
+
*/
|
|
586
|
+
currentFuelInLiters?: number;
|
|
587
|
+
/**
|
|
588
|
+
* Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in liters per hour.
|
|
589
|
+
*
|
|
590
|
+
* It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.
|
|
591
|
+
*
|
|
592
|
+
* Sensible Values : 0.2
|
|
593
|
+
*/
|
|
594
|
+
auxiliaryPowerInLitersPerHour?: number;
|
|
595
|
+
/**
|
|
596
|
+
* 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.
|
|
597
|
+
*
|
|
598
|
+
* This parameter is required if any ***Efficiency** parameter is set.
|
|
599
|
+
*
|
|
600
|
+
* Sensible Values : 34.2
|
|
601
|
+
*/
|
|
602
|
+
fuelEnergyDensityInMJoulesPerLiter?: number;
|
|
603
|
+
/**
|
|
604
|
+
* 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**.
|
|
605
|
+
*
|
|
606
|
+
* Must be paired with **decelerationEfficiency**.
|
|
607
|
+
*
|
|
608
|
+
* The range of values allowed are 0.0 to 1/**decelerationEfficiency**.
|
|
609
|
+
*
|
|
610
|
+
* Sensible Values : for **Combustion Model** : 0.33, for **Electric Model** : 0.66
|
|
611
|
+
*/
|
|
612
|
+
accelerationEfficiency?: number;
|
|
613
|
+
/**
|
|
614
|
+
* 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**.
|
|
615
|
+
*
|
|
616
|
+
* Must be paired with **accelerationEfficiency**.
|
|
617
|
+
*
|
|
618
|
+
* The range of values allowed are 0.0 to 1/**accelerationEfficiency**.
|
|
619
|
+
*
|
|
620
|
+
* Sensible Values : for **Combustion Model** : 0.83, for **Electric Model** : 0.91
|
|
621
|
+
*/
|
|
622
|
+
decelerationEfficiency?: number;
|
|
623
|
+
/**
|
|
624
|
+
* 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**.
|
|
625
|
+
*
|
|
626
|
+
* Must be paired with **downhillEfficiency**.
|
|
627
|
+
*
|
|
628
|
+
* The range of values allowed are 0.0 to 1/**downhillEfficiency**.
|
|
629
|
+
*
|
|
630
|
+
* Sensible Values : for **Combustion Model** : 0.27, for **Electric Model** : 0.74
|
|
631
|
+
*/
|
|
632
|
+
uphillEfficiency?: number;
|
|
633
|
+
/**
|
|
634
|
+
* 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**.
|
|
635
|
+
*
|
|
636
|
+
* Must be paired with **uphillEfficiency**.
|
|
637
|
+
*
|
|
638
|
+
* The range of values allowed are 0.0 to 1/**uphillEfficiency**.
|
|
639
|
+
*
|
|
640
|
+
* Sensible Values : for **Combustion Model** : 0.51, for **Electric Model** : 0.73
|
|
641
|
+
*/
|
|
642
|
+
downhillEfficiency?: number;
|
|
643
|
+
/**
|
|
644
|
+
* Specifies the speed-dependent component of consumption.
|
|
645
|
+
*
|
|
646
|
+
* 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:
|
|
647
|
+
*
|
|
648
|
+
* * by linear interpolation, if the given speed lies in between two speeds in the list
|
|
649
|
+
*
|
|
650
|
+
* * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list
|
|
651
|
+
*
|
|
652
|
+
* 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.
|
|
653
|
+
*
|
|
654
|
+
* 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.
|
|
655
|
+
*
|
|
656
|
+
* Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.
|
|
657
|
+
*
|
|
658
|
+
* The valid range for the consumption values(expressed in kWh/100km) is between 0.01 and 100000.0.
|
|
659
|
+
*
|
|
660
|
+
* Sensible Values : 50,8.2:130,21.3
|
|
661
|
+
*
|
|
662
|
+
* This parameter is required for **Electric consumption model**.
|
|
663
|
+
*/
|
|
664
|
+
constantSpeedConsumptionInkWhPerHundredkm?: string;
|
|
665
|
+
/**
|
|
666
|
+
* Specifies the current electric energy supply in kilowatt hours (kWh).
|
|
667
|
+
*
|
|
668
|
+
* This parameter co-exists with **maxChargeInkWh** parameter.
|
|
669
|
+
*
|
|
670
|
+
* The range of values allowed are 0.0 to **maxChargeInkWh**.
|
|
671
|
+
*
|
|
672
|
+
* Sensible Values : 43
|
|
673
|
+
*/
|
|
674
|
+
currentChargeInkWh?: number;
|
|
675
|
+
/**
|
|
676
|
+
* Specifies the maximum electric energy supply in kilowatt hours (kWh) that may be stored in the vehicle's battery.
|
|
677
|
+
*
|
|
678
|
+
* This parameter co-exists with **currentChargeInkWh** parameter.
|
|
679
|
+
*
|
|
680
|
+
* Minimum value has to be greater than or equal to **currentChargeInkWh**.
|
|
681
|
+
*
|
|
682
|
+
* Sensible Values : 85
|
|
683
|
+
*/
|
|
684
|
+
maxChargeInkWh?: number;
|
|
685
|
+
/**
|
|
686
|
+
* Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW).
|
|
687
|
+
*
|
|
688
|
+
* It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.
|
|
689
|
+
*
|
|
690
|
+
* Sensible Values : 1.7
|
|
691
|
+
*/
|
|
692
|
+
auxiliaryPowerInkW?: number;
|
|
693
|
+
}
|
|
694
|
+
export interface RouteGetRouteDirectionsWithAdditionalParametersQueryParam {
|
|
695
|
+
queryParameters: RouteGetRouteDirectionsWithAdditionalParametersQueryParamProperties;
|
|
696
|
+
}
|
|
697
|
+
export interface RouteGetRouteDirectionsWithAdditionalParametersMediaTypesParam {
|
|
698
|
+
/** Request content type */
|
|
699
|
+
contentType?: "application/json";
|
|
700
|
+
}
|
|
701
|
+
export type RouteGetRouteDirectionsWithAdditionalParametersParameters = RouteGetRouteDirectionsWithAdditionalParametersQueryParam & RouteGetRouteDirectionsWithAdditionalParametersMediaTypesParam & RouteGetRouteDirectionsWithAdditionalParametersBodyParam & RequestParameters;
|
|
702
|
+
export interface RouteGetRouteRangeQueryParamProperties {
|
|
703
|
+
/** The Coordinate from which the range calculation should start. */
|
|
704
|
+
query: Array<number>;
|
|
705
|
+
/** 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. */
|
|
706
|
+
fuelBudgetInLiters?: number;
|
|
707
|
+
/** 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. */
|
|
708
|
+
energyBudgetInkWh?: number;
|
|
709
|
+
/** 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. */
|
|
710
|
+
timeBudgetInSec?: number;
|
|
711
|
+
/** 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. */
|
|
712
|
+
distanceBudgetInMeters?: number;
|
|
713
|
+
/**
|
|
714
|
+
* The date and time of departure from the origin point formatted as a `dateTime` value as defined in [RFC 3339, section 5.6](https://www.rfc-editor.org/rfc/rfc3339#section-5.6), with an optional time zone offset. When a time zone offset is not specified, it will be assumed to be that of the origin point.
|
|
715
|
+
* * Default value: now
|
|
716
|
+
* * Other value: `dateTime`
|
|
717
|
+
*
|
|
718
|
+
* Examples:
|
|
719
|
+
* * 2023-12-19T16:39:57
|
|
720
|
+
* * 2023-12-19T16:39:57-08:00
|
|
721
|
+
*
|
|
722
|
+
* The `departAt` parameter cannot be used in conjunction with `arriveAt`.
|
|
723
|
+
*/
|
|
724
|
+
departAt?: Date | string;
|
|
725
|
+
/** The type of route requested. */
|
|
726
|
+
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
727
|
+
/**
|
|
728
|
+
* Possible values:
|
|
729
|
+
* * true - Do consider all available traffic information during routing
|
|
730
|
+
* * false - Ignore current traffic data during routing. Note that although the current traffic data is ignored
|
|
731
|
+
* during routing, the effect of historic traffic on effective road speeds is still incorporated.
|
|
732
|
+
*/
|
|
733
|
+
traffic?: boolean;
|
|
734
|
+
/** 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 Route Range requests, the value alreadyUsedRoads must not be used. */
|
|
735
|
+
avoid?: Array<"tollRoads" | "motorways" | "ferries" | "unpavedRoads" | "carpools" | "alreadyUsedRoads" | "borderCrossings">;
|
|
736
|
+
/** 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. */
|
|
737
|
+
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
738
|
+
/** Degree of hilliness for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
739
|
+
hilliness?: "low" | "normal" | "high";
|
|
740
|
+
/** Level of turns for thrilling route. This parameter can only be used in conjunction with `routeType`=thrilling. */
|
|
741
|
+
windingness?: "low" | "normal" | "high";
|
|
742
|
+
/** Weight per axle of the vehicle in kg. A value of 0 means that weight restrictions per axle are not considered. */
|
|
743
|
+
vehicleAxleWeight?: number;
|
|
744
|
+
/** Width of the vehicle in meters. A value of 0 means that width restrictions are not considered. */
|
|
745
|
+
vehicleWidth?: number;
|
|
746
|
+
/** Height of the vehicle in meters. A value of 0 means that height restrictions are not considered. */
|
|
747
|
+
vehicleHeight?: number;
|
|
748
|
+
/** Length of the vehicle in meters. A value of 0 means that length restrictions are not considered. */
|
|
749
|
+
vehicleLength?: number;
|
|
750
|
+
/**
|
|
751
|
+
* 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.
|
|
752
|
+
*
|
|
753
|
+
* * A value of 0 means that an appropriate value for the vehicle will be determined and applied during route planning.
|
|
754
|
+
*
|
|
755
|
+
* * 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.
|
|
756
|
+
*/
|
|
757
|
+
vehicleMaxSpeed?: number;
|
|
758
|
+
/**
|
|
759
|
+
* Weight of the vehicle in kilograms.
|
|
760
|
+
*
|
|
761
|
+
* * It is mandatory if any of the *Efficiency parameters are set.
|
|
762
|
+
*
|
|
763
|
+
* * It must be strictly positive when used in the context of the Consumption Model. Weight restrictions are considered.
|
|
764
|
+
*
|
|
765
|
+
* * If no detailed **Consumption Model** is specified and the value of **vehicleWeight** is non-zero, then weight restrictions are considered.
|
|
766
|
+
*
|
|
767
|
+
* * In all other cases, this parameter is ignored.
|
|
768
|
+
*
|
|
769
|
+
* Sensible Values : for **Combustion Model** : 1600, for **Electric Model** : 1900
|
|
770
|
+
*/
|
|
771
|
+
vehicleWeight?: number;
|
|
772
|
+
/** Whether the vehicle is used for commercial purposes. Commercial vehicles may not be allowed to drive on some roads. */
|
|
773
|
+
vehicleCommercial?: boolean;
|
|
774
|
+
/** 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/regions. Values beginning with USHazmat are for US routing while otherHazmat should be used for all other countries/regions. vehicleLoadType can be specified multiple times. This parameter is currently only considered for travelMode=truck. */
|
|
775
|
+
vehicleLoadType?: "USHazmatClass1" | "USHazmatClass2" | "USHazmatClass3" | "USHazmatClass4" | "USHazmatClass5" | "USHazmatClass6" | "USHazmatClass7" | "USHazmatClass8" | "USHazmatClass9" | "otherHazmatExplosive" | "otherHazmatGeneral" | "otherHazmatHarmfulToWater";
|
|
776
|
+
/** Engine type of the vehicle. When a detailed Consumption Model is specified, it must be consistent with the value of **vehicleEngineType**. */
|
|
777
|
+
vehicleEngineType?: "combustion" | "electric";
|
|
778
|
+
/**
|
|
779
|
+
*
|
|
780
|
+
* Specifies the speed-dependent component of consumption.
|
|
781
|
+
*
|
|
782
|
+
* 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:
|
|
783
|
+
*
|
|
784
|
+
* * by linear interpolation, if the given speed lies in between two speeds in the list
|
|
785
|
+
*
|
|
786
|
+
* * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list
|
|
787
|
+
*
|
|
788
|
+
* 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.
|
|
789
|
+
*
|
|
790
|
+
* 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.
|
|
791
|
+
*
|
|
792
|
+
* Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.
|
|
793
|
+
*
|
|
794
|
+
* The valid range for the consumption values(expressed in l/100km) is between 0.01 and 100000.0.
|
|
795
|
+
*
|
|
796
|
+
* Sensible Values : 50,6.3:130,11.5
|
|
797
|
+
*
|
|
798
|
+
* **Note** : This parameter is required for **The Combustion Consumption Model**.
|
|
799
|
+
*/
|
|
800
|
+
constantSpeedConsumptionInLitersPerHundredkm?: string;
|
|
801
|
+
/**
|
|
802
|
+
* Specifies the current supply of fuel in liters.
|
|
803
|
+
*
|
|
804
|
+
* Sensible Values : 55
|
|
805
|
+
*/
|
|
806
|
+
currentFuelInLiters?: number;
|
|
807
|
+
/**
|
|
808
|
+
* Specifies the amount of fuel consumed for sustaining auxiliary systems of the vehicle, in liters per hour.
|
|
809
|
+
*
|
|
810
|
+
* It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.
|
|
811
|
+
*
|
|
812
|
+
* Sensible Values : 0.2
|
|
813
|
+
*/
|
|
814
|
+
auxiliaryPowerInLitersPerHour?: number;
|
|
815
|
+
/**
|
|
816
|
+
* 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.
|
|
817
|
+
*
|
|
818
|
+
* This parameter is required if any ***Efficiency** parameter is set.
|
|
819
|
+
*
|
|
820
|
+
* Sensible Values : 34.2
|
|
821
|
+
*/
|
|
822
|
+
fuelEnergyDensityInMJoulesPerLiter?: number;
|
|
823
|
+
/**
|
|
824
|
+
* 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**.
|
|
825
|
+
*
|
|
826
|
+
* Must be paired with **decelerationEfficiency**.
|
|
827
|
+
*
|
|
828
|
+
* The range of values allowed are 0.0 to 1/**decelerationEfficiency**.
|
|
829
|
+
*
|
|
830
|
+
* Sensible Values : for **Combustion Model** : 0.33, for **Electric Model** : 0.66
|
|
831
|
+
*/
|
|
832
|
+
accelerationEfficiency?: number;
|
|
833
|
+
/**
|
|
834
|
+
* 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**.
|
|
835
|
+
*
|
|
836
|
+
* Must be paired with **accelerationEfficiency**.
|
|
837
|
+
*
|
|
838
|
+
* The range of values allowed are 0.0 to 1/**accelerationEfficiency**.
|
|
839
|
+
*
|
|
840
|
+
* Sensible Values : for **Combustion Model** : 0.83, for **Electric Model** : 0.91
|
|
841
|
+
*/
|
|
842
|
+
decelerationEfficiency?: number;
|
|
843
|
+
/**
|
|
844
|
+
* 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**.
|
|
845
|
+
*
|
|
846
|
+
* Must be paired with **downhillEfficiency**.
|
|
847
|
+
*
|
|
848
|
+
* The range of values allowed are 0.0 to 1/**downhillEfficiency**.
|
|
849
|
+
*
|
|
850
|
+
* Sensible Values : for **Combustion Model** : 0.27, for **Electric Model** : 0.74
|
|
851
|
+
*/
|
|
852
|
+
uphillEfficiency?: number;
|
|
853
|
+
/**
|
|
854
|
+
* 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**.
|
|
855
|
+
*
|
|
856
|
+
* Must be paired with **uphillEfficiency**.
|
|
857
|
+
*
|
|
858
|
+
* The range of values allowed are 0.0 to 1/**uphillEfficiency**.
|
|
859
|
+
*
|
|
860
|
+
* Sensible Values : for **Combustion Model** : 0.51, for **Electric Model** : 0.73
|
|
861
|
+
*/
|
|
862
|
+
downhillEfficiency?: number;
|
|
863
|
+
/**
|
|
864
|
+
* Specifies the speed-dependent component of consumption.
|
|
865
|
+
*
|
|
866
|
+
* 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:
|
|
867
|
+
*
|
|
868
|
+
* * by linear interpolation, if the given speed lies in between two speeds in the list
|
|
869
|
+
*
|
|
870
|
+
* * by linear extrapolation otherwise, assuming a constant (ΔConsumption/ΔSpeed) determined by the nearest two points in the list
|
|
871
|
+
*
|
|
872
|
+
* 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.
|
|
873
|
+
*
|
|
874
|
+
* 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.
|
|
875
|
+
*
|
|
876
|
+
* Similarly, consumption values specified for the two smallest speeds in the list cannot lead to a negative consumption rate for any smaller speed.
|
|
877
|
+
*
|
|
878
|
+
* The valid range for the consumption values(expressed in kWh/100km) is between 0.01 and 100000.0.
|
|
879
|
+
*
|
|
880
|
+
* Sensible Values : 50,8.2:130,21.3
|
|
881
|
+
*
|
|
882
|
+
* This parameter is required for **Electric consumption model**.
|
|
883
|
+
*/
|
|
884
|
+
constantSpeedConsumptionInkWhPerHundredkm?: string;
|
|
885
|
+
/**
|
|
886
|
+
* Specifies the current electric energy supply in kilowatt hours (kWh).
|
|
887
|
+
*
|
|
888
|
+
* This parameter co-exists with **maxChargeInkWh** parameter.
|
|
889
|
+
*
|
|
890
|
+
* The range of values allowed are 0.0 to **maxChargeInkWh**.
|
|
891
|
+
*
|
|
892
|
+
* Sensible Values : 43
|
|
893
|
+
*/
|
|
894
|
+
currentChargeInkWh?: number;
|
|
895
|
+
/**
|
|
896
|
+
* Specifies the maximum electric energy supply in kilowatt hours (kWh) that may be stored in the vehicle's battery.
|
|
897
|
+
*
|
|
898
|
+
* This parameter co-exists with **currentChargeInkWh** parameter.
|
|
899
|
+
*
|
|
900
|
+
* Minimum value has to be greater than or equal to **currentChargeInkWh**.
|
|
901
|
+
*
|
|
902
|
+
* Sensible Values : 85
|
|
903
|
+
*/
|
|
904
|
+
maxChargeInkWh?: number;
|
|
905
|
+
/**
|
|
906
|
+
* Specifies the amount of power consumed for sustaining auxiliary systems, in kilowatts (kW).
|
|
907
|
+
*
|
|
908
|
+
* It can be used to specify consumption due to devices and systems such as AC systems, radio, heating, etc.
|
|
909
|
+
*
|
|
910
|
+
* Sensible Values : 1.7
|
|
911
|
+
*/
|
|
912
|
+
auxiliaryPowerInkW?: number;
|
|
913
|
+
}
|
|
914
|
+
export interface RouteGetRouteRangeQueryParam {
|
|
915
|
+
queryParameters: RouteGetRouteRangeQueryParamProperties;
|
|
916
|
+
}
|
|
917
|
+
export type RouteGetRouteRangeParameters = RouteGetRouteRangeQueryParam & RequestParameters;
|
|
918
|
+
export interface RouteRequestRouteDirectionsBatchBodyParam {
|
|
919
|
+
/** 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. */
|
|
920
|
+
body: BatchRequest;
|
|
921
|
+
}
|
|
922
|
+
export interface RouteRequestRouteDirectionsBatchMediaTypesParam {
|
|
923
|
+
/** Request content type */
|
|
924
|
+
contentType?: "application/json";
|
|
925
|
+
}
|
|
926
|
+
export type RouteRequestRouteDirectionsBatchParameters = RouteRequestRouteDirectionsBatchMediaTypesParam & RouteRequestRouteDirectionsBatchBodyParam & RequestParameters;
|
|
927
|
+
export type RouteGetRouteDirectionsBatchParameters = RequestParameters;
|
|
928
|
+
export interface RouteRequestRouteDirectionsBatchSyncBodyParam {
|
|
929
|
+
/** 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. */
|
|
930
|
+
body: BatchRequest;
|
|
931
|
+
}
|
|
932
|
+
export interface RouteRequestRouteDirectionsBatchSyncMediaTypesParam {
|
|
933
|
+
/** Request content type */
|
|
934
|
+
contentType?: "application/json";
|
|
935
|
+
}
|
|
936
|
+
export type RouteRequestRouteDirectionsBatchSyncParameters = RouteRequestRouteDirectionsBatchSyncMediaTypesParam & RouteRequestRouteDirectionsBatchSyncBodyParam & RequestParameters;
|
|
937
|
+
//# sourceMappingURL=parameters.d.ts.map
|