@types/mapbox__mapbox-sdk 0.13.9 → 0.13.10
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.
mapbox__mapbox-sdk/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for @mapbox/mapbox-sdk (https://github.co
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__mapbox-sdk.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 17 Nov 2023 02:17:33 GMT
|
|
12
12
|
* Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson), [@types/mapbox-gl](https://npmjs.com/package/@types/mapbox-gl), [@types/node](https://npmjs.com/package/@types/node)
|
|
13
13
|
|
|
14
14
|
# Credits
|
mapbox__mapbox-sdk/index.d.ts
CHANGED
|
@@ -429,6 +429,50 @@ declare module "@mapbox/mapbox-sdk/services/directions" {
|
|
|
429
429
|
voiceUnits?: DirectionsUnits | undefined;
|
|
430
430
|
}
|
|
431
431
|
|
|
432
|
+
type DirectionsProfileInclusion = {
|
|
433
|
+
profile: "walking" | "cycling";
|
|
434
|
+
} | {
|
|
435
|
+
profile: "driving";
|
|
436
|
+
/**
|
|
437
|
+
* The desired arrival time, formatted as a timestamp in ISO-8601 format in the local time at the route destination. The travel time, returned in duration, is a prediction for travel time based on historical travel data. The route is calculated in a time-dependent manner. For example, a trip that takes two hours will consider changing historic traffic conditions across the two-hour window. The route takes timed turn restrictions and conditional access restrictions into account based on the requested arrival time.
|
|
438
|
+
*/
|
|
439
|
+
arriveBy?: string;
|
|
440
|
+
/**
|
|
441
|
+
* The departure time, formatted as a timestamp in ISO-8601 format in the local time at the route origin. The travel time, returned in duration, is a prediction for travel time based on historical travel data. The route is calculated in a time-dependent manner. For example, a trip that takes two hours will consider changing historic traffic conditions across the two-hour window, instead of only at the specified depart_at time. The route takes timed turn restrictions and conditional access restrictions into account based on the requested departure time.
|
|
442
|
+
*/
|
|
443
|
+
departAt?: string;
|
|
444
|
+
/**
|
|
445
|
+
* The max vehicle height, in meters. If this parameter is provided, the Directions API will compute a route that includes only roads with a height limit greater than or equal to the max vehicle height. max_height must be between 0 and 10 meters. The default value is 1.6 meters. Coverage for road height restriction may vary by region.
|
|
446
|
+
*/
|
|
447
|
+
maxHeight?: number;
|
|
448
|
+
/**
|
|
449
|
+
* The max vehicle weight, in metric tons (1000 kg). If this parameter is provided, the Directions API will compute a route that includes only roads with a weight limit greater than or equal to the max vehicle weight. max_weight must be between 0 and 100 metric tons. The default value is 2.5 metric tons. Coverage for road weight restriction may vary by region.
|
|
450
|
+
*/
|
|
451
|
+
maxWeight?: number;
|
|
452
|
+
/**
|
|
453
|
+
* The max vehicle width, in meters. If this parameter is provided, the Directions API will compute a route that includes only roads with a width limit greater than or equal to the max vehicle width. max_width must be between 0 and 10 meters. The default value is 1.9 meters. Coverage for road width restriction may vary by region.
|
|
454
|
+
*/
|
|
455
|
+
maxWidth?: number;
|
|
456
|
+
} | {
|
|
457
|
+
profile: "driving-traffic";
|
|
458
|
+
/**
|
|
459
|
+
* The departure time, formatted as a timestamp in ISO-8601 format in the local time at the route origin. The travel time, returned in duration, is a prediction for travel time based on historical travel data and live traffic. Live traffic is gently mixed with historical data when depart_at is set close to current time. The route takes timed turn restrictions and conditional access restrictions into account based on the requested arrival time.
|
|
460
|
+
*/
|
|
461
|
+
departAt?: string;
|
|
462
|
+
/**
|
|
463
|
+
* The max vehicle height, in meters. If this parameter is provided, the Directions API will compute a route that includes only roads with a height limit greater than or equal to the max vehicle height. max_height must be between 0 and 10 meters. The default value is 1.6 meters. Coverage for road height restriction may vary by region.
|
|
464
|
+
*/
|
|
465
|
+
maxHeight?: number;
|
|
466
|
+
/**
|
|
467
|
+
* The max vehicle weight, in metric tons (1000 kg). If this parameter is provided, the Directions API will compute a route that includes only roads with a weight limit greater than or equal to the max vehicle weight. max_weight must be between 0 and 100 metric tons. The default value is 2.5 metric tons. Coverage for road weight restriction may vary by region.
|
|
468
|
+
*/
|
|
469
|
+
maxWeight?: number;
|
|
470
|
+
/**
|
|
471
|
+
* The max vehicle width, in meters. If this parameter is provided, the Directions API will compute a route that includes only roads with a width limit greater than or equal to the max vehicle width. max_width must be between 0 and 10 meters. The default value is 1.9 meters. Coverage for road width restriction may vary by region.
|
|
472
|
+
*/
|
|
473
|
+
maxWidth?: number;
|
|
474
|
+
};
|
|
475
|
+
|
|
432
476
|
type DirectionsProfileExclusion =
|
|
433
477
|
| {
|
|
434
478
|
profile: "walking";
|
|
@@ -445,6 +489,7 @@ declare module "@mapbox/mapbox-sdk/services/directions" {
|
|
|
445
489
|
|
|
446
490
|
type DirectionsRequest<T extends DirectionsGeometry = "polyline"> =
|
|
447
491
|
& CommonDirectionsRequest<T>
|
|
492
|
+
& DirectionsProfileInclusion
|
|
448
493
|
& DirectionsProfileExclusion;
|
|
449
494
|
|
|
450
495
|
interface Waypoint {
|
mapbox__mapbox-sdk/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/mapbox__mapbox-sdk",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.10",
|
|
4
4
|
"description": "TypeScript definitions for @mapbox/mapbox-sdk",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__mapbox-sdk",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,6 +44,6 @@
|
|
|
44
44
|
"@types/mapbox-gl": "*",
|
|
45
45
|
"@types/node": "*"
|
|
46
46
|
},
|
|
47
|
-
"typesPublisherContentHash": "
|
|
47
|
+
"typesPublisherContentHash": "6f6df6168f7982d9d12475050b13e7de5c956d4802cafddb2f2db75d8b66b8f4",
|
|
48
48
|
"typeScriptVersion": "4.5"
|
|
49
49
|
}
|