@tomtom-org/maps-sdk 0.30.2 → 0.31.1

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.
@@ -1557,8 +1557,8 @@ export declare const defaultConfig: GlobalConfig;
1557
1557
  * @remarks
1558
1558
  * - `unknown`: Delay magnitude cannot be determined
1559
1559
  * - `minor`: Small delay (few minutes)
1560
- * - `moderate`: Noticeable delay (several minutes to ~15 minutes)
1561
- * - `major`: Significant delay (15+ minutes)
1560
+ * - `moderate`: Noticeable delay (several minutes to ~10 minutes)
1561
+ * - `major`: Significant delay (10+ minutes)
1562
1562
  * - `indefinite`: Unknown or extremely long delay (e.g., road closure)
1563
1563
  *
1564
1564
  * @group Route
@@ -4406,18 +4406,33 @@ export declare type TomTomHeaders = {
4406
4406
  */
4407
4407
  export declare const toPointFeature: (lngLat: Position) => Feature<Point>;
4408
4408
 
4409
+ /**
4410
+ * All possible traffic incident categories.
4411
+ * @group Route
4412
+ */
4413
+ export declare const trafficCategories: readonly ["jam", "accident", "roadworks", "road-closed", "narrow-lanes", "danger", "animals-on-road", "broken-down-vehicle", "lane-closed", "wind", "fog", "rain", "frost", "flooding", "other"];
4414
+
4409
4415
  /**
4410
4416
  * Simple category classification for traffic incidents.
4411
4417
  *
4412
4418
  * @remarks
4413
4419
  * - `jam`: Traffic congestion or slow-moving traffic
4414
- * - `road_work`: Construction or maintenance work
4415
- * - `road_closure`: Road is closed or blocked
4420
+ * - `accident`: Traffic accident or collision
4421
+ * - `roadworks`: Construction or maintenance work
4422
+ * - `road-closed`: Road is closed or blocked
4423
+ * - `danger`: Dangerous situation on the road
4424
+ * - `broken-down-vehicle`: Vehicle breakdown causing obstruction
4425
+ * - `lane-closed`: One or more lanes closed
4426
+ * - `wind`: Strong wind conditions affecting traffic
4427
+ * - `fog`: Fog reducing visibility
4428
+ * - `rain`: Heavy rain affecting driving conditions
4429
+ * - `frost`: Frost or ice on the road
4430
+ * - `flooding`: Flooded road section
4416
4431
  * - `other`: Other types of incidents
4417
4432
  *
4418
4433
  * @group Route
4419
4434
  */
4420
- export declare type TrafficCategory = 'jam' | 'road_work' | 'road_closure' | 'other';
4435
+ export declare type TrafficCategory = (typeof trafficCategories)[number];
4421
4436
 
4422
4437
  /**
4423
4438
  * Traffic incident information based on TPEG2-TEC standard.
@@ -4466,9 +4481,9 @@ export declare type TrafficIncidentTEC = {
4466
4481
  */
4467
4482
  export declare type TrafficSectionProps = SectionProps & {
4468
4483
  /**
4469
- * Simple category classification of the incident.
4484
+ * Categories of the incident. Based on the 'tec' cause codes.
4470
4485
  */
4471
- simpleCategory: TrafficCategory;
4486
+ categories: TrafficCategory[];
4472
4487
  /**
4473
4488
  * Severity level of the delay caused by this incident.
4474
4489
  */
package/core/package.json CHANGED
@@ -13,14 +13,6 @@
13
13
  "clean:dist": "rimraf ./dist"
14
14
  },
15
15
  "types": "./dist/index.d.ts",
16
- "repository": {
17
- "type": "git",
18
- "url": "git+https://github.com/tomtom-international/maps-sdk-js.git"
19
- },
20
- "bugs": {
21
- "url": "https://github.com/tomtom-international/maps-sdk-js/issues"
22
- },
23
- "homepage": "https://github.com/tomtom-international/maps-sdk-js#readme",
24
16
  "dependencies": {
25
17
  "geojson": "^0.5.0"
26
18
  },
@@ -63,12 +63,10 @@ terms above.
63
63
  ---
64
64
 
65
65
  Name: @tomtom-org/maps-sdk
66
- Version: 0.30.2
66
+ Version: 0.31.1
67
67
  License: See in LICENSE.txt
68
68
  Private: false
69
- Description: JavaScript library for TomTom maps and location services
70
- Repository: git+https://github.com/tomtom-international/maps-sdk-js.git
71
- Homepage: https://github.com/tomtom-international/maps-sdk-js#readme
69
+ Description: TomTom Maps for JavaScript
72
70
  Author: TomTom International B.V.
73
71
  License Copyright:
74
72
  ===
@@ -343,4 +341,133 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
343
341
  FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
344
342
  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
345
343
  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
346
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
344
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
345
+
346
+ ---
347
+
348
+ Name: maplibre-gl
349
+ Version: 5.12.0
350
+ License: BSD-3-Clause
351
+ Private: false
352
+ Description: BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
353
+ Repository: git://github.com/maplibre/maplibre-gl-js.git
354
+ Homepage: https://maplibre.org/
355
+ License Copyright:
356
+ ===
357
+
358
+ Copyright (c) 2023, MapLibre contributors
359
+
360
+ All rights reserved.
361
+
362
+ Redistribution and use in source and binary forms, with or without modification,
363
+ are permitted provided that the following conditions are met:
364
+
365
+ * Redistributions of source code must retain the above copyright notice,
366
+ this list of conditions and the following disclaimer.
367
+ * Redistributions in binary form must reproduce the above copyright notice,
368
+ this list of conditions and the following disclaimer in the documentation
369
+ and/or other materials provided with the distribution.
370
+ * Neither the name of MapLibre GL JS nor the names of its contributors
371
+ may be used to endorse or promote products derived from this software
372
+ without specific prior written permission.
373
+
374
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
375
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
376
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
377
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
378
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
379
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
380
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
381
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
382
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
383
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
384
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
385
+
386
+
387
+ -------------------------------------------------------------------------------
388
+
389
+ Contains code from mapbox-gl-js v1.13 and earlier
390
+
391
+ Version v1.13 of mapbox-gl-js and earlier are licensed under a BSD-3-Clause license
392
+
393
+ Copyright (c) 2020, Mapbox
394
+ Redistribution and use in source and binary forms, with or without modification,
395
+ are permitted provided that the following conditions are met:
396
+
397
+ * Redistributions of source code must retain the above copyright notice,
398
+ this list of conditions and the following disclaimer.
399
+ * Redistributions in binary form must reproduce the above copyright notice,
400
+ this list of conditions and the following disclaimer in the documentation
401
+ and/or other materials provided with the distribution.
402
+ * Neither the name of Mapbox GL JS nor the names of its contributors
403
+ may be used to endorse or promote products derived from this software
404
+ without specific prior written permission.
405
+
406
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
407
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
408
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
409
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
410
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
411
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
412
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
413
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
414
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
415
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
416
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
417
+
418
+
419
+ -------------------------------------------------------------------------------
420
+
421
+ Contains code from glfx.js
422
+
423
+ Copyright (C) 2011 by Evan Wallace
424
+
425
+ Permission is hereby granted, free of charge, to any person obtaining a copy
426
+ of this software and associated documentation files (the "Software"), to deal
427
+ in the Software without restriction, including without limitation the rights
428
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
429
+ copies of the Software, and to permit persons to whom the Software is
430
+ furnished to do so, subject to the following conditions:
431
+
432
+ The above copyright notice and this permission notice shall be included in
433
+ all copies or substantial portions of the Software.
434
+
435
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
436
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
437
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
438
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
439
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
440
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
441
+ THE SOFTWARE.
442
+
443
+ --------------------------------------------------------------------------------
444
+
445
+ Contains a portion of d3-color https://github.com/d3/d3-color
446
+
447
+ Copyright 2010-2016 Mike Bostock
448
+ All rights reserved.
449
+
450
+ Redistribution and use in source and binary forms, with or without modification,
451
+ are permitted provided that the following conditions are met:
452
+
453
+ * Redistributions of source code must retain the above copyright notice, this
454
+ list of conditions and the following disclaimer.
455
+
456
+ * Redistributions in binary form must reproduce the above copyright notice,
457
+ this list of conditions and the following disclaimer in the documentation
458
+ and/or other materials provided with the distribution.
459
+
460
+ * Neither the name of the author nor the names of contributors may be used to
461
+ endorse or promote products derived from this software without specific prior
462
+ written permission.
463
+
464
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
465
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
466
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
467
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
468
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
469
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
470
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
471
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
472
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
473
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.