@tomtom-org/maps-sdk 0.36.9 → 0.38.0
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 +23 -0
- package/core/dist/THIRD_PARTY.txt +1 -1
- package/core/dist/core.es.js +1 -1
- package/core/dist/core.es.js.map +1 -1
- package/core/dist/index.d.ts +54 -34
- package/core/package.json +1 -2
- package/map/dist/THIRD_PARTY.txt +3 -3
- package/map/dist/index.d.ts +146 -110
- package/map/dist/map.es.js +1 -1
- package/map/dist/map.es.js.map +1 -1
- package/map/package.json +1 -2
- package/package.json +4 -3
- package/services/dist/THIRD_PARTY.txt +2 -2
- package/services/dist/services.es.js +1 -1
- package/services/dist/services.es.js.map +1 -1
- package/services/package.json +2 -2
package/core/dist/index.d.ts
CHANGED
|
@@ -1838,7 +1838,12 @@ export declare type EVChargingStationPlaceProps = Omit<CommonPlaceProps, 'chargi
|
|
|
1838
1838
|
*
|
|
1839
1839
|
* @group Shared
|
|
1840
1840
|
*/
|
|
1841
|
-
export declare interface FeatureCollectionWithProperties<G extends Geometry | null = Geometry, P = GeoJsonProperties, FeatureCollectionProps = unknown> extends FeatureCollection<G, P> {
|
|
1841
|
+
export declare interface FeatureCollectionWithProperties<G extends Geometry | null = Geometry, P = GeoJsonProperties, FeatureCollectionProps = unknown> extends Omit<FeatureCollection<G, P>, 'bbox'> {
|
|
1842
|
+
/**
|
|
1843
|
+
* Optional bounding box that contains all features in the collection, including their bounding boxes, if any.
|
|
1844
|
+
* * Only included if any features are present.
|
|
1845
|
+
*/
|
|
1846
|
+
bbox?: BBox;
|
|
1842
1847
|
/**
|
|
1843
1848
|
* Optional properties for the entire feature collection.
|
|
1844
1849
|
* This allows metadata to be attached at the collection level.
|
|
@@ -2179,30 +2184,7 @@ export declare const getPositionStrict: (hasLngLat: HasLngLat, options?: GetPosi
|
|
|
2179
2184
|
* @param routePlanningLocation The geographic input to classify. Can be coordinates, GeoJSON geometry, or GeoJSON Feature.
|
|
2180
2185
|
* @returns The type of the input: 'waypoint' for point locations or 'path' for line geometries.
|
|
2181
2186
|
*
|
|
2182
|
-
* @
|
|
2183
|
-
* ```typescript
|
|
2184
|
-
* // Waypoint as coordinate array
|
|
2185
|
-
* getRoutePlanningLocationType([4.9, 52.3]); // Returns: 'waypoint'
|
|
2186
|
-
*
|
|
2187
|
-
* // Path as array of coordinates
|
|
2188
|
-
* getRoutePlanningLocationType([[4.9, 52.3], [4.5, 51.9]]); // Returns: 'path'
|
|
2189
|
-
*
|
|
2190
|
-
* // Waypoint as Point Feature
|
|
2191
|
-
* getRoutePlanningLocationType({
|
|
2192
|
-
* type: 'Feature',
|
|
2193
|
-
* geometry: { type: 'Point', coordinates: [4.9, 52.3] },
|
|
2194
|
-
* properties: {}
|
|
2195
|
-
* }); // Returns: 'waypoint'
|
|
2196
|
-
*
|
|
2197
|
-
* // Path as LineString Feature
|
|
2198
|
-
* getRoutePlanningLocationType({
|
|
2199
|
-
* type: 'Feature',
|
|
2200
|
-
* geometry: { type: 'LineString', coordinates: [[4.9, 52.3], [4.5, 51.9]] },
|
|
2201
|
-
* properties: {}
|
|
2202
|
-
* }); // Returns: 'path'
|
|
2203
|
-
* ```
|
|
2204
|
-
*
|
|
2205
|
-
* @group Route
|
|
2187
|
+
* @ignore
|
|
2206
2188
|
*/
|
|
2207
2189
|
export declare const getRoutePlanningLocationType: (routePlanningLocation: RoutePlanningLocation) => RoutePlanningLocationType;
|
|
2208
2190
|
|
|
@@ -2395,7 +2377,7 @@ export declare type HasCount = {
|
|
|
2395
2377
|
*
|
|
2396
2378
|
* @group Shared
|
|
2397
2379
|
*/
|
|
2398
|
-
export declare type HasLngLat = Position | Point | Feature<Point>;
|
|
2380
|
+
export declare type HasLngLat = [number, number] | Position | Point | Feature<Point>;
|
|
2399
2381
|
|
|
2400
2382
|
/**
|
|
2401
2383
|
* Sections with important stretches of road information.
|
|
@@ -3196,13 +3178,19 @@ export declare const paymentMethods: readonly ["No_Payment", "Subscription", "Di
|
|
|
3196
3178
|
*
|
|
3197
3179
|
* @group Place
|
|
3198
3180
|
*/
|
|
3199
|
-
export declare type Place<P extends CommonPlaceProps = CommonPlaceProps> = Omit<Feature<Point, P>, 'id'> & {
|
|
3181
|
+
export declare type Place<P extends CommonPlaceProps = CommonPlaceProps> = Omit<Feature<Point, P>, 'id' | 'bbox'> & {
|
|
3200
3182
|
/**
|
|
3201
3183
|
* Unique identifier for this place.
|
|
3202
3184
|
*
|
|
3203
3185
|
* Required string ID (stricter than GeoJSON Feature's optional id).
|
|
3204
3186
|
*/
|
|
3205
3187
|
id: string;
|
|
3188
|
+
/**
|
|
3189
|
+
* Bounding box that contains the place.
|
|
3190
|
+
*
|
|
3191
|
+
* * Typically significant for places covering wider areas.
|
|
3192
|
+
*/
|
|
3193
|
+
bbox?: BBox;
|
|
3206
3194
|
};
|
|
3207
3195
|
|
|
3208
3196
|
/**
|
|
@@ -3278,13 +3266,17 @@ export declare type PlaceDataSources = {
|
|
|
3278
3266
|
*
|
|
3279
3267
|
* @group Place
|
|
3280
3268
|
*/
|
|
3281
|
-
export declare type Places<P extends CommonPlaceProps = CommonPlaceProps, FeatureCollectionProps = unknown> = Omit<FeatureCollectionWithProperties<Point, P, FeatureCollectionProps>, 'features'> & {
|
|
3269
|
+
export declare type Places<P extends CommonPlaceProps = CommonPlaceProps, FeatureCollectionProps = unknown> = Omit<FeatureCollectionWithProperties<Point, P, FeatureCollectionProps>, 'features' | 'bbox'> & {
|
|
3282
3270
|
/**
|
|
3283
3271
|
* Array of place features.
|
|
3284
|
-
*
|
|
3285
|
-
* Each place has a required string ID.
|
|
3272
|
+
* * Each place has a required string ID.
|
|
3286
3273
|
*/
|
|
3287
3274
|
features: Place<P>[];
|
|
3275
|
+
/**
|
|
3276
|
+
* Bounding box that contains all the places, including their bounding boxes.
|
|
3277
|
+
* * Only included if any places are present.
|
|
3278
|
+
*/
|
|
3279
|
+
bbox?: BBox;
|
|
3288
3280
|
};
|
|
3289
3281
|
|
|
3290
3282
|
/**
|
|
@@ -3520,7 +3512,12 @@ export declare const poiIDsToCategories: Record<number, POICategory>;
|
|
|
3520
3512
|
*
|
|
3521
3513
|
* @group Shared
|
|
3522
3514
|
*/
|
|
3523
|
-
export declare type PolygonFeature<P = GeoJsonProperties> = Feature<Polygon | MultiPolygon, P
|
|
3515
|
+
export declare type PolygonFeature<P = GeoJsonProperties> = Omit<Feature<Polygon | MultiPolygon, P>, 'bbox'> & {
|
|
3516
|
+
/**
|
|
3517
|
+
* Bounding box that contains the feature's geometry.
|
|
3518
|
+
*/
|
|
3519
|
+
bbox: BBox;
|
|
3520
|
+
};
|
|
3524
3521
|
|
|
3525
3522
|
/**
|
|
3526
3523
|
* GeoJSON FeatureCollection containing polygon or multi-polygon features.
|
|
@@ -3553,7 +3550,17 @@ export declare type PolygonFeature<P = GeoJsonProperties> = Feature<Polygon | Mu
|
|
|
3553
3550
|
*
|
|
3554
3551
|
* @group Shared
|
|
3555
3552
|
*/
|
|
3556
|
-
export declare type PolygonFeatures<P = GeoJsonProperties> = FeatureCollection<Polygon | MultiPolygon, P
|
|
3553
|
+
export declare type PolygonFeatures<P = GeoJsonProperties> = Omit<FeatureCollection<Polygon | MultiPolygon, P>, 'features' | 'bbox'> & {
|
|
3554
|
+
/**
|
|
3555
|
+
* Array of polygon or multi-polygon features.
|
|
3556
|
+
*/
|
|
3557
|
+
features: PolygonFeature<P>[];
|
|
3558
|
+
/**
|
|
3559
|
+
* Bounding box that contains all features in the collection, including their bounding boxes, if any.
|
|
3560
|
+
* * Only included if any features present.
|
|
3561
|
+
*/
|
|
3562
|
+
bbox?: BBox;
|
|
3563
|
+
};
|
|
3557
3564
|
|
|
3558
3565
|
/**
|
|
3559
3566
|
* Possible directions a lane can lead to.
|
|
@@ -3745,13 +3752,17 @@ export declare type RoadShieldSectionProps = SectionProps & {
|
|
|
3745
3752
|
*
|
|
3746
3753
|
* @group Route
|
|
3747
3754
|
*/
|
|
3748
|
-
export declare type Route<P extends RouteProps = RouteProps> = Omit<Feature<LineString, P>, 'id'> & {
|
|
3755
|
+
export declare type Route<P extends RouteProps = RouteProps> = Omit<Feature<LineString, P>, 'id' | 'bbox'> & {
|
|
3749
3756
|
/**
|
|
3750
3757
|
* Unique identifier for this route.
|
|
3751
3758
|
*
|
|
3752
3759
|
* Randomly generated to distinguish between multiple route alternatives.
|
|
3753
3760
|
*/
|
|
3754
3761
|
id: string;
|
|
3762
|
+
/**
|
|
3763
|
+
* Bounding box that contains the entire route or at least its waypoints.
|
|
3764
|
+
*/
|
|
3765
|
+
bbox: BBox;
|
|
3755
3766
|
};
|
|
3756
3767
|
|
|
3757
3768
|
/**
|
|
@@ -3927,11 +3938,15 @@ export declare type RouteProps = {
|
|
|
3927
3938
|
*
|
|
3928
3939
|
* @group Route
|
|
3929
3940
|
*/
|
|
3930
|
-
export declare type Routes<P extends RouteProps = RouteProps, FeatureCollectionProps = unknown> = Omit<FeatureCollectionWithProperties<LineString, P, FeatureCollectionProps>, 'features'> & {
|
|
3941
|
+
export declare type Routes<P extends RouteProps = RouteProps, FeatureCollectionProps = unknown> = Omit<FeatureCollectionWithProperties<LineString, P, FeatureCollectionProps>, 'features' | 'bbox'> & {
|
|
3931
3942
|
/**
|
|
3932
3943
|
* Array of route features.
|
|
3933
3944
|
*/
|
|
3934
3945
|
features: Route<P>[];
|
|
3946
|
+
/**
|
|
3947
|
+
* Bounding box that contains all the routes or at least their waypoints. Only defined if routes are present.
|
|
3948
|
+
*/
|
|
3949
|
+
bbox?: BBox;
|
|
3935
3950
|
};
|
|
3936
3951
|
|
|
3937
3952
|
/**
|
|
@@ -4466,6 +4481,11 @@ export declare type TomTomHeaders = {
|
|
|
4466
4481
|
*/
|
|
4467
4482
|
export declare const toPointFeature: (coordinates: Position) => Feature<Point>;
|
|
4468
4483
|
|
|
4484
|
+
/**
|
|
4485
|
+
* @ignore
|
|
4486
|
+
*/
|
|
4487
|
+
export declare const toPointGeometry: (coordinates: Position) => Point;
|
|
4488
|
+
|
|
4469
4489
|
/**
|
|
4470
4490
|
* All possible traffic incident categories.
|
|
4471
4491
|
* @group Route
|
package/core/package.json
CHANGED
|
@@ -13,10 +13,9 @@
|
|
|
13
13
|
"test": "vitest run",
|
|
14
14
|
"test:coverage": "vitest run --coverage",
|
|
15
15
|
"test:dist": "vitest run dist-validation.test.ts",
|
|
16
|
-
"build": "vite build
|
|
16
|
+
"build": "vite build",
|
|
17
17
|
"build:watch": "pnpm build --watch",
|
|
18
18
|
"build:full": "pnpm type-check && pnpm build",
|
|
19
|
-
"build:validate": "pnpm build && pnpm test:dist",
|
|
20
19
|
"type-check": "tsc --noEmit",
|
|
21
20
|
"clean:dist": "rimraf ./dist"
|
|
22
21
|
},
|
package/map/dist/THIRD_PARTY.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Name: lodash-es
|
|
2
|
-
Version: 4.17.
|
|
2
|
+
Version: 4.17.22
|
|
3
3
|
License: MIT
|
|
4
4
|
Private: false
|
|
5
5
|
Description: Lodash exported as ES modules.
|
|
@@ -173,11 +173,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
173
173
|
---
|
|
174
174
|
|
|
175
175
|
Name: maplibre-gl
|
|
176
|
-
Version: 5.
|
|
176
|
+
Version: 5.15.0
|
|
177
177
|
License: BSD-3-Clause
|
|
178
178
|
Private: false
|
|
179
179
|
Description: BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
|
|
180
|
-
Repository:
|
|
180
|
+
Repository: https://github.com/maplibre/maplibre-gl-js
|
|
181
181
|
Homepage: https://maplibre.org/
|
|
182
182
|
License Copyright:
|
|
183
183
|
===
|