@nextgis/geocoder 1.18.17 → 1.18.19

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/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 {string} query - The search string to geocode.
31
- * @yields {AsyncGenerator<SearchItem>} - An async generator that yields search results.
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 {SearchItem} item - The search item to get detailed result for.
39
- * @returns {CancelablePromise<any>} - A promise that resolves to the detailed result.
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 {LngLatArray} coordinates - The longitude and latitude values.
48
- * @returns {AsyncGenerator<SearchItem>} - An async generator that yields reverse geocoding results.
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 {LngLatArray} coordinates - The longitude and latitude values.
106
- * @returns {Promise<SearchItem | undefined>} - A promise that resolves to the first reverse geocoding result, or undefined if no results are found.
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.17",
3
+ "version": "1.18.19",
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": "c35f8efdb73787faa15861cd664ef83ebddb09c0"
56
+ "gitHead": "764388a3b3875378718ca74d078b8c1f999895a6"
57
57
  }