@tomtom-org/maps-sdk 0.54.0 → 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 +51 -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 +25 -9
- package/map/dist/index.d.ts +2350 -628
- package/map/dist/map.es.js +1 -1
- package/map/dist/map.es.js.map +1 -1
- package/map/package.json +1 -0
- package/package.json +9 -4
- package/services/dist/index.d.ts +167 -633
- package/services/dist/services.es.js +1 -1
- package/services/dist/services.es.js.map +1 -1
package/core/dist/index.d.ts
CHANGED
|
@@ -1352,6 +1352,9 @@ export type AddressRanges = {
|
|
|
1352
1352
|
* - `main`: Primary entrance (at most one per place)
|
|
1353
1353
|
* - `minor`: Secondary or alternative entrance (can have multiple)
|
|
1354
1354
|
*
|
|
1355
|
+
* Absent when the service does not classify its entry points, which is the case for
|
|
1356
|
+
* reverse geocoding.
|
|
1357
|
+
*
|
|
1355
1358
|
* @group Place
|
|
1356
1359
|
*/
|
|
1357
1360
|
export type EntryPointType = 'main' | 'minor';
|
|
@@ -1384,9 +1387,9 @@ export type EntryPoint = {
|
|
|
1384
1387
|
*/
|
|
1385
1388
|
position: Position;
|
|
1386
1389
|
/**
|
|
1387
|
-
* Type of entry point (main or minor).
|
|
1390
|
+
* Type of entry point (main or minor), when the service classifies it.
|
|
1388
1391
|
*/
|
|
1389
|
-
type
|
|
1392
|
+
type?: EntryPointType;
|
|
1390
1393
|
};
|
|
1391
1394
|
/**
|
|
1392
1395
|
* @group Place
|
|
@@ -1573,7 +1576,8 @@ export type CommonPlaceProps = {
|
|
|
1573
1576
|
/**
|
|
1574
1577
|
* Physical entry points (entrances) to the place.
|
|
1575
1578
|
*
|
|
1576
|
-
* Useful for navigation to direct users to the correct entrance.
|
|
1579
|
+
* Useful for navigation to direct users to the correct entrance. Reverse geocoding
|
|
1580
|
+
* returns them unclassified, so their `type` is absent.
|
|
1577
1581
|
*/
|
|
1578
1582
|
entryPoints?: EntryPoint[];
|
|
1579
1583
|
/**
|
|
@@ -1615,10 +1619,6 @@ export type CommonPlaceProps = {
|
|
|
1615
1619
|
* @group Place
|
|
1616
1620
|
*/
|
|
1617
1621
|
export type RevGeoAddressProps = CommonPlaceProps & {
|
|
1618
|
-
/**
|
|
1619
|
-
* Physical access points (e.g. driveway entrances) for the address, when available.
|
|
1620
|
-
*/
|
|
1621
|
-
accessPoints?: Position[];
|
|
1622
1622
|
/**
|
|
1623
1623
|
* Original coordinates used in the reverse geocoding query [longitude, latitude].
|
|
1624
1624
|
*/
|
|
@@ -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
|