@nextgis/geocoder 1.18.17 → 1.18.18
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/lib/geocoder.cjs.js +12 -4
- package/lib/geocoder.cjs.js.map +1 -1
- package/lib/geocoder.cjs.prod.js +1 -1
- package/lib/geocoder.cjs.prod.js.map +1 -1
- package/lib/geocoder.esm-browser.js +12 -4
- package/lib/geocoder.esm-browser.js.map +1 -1
- package/lib/geocoder.esm-browser.prod.js +1 -1
- package/lib/geocoder.esm-browser.prod.js.map +1 -1
- package/lib/geocoder.esm-bundler.js +12 -4
- package/lib/geocoder.esm-bundler.js.map +1 -1
- package/lib/geocoder.esm-bundler.prod.js +1 -1
- package/lib/geocoder.esm-bundler.prod.js.map +1 -1
- package/lib/geocoder.global.js +16 -6
- package/lib/geocoder.global.js.map +1 -1
- package/lib/geocoder.global.prod.js +1 -1
- package/lib/geocoder.global.prod.js.map +1 -1
- package/lib/index.d.ts +8 -8
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -27,16 +27,16 @@ declare abstract class BaseGeocoder<O extends Record<string, any> = Record<strin
|
|
|
27
27
|
* Search method to retrieve geocoding results.
|
|
28
28
|
*
|
|
29
29
|
* @abstract
|
|
30
|
-
* @param
|
|
31
|
-
* @yields
|
|
30
|
+
* @param query - The search string to geocode.
|
|
31
|
+
* @yields An async generator that yields search results.
|
|
32
32
|
*/
|
|
33
33
|
abstract search(query: string): AsyncGenerator<SearchItem>;
|
|
34
34
|
/**
|
|
35
35
|
* Method to retrieve detailed result for a specific search item.
|
|
36
36
|
*
|
|
37
37
|
* @abstract
|
|
38
|
-
* @param
|
|
39
|
-
* @returns
|
|
38
|
+
* @param item - The search item to get detailed result for.
|
|
39
|
+
* @returns A promise that resolves to the detailed result.
|
|
40
40
|
*/
|
|
41
41
|
abstract result(item: SearchItem): CancelablePromise<any>;
|
|
42
42
|
/**
|
|
@@ -44,8 +44,8 @@ declare abstract class BaseGeocoder<O extends Record<string, any> = Record<strin
|
|
|
44
44
|
* Takes coordinates and returns the corresponding address or location information.
|
|
45
45
|
*
|
|
46
46
|
* @abstract
|
|
47
|
-
* @param
|
|
48
|
-
* @returns
|
|
47
|
+
* @param coordinates - The longitude and latitude values.
|
|
48
|
+
* @returns An async generator that yields reverse geocoding results.
|
|
49
49
|
*/
|
|
50
50
|
abstract reverse(coordinates: LngLatArray): AsyncGenerator<SearchItem>;
|
|
51
51
|
/**
|
|
@@ -102,8 +102,8 @@ export declare class Geocoder extends BaseGeocoder<GeocoderOptions> {
|
|
|
102
102
|
/**
|
|
103
103
|
* Returns the first reverse geocoding result for given coordinates from any provider.
|
|
104
104
|
*
|
|
105
|
-
* @param
|
|
106
|
-
* @returns
|
|
105
|
+
* @param coordinates - The longitude and latitude values.
|
|
106
|
+
* @returns A promise that resolves to the first reverse geocoding result, or undefined if no results are found.
|
|
107
107
|
*/
|
|
108
108
|
reverseGeocodeFirstResult(coordinates: LngLatArray): Promise<SearchItem | undefined>;
|
|
109
109
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextgis/geocoder",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.18",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "lib/geocoder.esm-bundler.js",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"bugs": {
|
|
54
54
|
"url": "https://github.com/nextgis/nextgis_frontend/issues"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "383fb908139c79f1265a69fc9b48fef82028076c"
|
|
57
57
|
}
|