@tomtom-org/maps-sdk 0.62.1 → 0.62.2
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 +33 -0
- package/core/dist/core.es.js +1 -1
- package/core/dist/core.es.js.map +1 -1
- package/core/dist/index.d.ts +5 -3
- package/map/dist/index.d.ts +773 -348
- package/map/dist/map.es.js +1 -1
- package/map/dist/map.es.js.map +1 -1
- package/package.json +1 -1
package/core/dist/index.d.ts
CHANGED
|
@@ -5245,8 +5245,8 @@ export declare const withInsertedWaypoints: (route: Route, existingWaypoints: Wa
|
|
|
5245
5245
|
/**
|
|
5246
5246
|
* Interpolates the cumulative traveled distance and time at an arbitrary point on the route path.
|
|
5247
5247
|
*
|
|
5248
|
-
*
|
|
5249
|
-
*
|
|
5248
|
+
* Between the two {@link RouteProgressPoint} entries bracketing `pathIndex`, values follow the line's
|
|
5249
|
+
* length rather than its vertex count: vertices crowd into bends and thin out on straights.
|
|
5250
5250
|
*
|
|
5251
5251
|
* @param route The route whose `properties.progress` will be used for interpolation.
|
|
5252
5252
|
* The progress array must cover the requested index (i.e. the first entry's
|
|
@@ -5267,6 +5267,7 @@ export declare const withInsertedWaypoints: (route: Route, existingWaypoints: Wa
|
|
|
5267
5267
|
* // { pointIndex: 100,distanceInMeters: 5000, travelTimeInSeconds: 300 }
|
|
5268
5268
|
* // ]
|
|
5269
5269
|
*
|
|
5270
|
+
* // With vertex 25 halfway along the line from vertex 0 to vertex 50:
|
|
5270
5271
|
* const result = calculateProgressAtRoutePoint(route, 25);
|
|
5271
5272
|
* // result = { distanceInMeters: 1250, travelTimeInSeconds: 60 }
|
|
5272
5273
|
* ```
|
|
@@ -5383,7 +5384,8 @@ export type RouteProgressQuery = {
|
|
|
5383
5384
|
};
|
|
5384
5385
|
/**
|
|
5385
5386
|
* Returns the geographic coordinate and cumulative progress values at the point along a route
|
|
5386
|
-
* identified by a {@link RouteProgressQuery}.
|
|
5387
|
+
* identified by a {@link RouteProgressQuery}. Between `progress` entries, positions follow the
|
|
5388
|
+
* line's length, so equal steps of distance cover equal ground.
|
|
5387
5389
|
*
|
|
5388
5390
|
* @param route The route to query. Must contain `properties.progress` data.
|
|
5389
5391
|
* @param query A discriminated union — provide exactly one of:
|