@nextgis/geocoder 3.0.0-alpha.7 → 3.0.0-alpha.9
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 +85 -72
- 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 +86 -73
- 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 +85 -72
- 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 +86 -73
- 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 +21 -3
- package/package.json +4 -4
package/lib/index.d.ts
CHANGED
|
@@ -210,10 +210,28 @@ declare class NgwProvider extends BaseProvider<NgwProviderOptions> {
|
|
|
210
210
|
private _items;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
|
|
213
|
+
/**
|
|
214
|
+
* Nominatim based options {@link https://nominatim.org/release-docs/latest/api/Search}
|
|
215
|
+
*/
|
|
216
|
+
interface NominatimProviderOptions extends BaseProviderOptions {
|
|
217
|
+
/** Browser language string */
|
|
218
|
+
language?: string;
|
|
219
|
+
/** Comma-separated list of country codes {}*/
|
|
220
|
+
countrycodes?: string;
|
|
221
|
+
/** Limit the number of search results */
|
|
222
|
+
limit?: number;
|
|
223
|
+
/** Include address details in the results */
|
|
224
|
+
addressdetails?: boolean;
|
|
225
|
+
/** Restrict the results to the specified viewbox */
|
|
226
|
+
bounded?: boolean;
|
|
227
|
+
/** Focuses the search on the given area [minLon, minLat, maxLon, maxLat] */
|
|
228
|
+
viewbox?: [number, number, number, number];
|
|
229
|
+
}
|
|
230
|
+
declare class NominatimProvider extends BaseProvider<NominatimProviderOptions> implements NominatimProviderOptions {
|
|
231
|
+
options?: NominatimProviderOptions | undefined;
|
|
214
232
|
searchUrl: string;
|
|
215
|
-
private
|
|
216
|
-
constructor(options?:
|
|
233
|
+
private _abortControllers;
|
|
234
|
+
constructor(options?: NominatimProviderOptions | undefined);
|
|
217
235
|
abort(): void;
|
|
218
236
|
search(val: string): AsyncGenerator<SearchItem, void, unknown>;
|
|
219
237
|
result(model: SearchItem): Promise<ResultItem>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextgis/geocoder",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "lib/geocoder.esm-bundler.js",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"types": "lib/index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@nextgis/cancelable-promise": "^3.0.0-alpha.5",
|
|
12
|
-
"@nextgis/ngw-connector": "^3.0.0-alpha.
|
|
13
|
-
"@nextgis/ngw-kit": "^3.0.0-alpha.
|
|
12
|
+
"@nextgis/ngw-connector": "^3.0.0-alpha.8",
|
|
13
|
+
"@nextgis/ngw-kit": "^3.0.0-alpha.8",
|
|
14
14
|
"@nextgis/utils": "^3.0.0-alpha.5",
|
|
15
15
|
"@types/events": "^3.0.0",
|
|
16
16
|
"@types/geojson": "^7946.0.14",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"bugs": {
|
|
54
54
|
"url": "https://github.com/nextgis/nextgis_frontend/issues"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "6b04e3730673793b17e27bbb50c26a0e27781a9f"
|
|
57
57
|
}
|