@azure-rest/maps-route 1.0.0-beta.5 → 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/dist/browser/generated/isUnexpected.js +5 -6
- package/dist/browser/generated/isUnexpected.js.map +1 -1
- package/dist/browser/generated/mapsRouteClient.js +13 -11
- package/dist/browser/generated/mapsRouteClient.js.map +1 -1
- package/dist/browser/generated/pollingHelper.js +11 -8
- package/dist/browser/generated/pollingHelper.js.map +1 -1
- package/dist/commonjs/generated/isUnexpected.js +5 -6
- package/dist/commonjs/generated/isUnexpected.js.map +1 -1
- package/dist/commonjs/generated/mapsRouteClient.js +13 -11
- package/dist/commonjs/generated/mapsRouteClient.js.map +1 -1
- package/dist/commonjs/generated/pollingHelper.js +11 -8
- package/dist/commonjs/generated/pollingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/generated/isUnexpected.js +5 -6
- package/dist/esm/generated/isUnexpected.js.map +1 -1
- package/dist/esm/generated/mapsRouteClient.js +13 -11
- package/dist/esm/generated/mapsRouteClient.js.map +1 -1
- package/dist/esm/generated/pollingHelper.js +11 -8
- package/dist/esm/generated/pollingHelper.js.map +1 -1
- package/dist/react-native/generated/isUnexpected.js +5 -6
- package/dist/react-native/generated/isUnexpected.js.map +1 -1
- package/dist/react-native/generated/mapsRouteClient.js +13 -11
- package/dist/react-native/generated/mapsRouteClient.js.map +1 -1
- package/dist/react-native/generated/pollingHelper.js +11 -8
- package/dist/react-native/generated/pollingHelper.js.map +1 -1
- package/package.json +38 -45
- package/review/maps-route-node.api.md +934 -0
|
@@ -0,0 +1,934 @@
|
|
|
1
|
+
## API Report File for "@azure-rest/maps-route"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { AbortSignalLike } from '@azure/abort-controller';
|
|
8
|
+
import type { AzureKeyCredential } from '@azure/core-auth';
|
|
9
|
+
import type { AzureSASCredential } from '@azure/core-auth';
|
|
10
|
+
import { CancelOnProgress } from '@azure/core-lro';
|
|
11
|
+
import { Client } from '@azure-rest/core-client';
|
|
12
|
+
import { ClientOptions } from '@azure-rest/core-client';
|
|
13
|
+
import { CreateHttpPollerOptions } from '@azure/core-lro';
|
|
14
|
+
import { HttpResponse } from '@azure-rest/core-client';
|
|
15
|
+
import type { LatLon } from '@azure/maps-common';
|
|
16
|
+
import { OperationState } from '@azure/core-lro';
|
|
17
|
+
import { RawHttpHeaders } from '@azure/core-rest-pipeline';
|
|
18
|
+
import { RequestParameters } from '@azure-rest/core-client';
|
|
19
|
+
import { StreamableMethod } from '@azure-rest/core-client';
|
|
20
|
+
import type { TokenCredential } from '@azure/core-auth';
|
|
21
|
+
|
|
22
|
+
// @public
|
|
23
|
+
export interface BatchRequest {
|
|
24
|
+
batchItems?: Array<BatchRequestItem>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// @public
|
|
28
|
+
export interface BatchRequestItem {
|
|
29
|
+
query?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// @public
|
|
33
|
+
export interface BatchResultItemOutput {
|
|
34
|
+
readonly statusCode: number;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// @public
|
|
38
|
+
export interface BatchResultOutput {
|
|
39
|
+
readonly summary: BatchResultSummaryOutput;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// @public
|
|
43
|
+
export interface BatchResultSummaryOutput {
|
|
44
|
+
readonly successfulRequests: number;
|
|
45
|
+
readonly totalRequests: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// @public (undocumented)
|
|
49
|
+
export function buildMultiCollection(items: string[], parameterName: string): string;
|
|
50
|
+
|
|
51
|
+
// @public
|
|
52
|
+
export function createRouteDirectionsBatchRequest(queryParamProperties: RouteGetRouteDirectionsQueryParamProperties[]): BatchRequest;
|
|
53
|
+
|
|
54
|
+
// @public
|
|
55
|
+
export interface EffectiveSettingOutput {
|
|
56
|
+
readonly key: string;
|
|
57
|
+
readonly value: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// @public
|
|
61
|
+
export interface ErrorDetailOutput {
|
|
62
|
+
readonly code?: string;
|
|
63
|
+
readonly message?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// @public
|
|
67
|
+
export interface ErrorResponseOutput {
|
|
68
|
+
error?: ErrorDetailOutput;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// @public
|
|
72
|
+
export interface GeoJsonFeature extends GeoJsonObjectParent, GeoJsonFeatureData {
|
|
73
|
+
// (undocumented)
|
|
74
|
+
type: "Feature";
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// @public
|
|
78
|
+
export interface GeoJsonFeatureCollection extends GeoJsonObjectParent, GeoJsonFeatureCollectionData {
|
|
79
|
+
// (undocumented)
|
|
80
|
+
type: "FeatureCollection";
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// @public (undocumented)
|
|
84
|
+
export interface GeoJsonFeatureCollectionData {
|
|
85
|
+
features: Array<GeoJsonFeature>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// @public (undocumented)
|
|
89
|
+
export interface GeoJsonFeatureData {
|
|
90
|
+
featureType?: string;
|
|
91
|
+
geometry: GeoJsonGeometry;
|
|
92
|
+
id?: string;
|
|
93
|
+
properties?: Record<string, unknown>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// @public
|
|
97
|
+
export type GeoJsonGeometry = GeoJsonGeometryParent | GeoJsonMultiPoint | GeoJsonMultiPolygon | GeoJsonPoint | GeoJsonLineString | GeoJsonMultiLineString | GeoJsonPolygon | GeoJsonGeometryCollection;
|
|
98
|
+
|
|
99
|
+
// @public
|
|
100
|
+
export interface GeoJsonGeometryCollection extends GeoJsonGeometryParent, GeoJsonGeometryCollectionData {
|
|
101
|
+
// (undocumented)
|
|
102
|
+
type: "GeometryCollection";
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// @public (undocumented)
|
|
106
|
+
export interface GeoJsonGeometryCollectionData {
|
|
107
|
+
geometries: Array<GeoJsonGeometry>;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// @public
|
|
111
|
+
export interface GeoJsonGeometryParent extends GeoJsonObjectParent {
|
|
112
|
+
// (undocumented)
|
|
113
|
+
type: "GeoJsonGeometry" | "MultiPoint" | "MultiPolygon" | "Point" | "LineString" | "MultiLineString" | "Polygon" | "GeometryCollection";
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// @public
|
|
117
|
+
export interface GeoJsonLineString extends GeoJsonGeometryParent, GeoJsonLineStringData {
|
|
118
|
+
// (undocumented)
|
|
119
|
+
type: "LineString";
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// @public (undocumented)
|
|
123
|
+
export interface GeoJsonLineStringData {
|
|
124
|
+
coordinates: Array<Array<number>>;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// @public
|
|
128
|
+
export interface GeoJsonMultiLineString extends GeoJsonGeometryParent, GeoJsonMultiLineStringData {
|
|
129
|
+
// (undocumented)
|
|
130
|
+
type: "MultiLineString";
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// @public (undocumented)
|
|
134
|
+
export interface GeoJsonMultiLineStringData {
|
|
135
|
+
coordinates: Array<Array<Array<number>>>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// @public
|
|
139
|
+
export interface GeoJsonMultiPoint extends GeoJsonGeometryParent, GeoJsonMultiPointData {
|
|
140
|
+
// (undocumented)
|
|
141
|
+
type: "MultiPoint";
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// @public
|
|
145
|
+
export interface GeoJsonMultiPointData {
|
|
146
|
+
coordinates: Array<Array<number>>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// @public
|
|
150
|
+
export interface GeoJsonMultiPolygon extends GeoJsonGeometryParent, GeoJsonMultiPolygonData {
|
|
151
|
+
// (undocumented)
|
|
152
|
+
type: "MultiPolygon";
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// @public (undocumented)
|
|
156
|
+
export interface GeoJsonMultiPolygonData {
|
|
157
|
+
coordinates: Array<Array<Array<Array<number>>>>;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// @public
|
|
161
|
+
export type GeoJsonObject = GeoJsonGeometry | GeoJsonMultiPoint | GeoJsonMultiPolygon | GeoJsonPoint | GeoJsonLineString | GeoJsonMultiLineString | GeoJsonPolygon | GeoJsonGeometryCollection | GeoJsonFeature | GeoJsonFeatureCollection;
|
|
162
|
+
|
|
163
|
+
// @public
|
|
164
|
+
export interface GeoJsonObjectParent {
|
|
165
|
+
// (undocumented)
|
|
166
|
+
type: "GeoJsonObject" | "GeoJsonGeometry" | "MultiPoint" | "MultiPolygon" | "Point" | "LineString" | "MultiLineString" | "Polygon" | "GeometryCollection" | "Feature" | "FeatureCollection";
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// @public
|
|
170
|
+
export interface GeoJsonPoint extends GeoJsonGeometryParent, GeoJsonPointData {
|
|
171
|
+
// (undocumented)
|
|
172
|
+
type: "Point";
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// @public
|
|
176
|
+
export interface GeoJsonPointData {
|
|
177
|
+
coordinates: Array<number>;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// @public
|
|
181
|
+
export interface GeoJsonPolygon extends GeoJsonGeometryParent, GeoJsonPolygonData {
|
|
182
|
+
// (undocumented)
|
|
183
|
+
type: "Polygon";
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// @public (undocumented)
|
|
187
|
+
export interface GeoJsonPolygonData {
|
|
188
|
+
coordinates: Array<Array<Array<number>>>;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// @public
|
|
192
|
+
export function getLongRunningPoller<TResult extends HttpResponse>(client: Client, initialResponse: TResult, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
|
|
193
|
+
|
|
194
|
+
// @public (undocumented)
|
|
195
|
+
export interface GetRouteDirections {
|
|
196
|
+
get(options: RouteGetRouteDirectionsParameters): StreamableMethod<RouteGetRouteDirections200Response | RouteGetRouteDirectionsDefaultResponse>;
|
|
197
|
+
post(options: RouteGetRouteDirectionsWithAdditionalParametersParameters): StreamableMethod<RouteGetRouteDirectionsWithAdditionalParameters200Response | RouteGetRouteDirectionsWithAdditionalParametersDefaultResponse>;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// @public (undocumented)
|
|
201
|
+
export interface GetRouteRange {
|
|
202
|
+
get(options: RouteGetRouteRangeParameters): StreamableMethod<RouteGetRouteRange200Response | RouteGetRouteRangeDefaultResponse>;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// @public (undocumented)
|
|
206
|
+
export function isUnexpected(response: RouteRequestRouteMatrixSync200Response | RouteRequestRouteMatrixSync408Response | RouteRequestRouteMatrixSyncDefaultResponse): response is RouteRequestRouteMatrixSync408Response;
|
|
207
|
+
|
|
208
|
+
// @public (undocumented)
|
|
209
|
+
export function isUnexpected(response: RouteGetRouteDirections200Response | RouteGetRouteDirectionsDefaultResponse): response is RouteGetRouteDirectionsDefaultResponse;
|
|
210
|
+
|
|
211
|
+
// @public (undocumented)
|
|
212
|
+
export function isUnexpected(response: RouteGetRouteDirectionsWithAdditionalParameters200Response | RouteGetRouteDirectionsWithAdditionalParametersDefaultResponse): response is RouteGetRouteDirectionsWithAdditionalParametersDefaultResponse;
|
|
213
|
+
|
|
214
|
+
// @public (undocumented)
|
|
215
|
+
export function isUnexpected(response: RouteGetRouteRange200Response | RouteGetRouteRangeDefaultResponse): response is RouteGetRouteRangeDefaultResponse;
|
|
216
|
+
|
|
217
|
+
// @public (undocumented)
|
|
218
|
+
export function isUnexpected(response: RouteRequestRouteDirectionsBatchSync200Response | RouteRequestRouteDirectionsBatchSync408Response | RouteRequestRouteDirectionsBatchSyncDefaultResponse): response is RouteRequestRouteDirectionsBatchSync408Response;
|
|
219
|
+
|
|
220
|
+
// @public
|
|
221
|
+
export interface LatLongPairOutput {
|
|
222
|
+
latitude: number;
|
|
223
|
+
longitude: number;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// @public
|
|
227
|
+
function MapsRoute(credential: AzureKeyCredential, options?: ClientOptions): MapsRouteClient;
|
|
228
|
+
|
|
229
|
+
// @public
|
|
230
|
+
function MapsRoute(credential: TokenCredential, mapsAccountClientId: string, options?: ClientOptions): MapsRouteClient;
|
|
231
|
+
|
|
232
|
+
// @public
|
|
233
|
+
function MapsRoute(credential: AzureSASCredential, options?: ClientOptions): MapsRouteClient;
|
|
234
|
+
export default MapsRoute;
|
|
235
|
+
|
|
236
|
+
// @public (undocumented)
|
|
237
|
+
export type MapsRouteClient = Client & {
|
|
238
|
+
path: Routes;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
// @public
|
|
242
|
+
export interface MapsRouteClientOptions extends ClientOptions {
|
|
243
|
+
apiVersion?: string;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
// @public (undocumented)
|
|
247
|
+
export interface RequestRouteDirectionsBatch {
|
|
248
|
+
get(options?: RouteGetRouteDirectionsBatchParameters): StreamableMethod<RouteGetRouteDirectionsBatch200Response | RouteGetRouteDirectionsBatch202Response>;
|
|
249
|
+
post(options: RouteRequestRouteDirectionsBatchParameters): StreamableMethod<RouteRequestRouteDirectionsBatch200Response | RouteRequestRouteDirectionsBatch202Response>;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// @public (undocumented)
|
|
253
|
+
export interface RequestRouteDirectionsBatchSync {
|
|
254
|
+
post(options: RouteRequestRouteDirectionsBatchSyncParameters): StreamableMethod<RouteRequestRouteDirectionsBatchSync200Response | RouteRequestRouteDirectionsBatchSync408Response | RouteRequestRouteDirectionsBatchSyncDefaultResponse>;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// @public (undocumented)
|
|
258
|
+
export interface RequestRouteMatrix {
|
|
259
|
+
get(options?: RouteGetRouteMatrixParameters): StreamableMethod<RouteGetRouteMatrix200Response | RouteGetRouteMatrix202Response>;
|
|
260
|
+
post(options: RouteRequestRouteMatrixParameters): StreamableMethod<RouteRequestRouteMatrix200Response | RouteRequestRouteMatrix202Response>;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// @public (undocumented)
|
|
264
|
+
export interface RequestRouteMatrixSync {
|
|
265
|
+
post(options: RouteRequestRouteMatrixSyncParameters): StreamableMethod<RouteRequestRouteMatrixSync200Response | RouteRequestRouteMatrixSync408Response | RouteRequestRouteMatrixSyncDefaultResponse>;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
// @public
|
|
269
|
+
export interface RouteDirectionParameters {
|
|
270
|
+
allowVignette?: Array<string>;
|
|
271
|
+
avoidAreas?: GeoJsonMultiPolygon;
|
|
272
|
+
avoidVignette?: Array<string>;
|
|
273
|
+
supportingPoints?: Record<string, unknown>;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// @public
|
|
277
|
+
export interface RouteDirectionsBatchItemOutput extends BatchResultItemOutput {
|
|
278
|
+
readonly response: RouteDirectionsBatchItemResponseOutput;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// @public
|
|
282
|
+
export interface RouteDirectionsBatchItemResponseOutput extends RouteDirectionsOutput, ErrorResponseOutput {
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
// @public
|
|
286
|
+
export interface RouteDirectionsBatchResultOutput extends BatchResultOutput {
|
|
287
|
+
readonly batchItems: Array<RouteDirectionsBatchItemOutput>;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// @public
|
|
291
|
+
export interface RouteDirectionsOutput {
|
|
292
|
+
readonly formatVersion?: string;
|
|
293
|
+
readonly optimizedWaypoints?: Array<RouteOptimizedWaypointOutput>;
|
|
294
|
+
report?: RouteReportOutput;
|
|
295
|
+
readonly routes: Array<RouteOutput>;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// @public
|
|
299
|
+
export interface RouteGetRouteDirections200Response extends HttpResponse {
|
|
300
|
+
// (undocumented)
|
|
301
|
+
body: RouteDirectionsOutput;
|
|
302
|
+
// (undocumented)
|
|
303
|
+
status: "200";
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// @public
|
|
307
|
+
export interface RouteGetRouteDirectionsBatch200Response extends HttpResponse {
|
|
308
|
+
// (undocumented)
|
|
309
|
+
body: RouteDirectionsBatchResultOutput;
|
|
310
|
+
// (undocumented)
|
|
311
|
+
status: "200";
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
// @public (undocumented)
|
|
315
|
+
export interface RouteGetRouteDirectionsBatch202Headers {
|
|
316
|
+
location?: string;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// @public
|
|
320
|
+
export interface RouteGetRouteDirectionsBatch202Response extends HttpResponse {
|
|
321
|
+
// (undocumented)
|
|
322
|
+
headers: RawHttpHeaders & RouteGetRouteDirectionsBatch202Headers;
|
|
323
|
+
// (undocumented)
|
|
324
|
+
status: "202";
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// @public (undocumented)
|
|
328
|
+
export type RouteGetRouteDirectionsBatchParameters = RequestParameters;
|
|
329
|
+
|
|
330
|
+
// @public
|
|
331
|
+
export interface RouteGetRouteDirectionsDefaultResponse extends HttpResponse {
|
|
332
|
+
// (undocumented)
|
|
333
|
+
body: ErrorResponseOutput;
|
|
334
|
+
// (undocumented)
|
|
335
|
+
status: string;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// @public (undocumented)
|
|
339
|
+
export type RouteGetRouteDirectionsParameters = RouteGetRouteDirectionsQueryParam & RequestParameters;
|
|
340
|
+
|
|
341
|
+
// @public (undocumented)
|
|
342
|
+
export interface RouteGetRouteDirectionsQueryParam {
|
|
343
|
+
// (undocumented)
|
|
344
|
+
queryParameters: RouteGetRouteDirectionsQueryParamProperties;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// @public (undocumented)
|
|
348
|
+
export interface RouteGetRouteDirectionsQueryParamProperties {
|
|
349
|
+
accelerationEfficiency?: number;
|
|
350
|
+
alternativeType?: "anyRoute" | "betterRoute";
|
|
351
|
+
arriveAt?: Date | string;
|
|
352
|
+
auxiliaryPowerInkW?: number;
|
|
353
|
+
auxiliaryPowerInLitersPerHour?: number;
|
|
354
|
+
avoid?: Array<"tollRoads" | "motorways" | "ferries" | "unpavedRoads" | "carpools" | "alreadyUsedRoads" | "borderCrossings">;
|
|
355
|
+
computeBestOrder?: boolean;
|
|
356
|
+
computeTravelTimeFor?: "none" | "all";
|
|
357
|
+
constantSpeedConsumptionInkWhPerHundredkm?: string;
|
|
358
|
+
constantSpeedConsumptionInLitersPerHundredkm?: string;
|
|
359
|
+
currentChargeInkWh?: number;
|
|
360
|
+
currentFuelInLiters?: number;
|
|
361
|
+
decelerationEfficiency?: number;
|
|
362
|
+
departAt?: Date | string;
|
|
363
|
+
downhillEfficiency?: number;
|
|
364
|
+
fuelEnergyDensityInMJoulesPerLiter?: number;
|
|
365
|
+
hilliness?: "low" | "normal" | "high";
|
|
366
|
+
instructionsType?: "coded" | "text" | "tagged";
|
|
367
|
+
language?: string;
|
|
368
|
+
maxAlternatives?: number;
|
|
369
|
+
maxChargeInkWh?: number;
|
|
370
|
+
minDeviationDistance?: number;
|
|
371
|
+
minDeviationTime?: number;
|
|
372
|
+
query: string;
|
|
373
|
+
report?: "effectiveSettings";
|
|
374
|
+
routeRepresentation?: "polyline" | "summaryOnly" | "none";
|
|
375
|
+
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
376
|
+
sectionType?: Array<"carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban">;
|
|
377
|
+
traffic?: boolean;
|
|
378
|
+
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
379
|
+
uphillEfficiency?: number;
|
|
380
|
+
vehicleAxleWeight?: number;
|
|
381
|
+
vehicleCommercial?: boolean;
|
|
382
|
+
vehicleEngineType?: "combustion" | "electric";
|
|
383
|
+
vehicleHeading?: number;
|
|
384
|
+
vehicleHeight?: number;
|
|
385
|
+
vehicleLength?: number;
|
|
386
|
+
vehicleLoadType?: "USHazmatClass1" | "USHazmatClass2" | "USHazmatClass3" | "USHazmatClass4" | "USHazmatClass5" | "USHazmatClass6" | "USHazmatClass7" | "USHazmatClass8" | "USHazmatClass9" | "otherHazmatExplosive" | "otherHazmatGeneral" | "otherHazmatHarmfulToWater";
|
|
387
|
+
vehicleMaxSpeed?: number;
|
|
388
|
+
vehicleWeight?: number;
|
|
389
|
+
vehicleWidth?: number;
|
|
390
|
+
windingness?: "low" | "normal" | "high";
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
// @public
|
|
394
|
+
export interface RouteGetRouteDirectionsWithAdditionalParameters200Response extends HttpResponse {
|
|
395
|
+
// (undocumented)
|
|
396
|
+
body: RouteDirectionsOutput;
|
|
397
|
+
// (undocumented)
|
|
398
|
+
status: "200";
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
// @public (undocumented)
|
|
402
|
+
export interface RouteGetRouteDirectionsWithAdditionalParametersBodyParam {
|
|
403
|
+
body: RouteDirectionParameters;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
// @public
|
|
407
|
+
export interface RouteGetRouteDirectionsWithAdditionalParametersDefaultResponse extends HttpResponse {
|
|
408
|
+
// (undocumented)
|
|
409
|
+
body: ErrorResponseOutput;
|
|
410
|
+
// (undocumented)
|
|
411
|
+
status: string;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
// @public (undocumented)
|
|
415
|
+
export interface RouteGetRouteDirectionsWithAdditionalParametersMediaTypesParam {
|
|
416
|
+
contentType?: "application/json";
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
// @public (undocumented)
|
|
420
|
+
export type RouteGetRouteDirectionsWithAdditionalParametersParameters = RouteGetRouteDirectionsWithAdditionalParametersQueryParam & RouteGetRouteDirectionsWithAdditionalParametersMediaTypesParam & RouteGetRouteDirectionsWithAdditionalParametersBodyParam & RequestParameters;
|
|
421
|
+
|
|
422
|
+
// @public (undocumented)
|
|
423
|
+
export interface RouteGetRouteDirectionsWithAdditionalParametersQueryParam {
|
|
424
|
+
// (undocumented)
|
|
425
|
+
queryParameters: RouteGetRouteDirectionsWithAdditionalParametersQueryParamProperties;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
// @public (undocumented)
|
|
429
|
+
export interface RouteGetRouteDirectionsWithAdditionalParametersQueryParamProperties {
|
|
430
|
+
accelerationEfficiency?: number;
|
|
431
|
+
alternativeType?: "anyRoute" | "betterRoute";
|
|
432
|
+
arriveAt?: Date | string;
|
|
433
|
+
auxiliaryPowerInkW?: number;
|
|
434
|
+
auxiliaryPowerInLitersPerHour?: number;
|
|
435
|
+
avoid?: Array<"tollRoads" | "motorways" | "ferries" | "unpavedRoads" | "carpools" | "alreadyUsedRoads" | "borderCrossings">;
|
|
436
|
+
computeBestOrder?: boolean;
|
|
437
|
+
computeTravelTimeFor?: "none" | "all";
|
|
438
|
+
constantSpeedConsumptionInkWhPerHundredkm?: string;
|
|
439
|
+
constantSpeedConsumptionInLitersPerHundredkm?: string;
|
|
440
|
+
currentChargeInkWh?: number;
|
|
441
|
+
currentFuelInLiters?: number;
|
|
442
|
+
decelerationEfficiency?: number;
|
|
443
|
+
departAt?: Date | string;
|
|
444
|
+
downhillEfficiency?: number;
|
|
445
|
+
fuelEnergyDensityInMJoulesPerLiter?: number;
|
|
446
|
+
hilliness?: "low" | "normal" | "high";
|
|
447
|
+
instructionsType?: "coded" | "text" | "tagged";
|
|
448
|
+
language?: string;
|
|
449
|
+
maxAlternatives?: number;
|
|
450
|
+
maxChargeInkWh?: number;
|
|
451
|
+
minDeviationDistance?: number;
|
|
452
|
+
minDeviationTime?: number;
|
|
453
|
+
query: string;
|
|
454
|
+
report?: "effectiveSettings";
|
|
455
|
+
routeRepresentation?: "polyline" | "summaryOnly" | "none";
|
|
456
|
+
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
457
|
+
sectionType?: Array<"carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban">;
|
|
458
|
+
traffic?: boolean;
|
|
459
|
+
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
460
|
+
uphillEfficiency?: number;
|
|
461
|
+
vehicleAxleWeight?: number;
|
|
462
|
+
vehicleCommercial?: boolean;
|
|
463
|
+
vehicleEngineType?: "combustion" | "electric";
|
|
464
|
+
vehicleHeading?: number;
|
|
465
|
+
vehicleHeight?: number;
|
|
466
|
+
vehicleLength?: number;
|
|
467
|
+
vehicleLoadType?: "USHazmatClass1" | "USHazmatClass2" | "USHazmatClass3" | "USHazmatClass4" | "USHazmatClass5" | "USHazmatClass6" | "USHazmatClass7" | "USHazmatClass8" | "USHazmatClass9" | "otherHazmatExplosive" | "otherHazmatGeneral" | "otherHazmatHarmfulToWater";
|
|
468
|
+
vehicleMaxSpeed?: number;
|
|
469
|
+
vehicleWeight?: number;
|
|
470
|
+
vehicleWidth?: number;
|
|
471
|
+
windingness?: "low" | "normal" | "high";
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
// @public
|
|
475
|
+
export interface RouteGetRouteMatrix200Response extends HttpResponse {
|
|
476
|
+
// (undocumented)
|
|
477
|
+
body: RouteMatrixResultOutput;
|
|
478
|
+
// (undocumented)
|
|
479
|
+
status: "200";
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// @public (undocumented)
|
|
483
|
+
export interface RouteGetRouteMatrix202Headers {
|
|
484
|
+
location?: string;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
// @public
|
|
488
|
+
export interface RouteGetRouteMatrix202Response extends HttpResponse {
|
|
489
|
+
// (undocumented)
|
|
490
|
+
headers: RawHttpHeaders & RouteGetRouteMatrix202Headers;
|
|
491
|
+
// (undocumented)
|
|
492
|
+
status: "202";
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
// @public (undocumented)
|
|
496
|
+
export type RouteGetRouteMatrixParameters = RequestParameters;
|
|
497
|
+
|
|
498
|
+
// @public
|
|
499
|
+
export interface RouteGetRouteRange200Response extends HttpResponse {
|
|
500
|
+
// (undocumented)
|
|
501
|
+
body: RouteRangeResultOutput;
|
|
502
|
+
// (undocumented)
|
|
503
|
+
status: "200";
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
// @public
|
|
507
|
+
export interface RouteGetRouteRangeDefaultResponse extends HttpResponse {
|
|
508
|
+
// (undocumented)
|
|
509
|
+
body: ErrorResponseOutput;
|
|
510
|
+
// (undocumented)
|
|
511
|
+
status: string;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
// @public (undocumented)
|
|
515
|
+
export type RouteGetRouteRangeParameters = RouteGetRouteRangeQueryParam & RequestParameters;
|
|
516
|
+
|
|
517
|
+
// @public (undocumented)
|
|
518
|
+
export interface RouteGetRouteRangeQueryParam {
|
|
519
|
+
// (undocumented)
|
|
520
|
+
queryParameters: RouteGetRouteRangeQueryParamProperties;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
// @public (undocumented)
|
|
524
|
+
export interface RouteGetRouteRangeQueryParamProperties {
|
|
525
|
+
accelerationEfficiency?: number;
|
|
526
|
+
auxiliaryPowerInkW?: number;
|
|
527
|
+
auxiliaryPowerInLitersPerHour?: number;
|
|
528
|
+
avoid?: Array<"tollRoads" | "motorways" | "ferries" | "unpavedRoads" | "carpools" | "alreadyUsedRoads" | "borderCrossings">;
|
|
529
|
+
constantSpeedConsumptionInkWhPerHundredkm?: string;
|
|
530
|
+
constantSpeedConsumptionInLitersPerHundredkm?: string;
|
|
531
|
+
currentChargeInkWh?: number;
|
|
532
|
+
currentFuelInLiters?: number;
|
|
533
|
+
decelerationEfficiency?: number;
|
|
534
|
+
departAt?: Date | string;
|
|
535
|
+
distanceBudgetInMeters?: number;
|
|
536
|
+
downhillEfficiency?: number;
|
|
537
|
+
energyBudgetInkWh?: number;
|
|
538
|
+
fuelBudgetInLiters?: number;
|
|
539
|
+
fuelEnergyDensityInMJoulesPerLiter?: number;
|
|
540
|
+
hilliness?: "low" | "normal" | "high";
|
|
541
|
+
maxChargeInkWh?: number;
|
|
542
|
+
query: Array<number>;
|
|
543
|
+
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
544
|
+
timeBudgetInSec?: number;
|
|
545
|
+
traffic?: boolean;
|
|
546
|
+
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
547
|
+
uphillEfficiency?: number;
|
|
548
|
+
vehicleAxleWeight?: number;
|
|
549
|
+
vehicleCommercial?: boolean;
|
|
550
|
+
vehicleEngineType?: "combustion" | "electric";
|
|
551
|
+
vehicleHeight?: number;
|
|
552
|
+
vehicleLength?: number;
|
|
553
|
+
vehicleLoadType?: "USHazmatClass1" | "USHazmatClass2" | "USHazmatClass3" | "USHazmatClass4" | "USHazmatClass5" | "USHazmatClass6" | "USHazmatClass7" | "USHazmatClass8" | "USHazmatClass9" | "otherHazmatExplosive" | "otherHazmatGeneral" | "otherHazmatHarmfulToWater";
|
|
554
|
+
vehicleMaxSpeed?: number;
|
|
555
|
+
vehicleWeight?: number;
|
|
556
|
+
vehicleWidth?: number;
|
|
557
|
+
windingness?: "low" | "normal" | "high";
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
// @public
|
|
561
|
+
export interface RouteGuidanceOutput {
|
|
562
|
+
readonly instructionGroups: Array<RouteInstructionGroupOutput>;
|
|
563
|
+
readonly instructions: Array<RouteInstructionOutput>;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
// @public
|
|
567
|
+
export interface RouteInstructionGroupOutput {
|
|
568
|
+
readonly firstInstructionIndex?: number;
|
|
569
|
+
readonly groupLengthInMeters?: number;
|
|
570
|
+
readonly groupMessage?: string;
|
|
571
|
+
readonly lastInstructionIndex?: number;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
// @public
|
|
575
|
+
export interface RouteInstructionOutput {
|
|
576
|
+
readonly combinedMessage?: string;
|
|
577
|
+
readonly countryCode?: string;
|
|
578
|
+
readonly drivingSide?: "LEFT" | "RIGHT";
|
|
579
|
+
readonly exitNumber?: string;
|
|
580
|
+
instructionType?: "TURN" | "ROAD_CHANGE" | "LOCATION_DEPARTURE" | "LOCATION_ARRIVAL" | "DIRECTION_INFO" | "LOCATION_WAYPOINT";
|
|
581
|
+
readonly junctionType?: "REGULAR" | "ROUNDABOUT" | "BIFURCATION";
|
|
582
|
+
readonly 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";
|
|
583
|
+
readonly message?: string;
|
|
584
|
+
point?: LatLongPairOutput;
|
|
585
|
+
readonly pointIndex?: number;
|
|
586
|
+
readonly possibleCombineWithNext?: boolean;
|
|
587
|
+
readonly roadNumbers?: Array<string>;
|
|
588
|
+
readonly roundaboutExitNumber?: number;
|
|
589
|
+
readonly routeOffsetInMeters?: number;
|
|
590
|
+
readonly signpostText?: string;
|
|
591
|
+
readonly stateCode?: string;
|
|
592
|
+
readonly street?: string;
|
|
593
|
+
readonly travelTimeInSeconds?: number;
|
|
594
|
+
readonly turnAngleInDecimalDegrees?: number;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
// @public
|
|
598
|
+
export interface RouteLegOutput {
|
|
599
|
+
readonly points: Array<LatLongPairOutput>;
|
|
600
|
+
readonly summary: RouteSummaryOutput;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
// @public
|
|
604
|
+
export interface RouteMatrixOutput {
|
|
605
|
+
readonly response?: RouteMatrixResultResponseOutput;
|
|
606
|
+
readonly statusCode: number;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
// @public
|
|
610
|
+
export interface RouteMatrixQuery {
|
|
611
|
+
destinations: GeoJsonMultiPoint;
|
|
612
|
+
origins: GeoJsonMultiPoint;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
// @public
|
|
616
|
+
export interface RouteMatrixResultOutput {
|
|
617
|
+
readonly formatVersion?: string;
|
|
618
|
+
readonly matrix: Array<Array<RouteMatrixOutput>>;
|
|
619
|
+
readonly summary: RouteMatrixSummaryOutput;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
// @public
|
|
623
|
+
export interface RouteMatrixResultResponseOutput {
|
|
624
|
+
readonly routeSummary?: RouteSummaryOutput;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
// @public
|
|
628
|
+
export interface RouteMatrixSummaryOutput {
|
|
629
|
+
readonly successfulRoutes: number;
|
|
630
|
+
readonly totalRoutes: number;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
// @public
|
|
634
|
+
export interface RouteOptimizedWaypointOutput {
|
|
635
|
+
readonly optimizedIndex: number;
|
|
636
|
+
readonly providedIndex: number;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
// @public (undocumented)
|
|
640
|
+
export interface RouteOutput {
|
|
641
|
+
readonly guidance?: RouteGuidanceOutput;
|
|
642
|
+
readonly legs: Array<RouteLegOutput>;
|
|
643
|
+
readonly sections?: Array<RouteSectionOutput>;
|
|
644
|
+
readonly summary: RouteSummaryOutput;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
// @public
|
|
648
|
+
export interface RouteRangeOutput {
|
|
649
|
+
readonly boundary: Array<LatLongPairOutput>;
|
|
650
|
+
center: LatLongPairOutput;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
// @public
|
|
654
|
+
export interface RouteRangeResultOutput {
|
|
655
|
+
readonly formatVersion?: string;
|
|
656
|
+
reachableRange: RouteRangeOutput;
|
|
657
|
+
report?: RouteReportOutput;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
// @public
|
|
661
|
+
export interface RouteReportOutput {
|
|
662
|
+
readonly effectiveSettings: Array<EffectiveSettingOutput>;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
// @public
|
|
666
|
+
export interface RouteRequestRouteDirectionsBatch200Response extends HttpResponse {
|
|
667
|
+
// (undocumented)
|
|
668
|
+
body: RouteDirectionsBatchResultOutput;
|
|
669
|
+
// (undocumented)
|
|
670
|
+
status: "200";
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
// @public (undocumented)
|
|
674
|
+
export interface RouteRequestRouteDirectionsBatch202Headers {
|
|
675
|
+
location?: string;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
// @public
|
|
679
|
+
export interface RouteRequestRouteDirectionsBatch202Response extends HttpResponse {
|
|
680
|
+
// (undocumented)
|
|
681
|
+
headers: RawHttpHeaders & RouteRequestRouteDirectionsBatch202Headers;
|
|
682
|
+
// (undocumented)
|
|
683
|
+
status: "202";
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
// @public (undocumented)
|
|
687
|
+
export interface RouteRequestRouteDirectionsBatchBodyParam {
|
|
688
|
+
body: BatchRequest;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
// @public (undocumented)
|
|
692
|
+
export interface RouteRequestRouteDirectionsBatchMediaTypesParam {
|
|
693
|
+
contentType?: "application/json";
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
// @public (undocumented)
|
|
697
|
+
export type RouteRequestRouteDirectionsBatchParameters = RouteRequestRouteDirectionsBatchMediaTypesParam & RouteRequestRouteDirectionsBatchBodyParam & RequestParameters;
|
|
698
|
+
|
|
699
|
+
// @public
|
|
700
|
+
export interface RouteRequestRouteDirectionsBatchSync200Response extends HttpResponse {
|
|
701
|
+
// (undocumented)
|
|
702
|
+
body: RouteDirectionsBatchResultOutput;
|
|
703
|
+
// (undocumented)
|
|
704
|
+
status: "200";
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
// @public
|
|
708
|
+
export interface RouteRequestRouteDirectionsBatchSync408Response extends HttpResponse {
|
|
709
|
+
// (undocumented)
|
|
710
|
+
body: ErrorResponseOutput;
|
|
711
|
+
// (undocumented)
|
|
712
|
+
status: "408";
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
// @public (undocumented)
|
|
716
|
+
export interface RouteRequestRouteDirectionsBatchSyncBodyParam {
|
|
717
|
+
body: BatchRequest;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
// @public
|
|
721
|
+
export interface RouteRequestRouteDirectionsBatchSyncDefaultResponse extends HttpResponse {
|
|
722
|
+
// (undocumented)
|
|
723
|
+
body: ErrorResponseOutput;
|
|
724
|
+
// (undocumented)
|
|
725
|
+
status: string;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
// @public (undocumented)
|
|
729
|
+
export interface RouteRequestRouteDirectionsBatchSyncMediaTypesParam {
|
|
730
|
+
contentType?: "application/json";
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
// @public (undocumented)
|
|
734
|
+
export type RouteRequestRouteDirectionsBatchSyncParameters = RouteRequestRouteDirectionsBatchSyncMediaTypesParam & RouteRequestRouteDirectionsBatchSyncBodyParam & RequestParameters;
|
|
735
|
+
|
|
736
|
+
// @public
|
|
737
|
+
export interface RouteRequestRouteMatrix200Response extends HttpResponse {
|
|
738
|
+
// (undocumented)
|
|
739
|
+
body: RouteMatrixResultOutput;
|
|
740
|
+
// (undocumented)
|
|
741
|
+
status: "200";
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
// @public (undocumented)
|
|
745
|
+
export interface RouteRequestRouteMatrix202Headers {
|
|
746
|
+
location?: string;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
// @public
|
|
750
|
+
export interface RouteRequestRouteMatrix202Response extends HttpResponse {
|
|
751
|
+
// (undocumented)
|
|
752
|
+
headers: RawHttpHeaders & RouteRequestRouteMatrix202Headers;
|
|
753
|
+
// (undocumented)
|
|
754
|
+
status: "202";
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
// @public (undocumented)
|
|
758
|
+
export interface RouteRequestRouteMatrixBodyParam {
|
|
759
|
+
body: RouteMatrixQuery;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
// @public (undocumented)
|
|
763
|
+
export interface RouteRequestRouteMatrixMediaTypesParam {
|
|
764
|
+
contentType?: "application/json";
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
// @public (undocumented)
|
|
768
|
+
export type RouteRequestRouteMatrixParameters = RouteRequestRouteMatrixQueryParam & RouteRequestRouteMatrixMediaTypesParam & RouteRequestRouteMatrixBodyParam & RequestParameters;
|
|
769
|
+
|
|
770
|
+
// @public (undocumented)
|
|
771
|
+
export interface RouteRequestRouteMatrixQueryParam {
|
|
772
|
+
// (undocumented)
|
|
773
|
+
queryParameters?: RouteRequestRouteMatrixQueryParamProperties;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
// @public (undocumented)
|
|
777
|
+
export interface RouteRequestRouteMatrixQueryParamProperties {
|
|
778
|
+
arriveAt?: Date | string;
|
|
779
|
+
avoid?: Array<"tollRoads" | "motorways" | "ferries" | "unpavedRoads" | "carpools" | "alreadyUsedRoads" | "borderCrossings">;
|
|
780
|
+
computeTravelTimeFor?: "none" | "all";
|
|
781
|
+
departAt?: Date | string;
|
|
782
|
+
hilliness?: "low" | "normal" | "high";
|
|
783
|
+
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
784
|
+
sectionType?: Array<"carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban">;
|
|
785
|
+
traffic?: boolean;
|
|
786
|
+
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
787
|
+
vehicleAxleWeight?: number;
|
|
788
|
+
vehicleHeight?: number;
|
|
789
|
+
vehicleLength?: number;
|
|
790
|
+
vehicleLoadType?: "USHazmatClass1" | "USHazmatClass2" | "USHazmatClass3" | "USHazmatClass4" | "USHazmatClass5" | "USHazmatClass6" | "USHazmatClass7" | "USHazmatClass8" | "USHazmatClass9" | "otherHazmatExplosive" | "otherHazmatGeneral" | "otherHazmatHarmfulToWater";
|
|
791
|
+
vehicleMaxSpeed?: number;
|
|
792
|
+
vehicleWeight?: number;
|
|
793
|
+
vehicleWidth?: number;
|
|
794
|
+
waitForResults?: boolean;
|
|
795
|
+
windingness?: "low" | "normal" | "high";
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
// @public
|
|
799
|
+
export interface RouteRequestRouteMatrixSync200Response extends HttpResponse {
|
|
800
|
+
// (undocumented)
|
|
801
|
+
body: RouteMatrixResultOutput;
|
|
802
|
+
// (undocumented)
|
|
803
|
+
status: "200";
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
// @public
|
|
807
|
+
export interface RouteRequestRouteMatrixSync408Response extends HttpResponse {
|
|
808
|
+
// (undocumented)
|
|
809
|
+
body: ErrorResponseOutput;
|
|
810
|
+
// (undocumented)
|
|
811
|
+
status: "408";
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
// @public (undocumented)
|
|
815
|
+
export interface RouteRequestRouteMatrixSyncBodyParam {
|
|
816
|
+
body: RouteMatrixQuery;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
// @public
|
|
820
|
+
export interface RouteRequestRouteMatrixSyncDefaultResponse extends HttpResponse {
|
|
821
|
+
// (undocumented)
|
|
822
|
+
body: ErrorResponseOutput;
|
|
823
|
+
// (undocumented)
|
|
824
|
+
status: string;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
// @public (undocumented)
|
|
828
|
+
export interface RouteRequestRouteMatrixSyncMediaTypesParam {
|
|
829
|
+
contentType?: "application/json";
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
// @public (undocumented)
|
|
833
|
+
export type RouteRequestRouteMatrixSyncParameters = RouteRequestRouteMatrixSyncQueryParam & RouteRequestRouteMatrixSyncMediaTypesParam & RouteRequestRouteMatrixSyncBodyParam & RequestParameters;
|
|
834
|
+
|
|
835
|
+
// @public (undocumented)
|
|
836
|
+
export interface RouteRequestRouteMatrixSyncQueryParam {
|
|
837
|
+
// (undocumented)
|
|
838
|
+
queryParameters?: RouteRequestRouteMatrixSyncQueryParamProperties;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
// @public (undocumented)
|
|
842
|
+
export interface RouteRequestRouteMatrixSyncQueryParamProperties {
|
|
843
|
+
arriveAt?: Date | string;
|
|
844
|
+
avoid?: Array<"tollRoads" | "motorways" | "ferries" | "unpavedRoads" | "carpools" | "alreadyUsedRoads" | "borderCrossings">;
|
|
845
|
+
computeTravelTimeFor?: "none" | "all";
|
|
846
|
+
departAt?: Date | string;
|
|
847
|
+
hilliness?: "low" | "normal" | "high";
|
|
848
|
+
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
849
|
+
sectionType?: Array<"carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban">;
|
|
850
|
+
traffic?: boolean;
|
|
851
|
+
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
852
|
+
vehicleAxleWeight?: number;
|
|
853
|
+
vehicleHeight?: number;
|
|
854
|
+
vehicleLength?: number;
|
|
855
|
+
vehicleLoadType?: "USHazmatClass1" | "USHazmatClass2" | "USHazmatClass3" | "USHazmatClass4" | "USHazmatClass5" | "USHazmatClass6" | "USHazmatClass7" | "USHazmatClass8" | "USHazmatClass9" | "otherHazmatExplosive" | "otherHazmatGeneral" | "otherHazmatHarmfulToWater";
|
|
856
|
+
vehicleMaxSpeed?: number;
|
|
857
|
+
vehicleWeight?: number;
|
|
858
|
+
vehicleWidth?: number;
|
|
859
|
+
waitForResults?: boolean;
|
|
860
|
+
windingness?: "low" | "normal" | "high";
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
// @public (undocumented)
|
|
864
|
+
export interface Routes {
|
|
865
|
+
(path: "/route/matrix/{format}", format: "json"): RequestRouteMatrix;
|
|
866
|
+
(path: "/route/matrix/sync/{format}", format: "json"): RequestRouteMatrixSync;
|
|
867
|
+
(path: "/route/directions/{format}", format: "json" | "xml"): GetRouteDirections;
|
|
868
|
+
(path: "/route/range/{format}", format: "json" | "xml"): GetRouteRange;
|
|
869
|
+
(path: "/route/directions/batch/{format}", format: "json"): RequestRouteDirectionsBatch;
|
|
870
|
+
(path: "/route/directions/batch/sync/{format}", format: "json"): RequestRouteDirectionsBatchSync;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
// @public
|
|
874
|
+
export interface RouteSectionOutput {
|
|
875
|
+
readonly delayInSeconds?: number;
|
|
876
|
+
readonly effectiveSpeedInKmh?: number;
|
|
877
|
+
readonly endPointIndex: number;
|
|
878
|
+
readonly magnitudeOfDelay?: "0" | "1" | "2" | "3" | "4";
|
|
879
|
+
readonly sectionType: "CAR_TRAIN" | "COUNTRY" | "FERRY" | "MOTORWAY" | "PEDESTRIAN" | "TOLL_ROAD" | "TOLL_VIGNETTE" | "TRAFFIC" | "TRAVEL_MODE" | "TUNNEL" | "CARPOOL" | "URBAN";
|
|
880
|
+
readonly simpleCategory?: "JAM" | "ROAD_WORK" | "ROAD_CLOSURE" | "OTHER";
|
|
881
|
+
readonly startPointIndex: number;
|
|
882
|
+
tec?: RouteSectionTecOutput;
|
|
883
|
+
readonly travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian" | "other";
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
// @public
|
|
887
|
+
export interface RouteSectionTecCauseOutput {
|
|
888
|
+
readonly mainCauseCode?: number;
|
|
889
|
+
readonly subCauseCode?: number;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
// @public
|
|
893
|
+
export interface RouteSectionTecOutput {
|
|
894
|
+
causes?: Array<RouteSectionTecCauseOutput>;
|
|
895
|
+
readonly effectCode?: number;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
// @public
|
|
899
|
+
export interface RouteSummaryOutput {
|
|
900
|
+
readonly arrivalTime: string;
|
|
901
|
+
readonly departureTime: string;
|
|
902
|
+
readonly lengthInMeters: number;
|
|
903
|
+
readonly trafficDelayInSeconds: number;
|
|
904
|
+
readonly travelTimeInSeconds: number;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
// @public
|
|
908
|
+
export interface SimplePollerLike<TState extends OperationState<TResult>, TResult> {
|
|
909
|
+
getOperationState(): TState;
|
|
910
|
+
getResult(): TResult | undefined;
|
|
911
|
+
isDone(): boolean;
|
|
912
|
+
// @deprecated
|
|
913
|
+
isStopped(): boolean;
|
|
914
|
+
onProgress(callback: (state: TState) => void): CancelOnProgress;
|
|
915
|
+
poll(options?: {
|
|
916
|
+
abortSignal?: AbortSignalLike;
|
|
917
|
+
}): Promise<TState>;
|
|
918
|
+
pollUntilDone(pollOptions?: {
|
|
919
|
+
abortSignal?: AbortSignalLike;
|
|
920
|
+
}): Promise<TResult>;
|
|
921
|
+
serialize(): Promise<string>;
|
|
922
|
+
// @deprecated
|
|
923
|
+
stopPolling(): void;
|
|
924
|
+
submitted(): Promise<void>;
|
|
925
|
+
// @deprecated
|
|
926
|
+
toString(): string;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
// @public
|
|
930
|
+
export function toColonDelimitedLatLonString(coordinates: LatLon[]): string;
|
|
931
|
+
|
|
932
|
+
// (No @packageDocumentation comment for this package)
|
|
933
|
+
|
|
934
|
+
```
|