@tomtom-org/maps-sdk 0.32.1 → 0.32.3

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/map/package.json CHANGED
@@ -31,8 +31,8 @@
31
31
  "ts-node": "catalog:",
32
32
  "typescript": "catalog:",
33
33
  "vite": "catalog:",
34
- "vitest": "catalog:",
35
- "vite-plugin-dts": "catalog:"
34
+ "vite-plugin-dts": "catalog:",
35
+ "vitest": "catalog:"
36
36
  },
37
37
  "typedoc": {
38
38
  "entryPoint": "./index.ts"
@@ -41,7 +41,7 @@
41
41
  "maplibre-gl": "catalog:"
42
42
  },
43
43
  "dependencies": {
44
- "@turf/bearing": "^7.2.0",
44
+ "@turf/bearing": "^7.3.0",
45
45
  "core": "workspace:*",
46
46
  "lodash-es": "catalog:"
47
47
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tomtom-org/maps-sdk",
3
3
  "author": "TomTom International B.V.",
4
4
  "license": "See in LICENSE.txt",
5
- "version": "0.32.1",
5
+ "version": "0.32.3",
6
6
  "description": "TomTom Maps for JavaScript",
7
7
  "keywords": [
8
8
  "tomtom",
@@ -18,7 +18,7 @@
18
18
  "nodejs"
19
19
  ],
20
20
  "devDependencies": {
21
- "@biomejs/biome": "^2.3.4",
21
+ "@biomejs/biome": "^2.3.6",
22
22
  "@size-limit/file": "^11.2.0",
23
23
  "@size-limit/preset-app": "^11.2.0",
24
24
  "size-limit": "^11.2.0",
@@ -52,6 +52,20 @@
52
52
  "CHANGELOG.md",
53
53
  "LICENSE.txt"
54
54
  ],
55
+ "exports": {
56
+ "./core": {
57
+ "types": "./core/dist/index.d.ts",
58
+ "default": "./core/dist/core.es.js"
59
+ },
60
+ "./services": {
61
+ "types": "./services/dist/index.d.ts",
62
+ "default": "./services/dist/services.es.js"
63
+ },
64
+ "./map": {
65
+ "types": "./map/dist/index.d.ts",
66
+ "default": "./map/dist/map.es.js"
67
+ }
68
+ },
55
69
  "scripts": {
56
70
  "build": "pnpm build:sdk",
57
71
  "build:api-reference": "typedoc",
@@ -909,29 +909,39 @@ export declare type CalculateRouteParams = CommonServiceParams<CalculateRouteReq
909
909
  * @remarks
910
910
  * Requirements:
911
911
  * - Minimum 2 waypoints (origin and destination) OR 1 path with 2+ points
912
- * - Waypoints and paths can be mixed (except circle waypoints with paths)
913
- * - Circle (soft) waypoints shape the route without creating legs
914
912
  *
915
913
  * Supported formats:
916
914
  * - Coordinate arrays: `[longitude, latitude]`
917
- * - Waypoint objects with radius for circle waypoints
918
915
  * - Path arrays for route reconstruction
916
+ * - (not supported) Waypoint objects with radius for circle waypoints
919
917
  *
920
918
  * @see [POST data parameters](https://docs.tomtom.com/routing-api/documentation/routing/calculate-route#post-data-parameters)
921
919
  *
922
920
  * @example
923
921
  * ```typescript
924
- * // Simple waypoints
922
+ * // Coordinate arrays
925
923
  * locations: [[4.9, 52.3], [4.5, 51.9]]
926
924
  *
927
925
  * // With intermediate stop
928
926
  * locations: [[4.9, 52.3], [4.7, 52.1], [4.5, 51.9]]
929
927
  *
930
- * // Circle waypoint (shapes route, no stop)
928
+ * // Path array for route reconstruction
929
+ * locations: [
930
+ * [4.9, 52.3], // Origin waypoint
931
+ * [
932
+ * [4.85, 52.25], [4.80, 52.20], [4.75, 52.15] // Path points between waypoints
933
+ * ],
934
+ * [4.5, 51.9] // Destination waypoint
935
+ * ]
936
+ *
937
+ * // (not supported) Waypoint objects with radius for circle waypoints
931
938
  * locations: [
932
939
  * [4.9, 52.3],
933
- * { type: 'Feature', geometry: { type: 'Point', coordinates: [4.7, 52.1] },
934
- * properties: { radiusMeters: 5000 } },
940
+ * {
941
+ * type: 'Feature',
942
+ * geometry: { type: 'Point', coordinates: [4.7, 52.1] },
943
+ * properties: { radiusMeters: 5000 }
944
+ * },
935
945
  * [4.5, 51.9]
936
946
  * ]
937
947
  * ```
@@ -3931,14 +3941,14 @@ export declare type GenericVehicleState = {
3931
3941
  * @see [Places Quickstart Guide](https://docs.tomtom.com/maps-sdk-js/guides/services/places/quickstart)
3932
3942
  * @see [Geocoding Guide](https://docs.tomtom.com/maps-sdk-js/guides/services/places/geocoding)
3933
3943
  *
3934
- * @group Geocode
3944
+ * @group Geocoding
3935
3945
  */
3936
3946
  export declare const geocode: (params: GeocodingParams, customTemplate?: Partial<GeocodingTemplate>) => Promise<GeocodingResponse>;
3937
3947
 
3938
3948
  /**
3939
3949
  *
3940
3950
  * @param query
3941
- * @group Geocode
3951
+ * @group Geocoding
3942
3952
  */
3943
3953
  export declare const geocodeOne: (query: string) => Promise<Place_3<GeocodingProps>>;
3944
3954
 
@@ -3978,7 +3988,7 @@ declare type GeocodingIndexTypesAbbreviation = Exclude<SearchIndexType, 'POI'>;
3978
3988
  * };
3979
3989
  * ```
3980
3990
  *
3981
- * @group Geocode
3991
+ * @group Geocoding
3982
3992
  */
3983
3993
  export declare type GeocodingParams = Omit<CommonPlacesParams<URL, GeocodingResponseAPI> & CommonGeocodeAndFuzzySearchParams, 'extendedPostalCodesFor'> & {
3984
3994
  /**
@@ -4548,6 +4558,8 @@ export declare type GuidanceParams = {
4548
4558
  * @remarks
4549
4559
  * - `LHP`: Language-specific phonetic representation
4550
4560
  * - `IPA`: International Phonetic Alphabet
4561
+ *
4562
+ * @default 'IPA'
4551
4563
  */
4552
4564
  phonetics?: 'LHP' | 'IPA';
4553
4565
  /**