@tomtom-org/maps-sdk 0.55.1 → 0.56.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 -1
- package/README.md +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 +18 -2
- package/map/dist/index.d.ts +695 -189
- package/map/dist/map.es.js +1 -1
- package/map/dist/map.es.js.map +1 -1
- package/package.json +9 -4
- package/services/dist/index.d.ts +95 -473
- package/services/dist/services.es.js +1 -1
- package/services/dist/services.es.js.map +1 -1
package/core/dist/index.d.ts
CHANGED
|
@@ -3252,7 +3252,8 @@ type WaypointProps = {
|
|
|
3252
3252
|
*
|
|
3253
3253
|
* @remarks
|
|
3254
3254
|
* - The wait counts towards the route's `travelTimeInSeconds`, not only its arrival time
|
|
3255
|
-
* - Not supported on the destination: the routing service requires the last leg's wait to be 0
|
|
3255
|
+
* - Not supported on the destination: the routing service requires the last leg's wait to be 0,
|
|
3256
|
+
* and `calculateRoute` rejects it at validation
|
|
3256
3257
|
*
|
|
3257
3258
|
* @example
|
|
3258
3259
|
* ```typescript
|
|
@@ -3998,13 +3999,22 @@ export type SectionProps = {
|
|
|
3998
3999
|
* id: 'country-section-1',
|
|
3999
4000
|
* startPointIndex: 0,
|
|
4000
4001
|
* endPointIndex: 150,
|
|
4001
|
-
*
|
|
4002
|
+
* countryCodeISO2: 'NL', // Netherlands
|
|
4003
|
+
* countryCodeISO3: 'NLD',
|
|
4002
4004
|
* };
|
|
4003
4005
|
* ```
|
|
4004
4006
|
*
|
|
4005
4007
|
* @group Route
|
|
4006
4008
|
*/
|
|
4007
4009
|
export type CountrySectionProps = SectionProps & {
|
|
4010
|
+
/**
|
|
4011
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
4012
|
+
*
|
|
4013
|
+
* Examples: 'US', 'GB', 'NL', 'DE', 'FR'
|
|
4014
|
+
*
|
|
4015
|
+
* @see [ISO 3166-1 alpha-2 codes](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
|
4016
|
+
*/
|
|
4017
|
+
countryCodeISO2: string;
|
|
4008
4018
|
/**
|
|
4009
4019
|
* Three-letter ISO 3166-1 alpha-3 country code.
|
|
4010
4020
|
*
|
|
@@ -5475,6 +5485,12 @@ export declare const formatDuration: (seconds: number | undefined, options?: Tim
|
|
|
5475
5485
|
* @group Utils
|
|
5476
5486
|
*/
|
|
5477
5487
|
export type DistanceUnitsType = 'metric' | 'imperial_us' | 'imperial_uk';
|
|
5488
|
+
/**
|
|
5489
|
+
* Metres in one international mile — the factor behind every metric-to-imperial conversion in the SDK.
|
|
5490
|
+
*
|
|
5491
|
+
* @ignore
|
|
5492
|
+
*/
|
|
5493
|
+
export declare const MILE_IN_METERS = 1609.344;
|
|
5478
5494
|
/**
|
|
5479
5495
|
* Formatting is based on the number of meters passed and unit type. Less meters more precision.
|
|
5480
5496
|
* @example
|