@azure-rest/maps-route 1.0.0-beta.2 → 1.0.0-beta.4
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/README.md +68 -20
- package/dist/index.js +169 -63
- package/dist/index.js.map +1 -1
- package/dist-esm/src/helpers.js +1 -1
- package/dist-esm/src/helpers.js.map +1 -1
- package/dist-esm/src/index.js +2 -2
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/mapsRoute.js +16 -5
- package/dist-esm/src/mapsRoute.js.map +1 -1
- package/package.json +35 -39
- package/review/maps-route.api.md +117 -90
- package/types/maps-route-rest.d.ts +517 -271
- package/dist-esm/src/generated/clientDefinitions.js +0 -4
- package/dist-esm/src/generated/clientDefinitions.js.map +0 -1
- package/dist-esm/src/generated/index.js +0 -13
- package/dist-esm/src/generated/index.js.map +0 -1
- package/dist-esm/src/generated/isUnexpected.js +0 -77
- package/dist-esm/src/generated/isUnexpected.js.map +0 -1
- package/dist-esm/src/generated/mapsRouteClient.js +0 -25
- package/dist-esm/src/generated/mapsRouteClient.js.map +0 -1
- package/dist-esm/src/generated/models.js +0 -4
- package/dist-esm/src/generated/models.js.map +0 -1
- package/dist-esm/src/generated/outputModels.js +0 -4
- package/dist-esm/src/generated/outputModels.js.map +0 -1
- package/dist-esm/src/generated/parameters.js +0 -4
- package/dist-esm/src/generated/parameters.js.map +0 -1
- package/dist-esm/src/generated/pollingHelper.js +0 -51
- package/dist-esm/src/generated/pollingHelper.js.map +0 -1
- package/dist-esm/src/generated/responses.js +0 -4
- package/dist-esm/src/generated/responses.js.map +0 -1
package/review/maps-route.api.md
CHANGED
|
@@ -4,18 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
-
import {
|
|
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';
|
|
8
11
|
import { Client } from '@azure-rest/core-client';
|
|
9
12
|
import { ClientOptions } from '@azure-rest/core-client';
|
|
13
|
+
import { CreateHttpPollerOptions } from '@azure/core-lro';
|
|
10
14
|
import { HttpResponse } from '@azure-rest/core-client';
|
|
11
|
-
import { LatLon } from '@azure/maps-common';
|
|
12
|
-
import {
|
|
13
|
-
import { PollerLike } from '@azure/core-lro';
|
|
14
|
-
import { PollOperationState } from '@azure/core-lro';
|
|
15
|
+
import type { LatLon } from '@azure/maps-common';
|
|
16
|
+
import { OperationState } from '@azure/core-lro';
|
|
15
17
|
import { RawHttpHeaders } from '@azure/core-rest-pipeline';
|
|
16
18
|
import { RequestParameters } from '@azure-rest/core-client';
|
|
17
19
|
import { StreamableMethod } from '@azure-rest/core-client';
|
|
18
|
-
import { TokenCredential } from '@azure/core-auth';
|
|
20
|
+
import type { TokenCredential } from '@azure/core-auth';
|
|
19
21
|
|
|
20
22
|
// @public
|
|
21
23
|
export interface BatchRequest {
|
|
@@ -29,33 +31,36 @@ export interface BatchRequestItem {
|
|
|
29
31
|
|
|
30
32
|
// @public
|
|
31
33
|
export interface BatchResultItemOutput {
|
|
32
|
-
statusCode: number;
|
|
34
|
+
readonly statusCode: number;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
// @public
|
|
36
38
|
export interface BatchResultOutput {
|
|
37
|
-
summary: BatchResultSummaryOutput;
|
|
39
|
+
readonly summary: BatchResultSummaryOutput;
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
// @public
|
|
41
43
|
export interface BatchResultSummaryOutput {
|
|
42
|
-
successfulRequests: number;
|
|
43
|
-
totalRequests: number;
|
|
44
|
+
readonly successfulRequests: number;
|
|
45
|
+
readonly totalRequests: number;
|
|
44
46
|
}
|
|
45
47
|
|
|
48
|
+
// @public (undocumented)
|
|
49
|
+
export function buildMultiCollection(items: string[], parameterName: string): string;
|
|
50
|
+
|
|
46
51
|
// @public
|
|
47
52
|
export function createRouteDirectionsBatchRequest(queryParamProperties: RouteGetRouteDirectionsQueryParamProperties[]): BatchRequest;
|
|
48
53
|
|
|
49
54
|
// @public
|
|
50
55
|
export interface EffectiveSettingOutput {
|
|
51
|
-
key: string;
|
|
52
|
-
value: string;
|
|
56
|
+
readonly key: string;
|
|
57
|
+
readonly value: string;
|
|
53
58
|
}
|
|
54
59
|
|
|
55
60
|
// @public
|
|
56
61
|
export interface ErrorDetailOutput {
|
|
57
|
-
code?: string;
|
|
58
|
-
message?: string;
|
|
62
|
+
readonly code?: string;
|
|
63
|
+
readonly message?: string;
|
|
59
64
|
}
|
|
60
65
|
|
|
61
66
|
// @public
|
|
@@ -184,7 +189,7 @@ export interface GeoJsonPolygonData {
|
|
|
184
189
|
}
|
|
185
190
|
|
|
186
191
|
// @public
|
|
187
|
-
export function getLongRunningPoller<TResult extends HttpResponse>(client: Client, initialResponse: TResult, options?:
|
|
192
|
+
export function getLongRunningPoller<TResult extends HttpResponse>(client: Client, initialResponse: TResult, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
|
|
188
193
|
|
|
189
194
|
// @public (undocumented)
|
|
190
195
|
export interface GetRouteDirections {
|
|
@@ -223,6 +228,9 @@ function MapsRoute(credential: AzureKeyCredential, options?: ClientOptions): Map
|
|
|
223
228
|
|
|
224
229
|
// @public
|
|
225
230
|
function MapsRoute(credential: TokenCredential, mapsAccountClientId: string, options?: ClientOptions): MapsRouteClient;
|
|
231
|
+
|
|
232
|
+
// @public
|
|
233
|
+
function MapsRoute(credential: AzureSASCredential, options?: ClientOptions): MapsRouteClient;
|
|
226
234
|
export default MapsRoute;
|
|
227
235
|
|
|
228
236
|
// @public (undocumented)
|
|
@@ -230,6 +238,11 @@ export type MapsRouteClient = Client & {
|
|
|
230
238
|
path: Routes;
|
|
231
239
|
};
|
|
232
240
|
|
|
241
|
+
// @public
|
|
242
|
+
export interface MapsRouteClientOptions extends ClientOptions {
|
|
243
|
+
apiVersion?: string;
|
|
244
|
+
}
|
|
245
|
+
|
|
233
246
|
// @public (undocumented)
|
|
234
247
|
export interface RequestRouteDirectionsBatch {
|
|
235
248
|
get(options?: RouteGetRouteDirectionsBatchParameters): StreamableMethod<RouteGetRouteDirectionsBatch200Response | RouteGetRouteDirectionsBatch202Response>;
|
|
@@ -262,7 +275,7 @@ export interface RouteDirectionParameters {
|
|
|
262
275
|
|
|
263
276
|
// @public
|
|
264
277
|
export interface RouteDirectionsBatchItemOutput extends BatchResultItemOutput {
|
|
265
|
-
response: RouteDirectionsBatchItemResponseOutput;
|
|
278
|
+
readonly response: RouteDirectionsBatchItemResponseOutput;
|
|
266
279
|
}
|
|
267
280
|
|
|
268
281
|
// @public
|
|
@@ -271,15 +284,15 @@ export interface RouteDirectionsBatchItemResponseOutput extends RouteDirectionsO
|
|
|
271
284
|
|
|
272
285
|
// @public
|
|
273
286
|
export interface RouteDirectionsBatchResultOutput extends BatchResultOutput {
|
|
274
|
-
batchItems: Array<RouteDirectionsBatchItemOutput>;
|
|
287
|
+
readonly batchItems: Array<RouteDirectionsBatchItemOutput>;
|
|
275
288
|
}
|
|
276
289
|
|
|
277
290
|
// @public
|
|
278
291
|
export interface RouteDirectionsOutput {
|
|
279
|
-
formatVersion?: string;
|
|
280
|
-
optimizedWaypoints?: Array<RouteOptimizedWaypointOutput>;
|
|
292
|
+
readonly formatVersion?: string;
|
|
293
|
+
readonly optimizedWaypoints?: Array<RouteOptimizedWaypointOutput>;
|
|
281
294
|
report?: RouteReportOutput;
|
|
282
|
-
routes: Array<RouteOutput>;
|
|
295
|
+
readonly routes: Array<RouteOutput>;
|
|
283
296
|
}
|
|
284
297
|
|
|
285
298
|
// @public
|
|
@@ -305,8 +318,6 @@ export interface RouteGetRouteDirectionsBatch202Headers {
|
|
|
305
318
|
|
|
306
319
|
// @public
|
|
307
320
|
export interface RouteGetRouteDirectionsBatch202Response extends HttpResponse {
|
|
308
|
-
// (undocumented)
|
|
309
|
-
body: Record<string, unknown>;
|
|
310
321
|
// (undocumented)
|
|
311
322
|
headers: RawHttpHeaders & RouteGetRouteDirectionsBatch202Headers;
|
|
312
323
|
// (undocumented)
|
|
@@ -362,7 +373,7 @@ export interface RouteGetRouteDirectionsQueryParamProperties {
|
|
|
362
373
|
report?: "effectiveSettings";
|
|
363
374
|
routeRepresentation?: "polyline" | "summaryOnly" | "none";
|
|
364
375
|
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
365
|
-
sectionType?: "carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban"
|
|
376
|
+
sectionType?: Array<"carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban">;
|
|
366
377
|
traffic?: boolean;
|
|
367
378
|
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
368
379
|
uphillEfficiency?: number;
|
|
@@ -443,7 +454,7 @@ export interface RouteGetRouteDirectionsWithAdditionalParametersQueryParamProper
|
|
|
443
454
|
report?: "effectiveSettings";
|
|
444
455
|
routeRepresentation?: "polyline" | "summaryOnly" | "none";
|
|
445
456
|
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
446
|
-
sectionType?: "carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban"
|
|
457
|
+
sectionType?: Array<"carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban">;
|
|
447
458
|
traffic?: boolean;
|
|
448
459
|
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
449
460
|
uphillEfficiency?: number;
|
|
@@ -475,8 +486,6 @@ export interface RouteGetRouteMatrix202Headers {
|
|
|
475
486
|
|
|
476
487
|
// @public
|
|
477
488
|
export interface RouteGetRouteMatrix202Response extends HttpResponse {
|
|
478
|
-
// (undocumented)
|
|
479
|
-
body: Record<string, unknown>;
|
|
480
489
|
// (undocumented)
|
|
481
490
|
headers: RawHttpHeaders & RouteGetRouteMatrix202Headers;
|
|
482
491
|
// (undocumented)
|
|
@@ -550,51 +559,51 @@ export interface RouteGetRouteRangeQueryParamProperties {
|
|
|
550
559
|
|
|
551
560
|
// @public
|
|
552
561
|
export interface RouteGuidanceOutput {
|
|
553
|
-
instructionGroups: Array<RouteInstructionGroupOutput>;
|
|
554
|
-
instructions: Array<RouteInstructionOutput>;
|
|
562
|
+
readonly instructionGroups: Array<RouteInstructionGroupOutput>;
|
|
563
|
+
readonly instructions: Array<RouteInstructionOutput>;
|
|
555
564
|
}
|
|
556
565
|
|
|
557
566
|
// @public
|
|
558
567
|
export interface RouteInstructionGroupOutput {
|
|
559
|
-
firstInstructionIndex?: number;
|
|
560
|
-
groupLengthInMeters?: number;
|
|
561
|
-
groupMessage?: string;
|
|
562
|
-
lastInstructionIndex?: number;
|
|
568
|
+
readonly firstInstructionIndex?: number;
|
|
569
|
+
readonly groupLengthInMeters?: number;
|
|
570
|
+
readonly groupMessage?: string;
|
|
571
|
+
readonly lastInstructionIndex?: number;
|
|
563
572
|
}
|
|
564
573
|
|
|
565
574
|
// @public
|
|
566
575
|
export interface RouteInstructionOutput {
|
|
567
|
-
combinedMessage?: string;
|
|
568
|
-
countryCode?: string;
|
|
569
|
-
drivingSide?: "LEFT" | "RIGHT";
|
|
570
|
-
exitNumber?: string;
|
|
576
|
+
readonly combinedMessage?: string;
|
|
577
|
+
readonly countryCode?: string;
|
|
578
|
+
readonly drivingSide?: "LEFT" | "RIGHT";
|
|
579
|
+
readonly exitNumber?: string;
|
|
571
580
|
instructionType?: "TURN" | "ROAD_CHANGE" | "LOCATION_DEPARTURE" | "LOCATION_ARRIVAL" | "DIRECTION_INFO" | "LOCATION_WAYPOINT";
|
|
572
|
-
junctionType?: "REGULAR" | "ROUNDABOUT" | "BIFURCATION";
|
|
573
|
-
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";
|
|
574
|
-
message?: string;
|
|
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;
|
|
575
584
|
point?: LatLongPairOutput;
|
|
576
|
-
pointIndex?: number;
|
|
577
|
-
possibleCombineWithNext?: boolean;
|
|
578
|
-
roadNumbers?: Array<string>;
|
|
579
|
-
roundaboutExitNumber?:
|
|
580
|
-
routeOffsetInMeters?: number;
|
|
581
|
-
signpostText?: string;
|
|
582
|
-
stateCode?: string;
|
|
583
|
-
street?: string;
|
|
584
|
-
travelTimeInSeconds?: number;
|
|
585
|
-
turnAngleInDecimalDegrees?: number;
|
|
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;
|
|
586
595
|
}
|
|
587
596
|
|
|
588
597
|
// @public
|
|
589
598
|
export interface RouteLegOutput {
|
|
590
|
-
points: Array<LatLongPairOutput>;
|
|
591
|
-
summary: RouteSummaryOutput;
|
|
599
|
+
readonly points: Array<LatLongPairOutput>;
|
|
600
|
+
readonly summary: RouteSummaryOutput;
|
|
592
601
|
}
|
|
593
602
|
|
|
594
603
|
// @public
|
|
595
604
|
export interface RouteMatrixOutput {
|
|
596
|
-
response?: RouteMatrixResultResponseOutput;
|
|
597
|
-
statusCode: number;
|
|
605
|
+
readonly response?: RouteMatrixResultResponseOutput;
|
|
606
|
+
readonly statusCode: number;
|
|
598
607
|
}
|
|
599
608
|
|
|
600
609
|
// @public
|
|
@@ -605,52 +614,52 @@ export interface RouteMatrixQuery {
|
|
|
605
614
|
|
|
606
615
|
// @public
|
|
607
616
|
export interface RouteMatrixResultOutput {
|
|
608
|
-
formatVersion?: string;
|
|
609
|
-
matrix: Array<Array<RouteMatrixOutput>>;
|
|
610
|
-
summary: RouteMatrixSummaryOutput;
|
|
617
|
+
readonly formatVersion?: string;
|
|
618
|
+
readonly matrix: Array<Array<RouteMatrixOutput>>;
|
|
619
|
+
readonly summary: RouteMatrixSummaryOutput;
|
|
611
620
|
}
|
|
612
621
|
|
|
613
622
|
// @public
|
|
614
623
|
export interface RouteMatrixResultResponseOutput {
|
|
615
|
-
routeSummary?: RouteSummaryOutput;
|
|
624
|
+
readonly routeSummary?: RouteSummaryOutput;
|
|
616
625
|
}
|
|
617
626
|
|
|
618
627
|
// @public
|
|
619
628
|
export interface RouteMatrixSummaryOutput {
|
|
620
|
-
successfulRoutes: number;
|
|
621
|
-
totalRoutes: number;
|
|
629
|
+
readonly successfulRoutes: number;
|
|
630
|
+
readonly totalRoutes: number;
|
|
622
631
|
}
|
|
623
632
|
|
|
624
633
|
// @public
|
|
625
634
|
export interface RouteOptimizedWaypointOutput {
|
|
626
|
-
optimizedIndex: number;
|
|
627
|
-
providedIndex: number;
|
|
635
|
+
readonly optimizedIndex: number;
|
|
636
|
+
readonly providedIndex: number;
|
|
628
637
|
}
|
|
629
638
|
|
|
630
639
|
// @public (undocumented)
|
|
631
640
|
export interface RouteOutput {
|
|
632
|
-
guidance?: RouteGuidanceOutput;
|
|
633
|
-
legs: Array<RouteLegOutput>;
|
|
634
|
-
sections?: Array<RouteSectionOutput>;
|
|
635
|
-
summary: RouteSummaryOutput;
|
|
641
|
+
readonly guidance?: RouteGuidanceOutput;
|
|
642
|
+
readonly legs: Array<RouteLegOutput>;
|
|
643
|
+
readonly sections?: Array<RouteSectionOutput>;
|
|
644
|
+
readonly summary: RouteSummaryOutput;
|
|
636
645
|
}
|
|
637
646
|
|
|
638
647
|
// @public
|
|
639
648
|
export interface RouteRangeOutput {
|
|
640
|
-
boundary: Array<LatLongPairOutput>;
|
|
649
|
+
readonly boundary: Array<LatLongPairOutput>;
|
|
641
650
|
center: LatLongPairOutput;
|
|
642
651
|
}
|
|
643
652
|
|
|
644
653
|
// @public
|
|
645
654
|
export interface RouteRangeResultOutput {
|
|
646
|
-
formatVersion?: string;
|
|
655
|
+
readonly formatVersion?: string;
|
|
647
656
|
reachableRange: RouteRangeOutput;
|
|
648
657
|
report?: RouteReportOutput;
|
|
649
658
|
}
|
|
650
659
|
|
|
651
660
|
// @public
|
|
652
661
|
export interface RouteReportOutput {
|
|
653
|
-
effectiveSettings: Array<EffectiveSettingOutput>;
|
|
662
|
+
readonly effectiveSettings: Array<EffectiveSettingOutput>;
|
|
654
663
|
}
|
|
655
664
|
|
|
656
665
|
// @public
|
|
@@ -668,8 +677,6 @@ export interface RouteRequestRouteDirectionsBatch202Headers {
|
|
|
668
677
|
|
|
669
678
|
// @public
|
|
670
679
|
export interface RouteRequestRouteDirectionsBatch202Response extends HttpResponse {
|
|
671
|
-
// (undocumented)
|
|
672
|
-
body: Record<string, unknown>;
|
|
673
680
|
// (undocumented)
|
|
674
681
|
headers: RawHttpHeaders & RouteRequestRouteDirectionsBatch202Headers;
|
|
675
682
|
// (undocumented)
|
|
@@ -741,8 +748,6 @@ export interface RouteRequestRouteMatrix202Headers {
|
|
|
741
748
|
|
|
742
749
|
// @public
|
|
743
750
|
export interface RouteRequestRouteMatrix202Response extends HttpResponse {
|
|
744
|
-
// (undocumented)
|
|
745
|
-
body: Record<string, unknown>;
|
|
746
751
|
// (undocumented)
|
|
747
752
|
headers: RawHttpHeaders & RouteRequestRouteMatrix202Headers;
|
|
748
753
|
// (undocumented)
|
|
@@ -776,7 +781,7 @@ export interface RouteRequestRouteMatrixQueryParamProperties {
|
|
|
776
781
|
departAt?: Date | string;
|
|
777
782
|
hilliness?: "low" | "normal" | "high";
|
|
778
783
|
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
779
|
-
sectionType?: "carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban"
|
|
784
|
+
sectionType?: Array<"carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban">;
|
|
780
785
|
traffic?: boolean;
|
|
781
786
|
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
782
787
|
vehicleAxleWeight?: number;
|
|
@@ -841,7 +846,7 @@ export interface RouteRequestRouteMatrixSyncQueryParamProperties {
|
|
|
841
846
|
departAt?: Date | string;
|
|
842
847
|
hilliness?: "low" | "normal" | "high";
|
|
843
848
|
routeType?: "fastest" | "shortest" | "eco" | "thrilling";
|
|
844
|
-
sectionType?: "carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban"
|
|
849
|
+
sectionType?: Array<"carTrain" | "country" | "ferry" | "motorway" | "pedestrian" | "tollRoad" | "tollVignette" | "traffic" | "travelMode" | "tunnel" | "carpool" | "urban">;
|
|
845
850
|
traffic?: boolean;
|
|
846
851
|
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian";
|
|
847
852
|
vehicleAxleWeight?: number;
|
|
@@ -867,36 +872,58 @@ export interface Routes {
|
|
|
867
872
|
|
|
868
873
|
// @public
|
|
869
874
|
export interface RouteSectionOutput {
|
|
870
|
-
delayInSeconds?: number;
|
|
871
|
-
effectiveSpeedInKmh?: number;
|
|
872
|
-
endPointIndex: number;
|
|
873
|
-
magnitudeOfDelay?: "0" | "1" | "2" | "3" | "4";
|
|
874
|
-
sectionType: "CAR_TRAIN" | "COUNTRY" | "FERRY" | "MOTORWAY" | "PEDESTRIAN" | "TOLL_ROAD" | "TOLL_VIGNETTE" | "TRAFFIC" | "TRAVEL_MODE" | "TUNNEL" | "CARPOOL" | "URBAN";
|
|
875
|
-
simpleCategory?: "JAM" | "ROAD_WORK" | "ROAD_CLOSURE" | "OTHER";
|
|
876
|
-
startPointIndex: number;
|
|
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;
|
|
877
882
|
tec?: RouteSectionTecOutput;
|
|
878
|
-
travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian" | "other";
|
|
883
|
+
readonly travelMode?: "car" | "truck" | "taxi" | "bus" | "van" | "motorcycle" | "bicycle" | "pedestrian" | "other";
|
|
879
884
|
}
|
|
880
885
|
|
|
881
886
|
// @public
|
|
882
887
|
export interface RouteSectionTecCauseOutput {
|
|
883
|
-
mainCauseCode?: number;
|
|
884
|
-
subCauseCode?: number;
|
|
888
|
+
readonly mainCauseCode?: number;
|
|
889
|
+
readonly subCauseCode?: number;
|
|
885
890
|
}
|
|
886
891
|
|
|
887
892
|
// @public
|
|
888
893
|
export interface RouteSectionTecOutput {
|
|
889
894
|
causes?: Array<RouteSectionTecCauseOutput>;
|
|
890
|
-
effectCode?: number;
|
|
895
|
+
readonly effectCode?: number;
|
|
891
896
|
}
|
|
892
897
|
|
|
893
898
|
// @public
|
|
894
899
|
export interface RouteSummaryOutput {
|
|
895
|
-
arrivalTime: string;
|
|
896
|
-
departureTime: string;
|
|
897
|
-
lengthInMeters: number;
|
|
898
|
-
trafficDelayInSeconds: number;
|
|
899
|
-
travelTimeInSeconds: number;
|
|
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;
|
|
900
927
|
}
|
|
901
928
|
|
|
902
929
|
// @public
|