@tomtom-org/maps-sdk 0.46.2 → 0.46.4
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 +20 -0
- package/core/dist/core.es.js +2 -2
- package/core/dist/core.es.js.map +1 -1
- package/core/dist/index.d.ts +13 -13
- package/map/dist/map.es.js +2 -2
- package/map/dist/map.es.js.map +1 -1
- package/package.json +3 -3
- package/services/dist/index.d.ts +305 -67
- package/services/dist/services.es.js +2 -2
- package/services/dist/services.es.js.map +1 -1
package/core/dist/index.d.ts
CHANGED
|
@@ -2755,28 +2755,28 @@ export declare type HasCount = {
|
|
|
2755
2755
|
/**
|
|
2756
2756
|
* Input type representing a geographic point location.
|
|
2757
2757
|
*
|
|
2758
|
-
*
|
|
2759
|
-
* - `
|
|
2760
|
-
* - `Point
|
|
2761
|
-
* - `Feature<Point
|
|
2758
|
+
* Accepted forms:
|
|
2759
|
+
* - `[longitude, latitude]` — plain coordinate pair (GeoJSON `Position`)
|
|
2760
|
+
* - `Point` — GeoJSON Point geometry object
|
|
2761
|
+
* - `Feature<Point>` — GeoJSON Feature wrapping a Point; {@link Place} satisfies this directly
|
|
2762
2762
|
*
|
|
2763
2763
|
* @remarks
|
|
2764
|
-
*
|
|
2764
|
+
* Coordinates always follow the GeoJSON convention: **longitude first, then latitude**.
|
|
2765
|
+
*
|
|
2766
|
+
* Because {@link Place} is a `Feature<Point>`, any search result can be passed
|
|
2767
|
+
* wherever `HasLngLat` is accepted — for example as a `position` bias on a
|
|
2768
|
+
* follow-up search, or as a route waypoint.
|
|
2765
2769
|
*
|
|
2766
2770
|
* @example
|
|
2767
2771
|
* ```typescript
|
|
2768
|
-
* //
|
|
2772
|
+
* // Plain coordinate pair
|
|
2769
2773
|
* const pos1: HasLngLat = [4.9041, 52.3676];
|
|
2770
2774
|
*
|
|
2771
|
-
* //
|
|
2775
|
+
* // GeoJSON Point geometry
|
|
2772
2776
|
* const pos2: HasLngLat = { type: 'Point', coordinates: [4.9041, 52.3676] };
|
|
2773
2777
|
*
|
|
2774
|
-
* //
|
|
2775
|
-
* const pos3: HasLngLat =
|
|
2776
|
-
* type: 'Feature',
|
|
2777
|
-
* geometry: { type: 'Point', coordinates: [4.9041, 52.3676] },
|
|
2778
|
-
* properties: {}
|
|
2779
|
-
* };
|
|
2778
|
+
* // GeoJSON Feature<Point> — e.g. a Place from search results
|
|
2779
|
+
* const pos3: HasLngLat = searchResults.features[0];
|
|
2780
2780
|
* ```
|
|
2781
2781
|
*
|
|
2782
2782
|
* @group Shared
|