@geosdi/ngx-geocoding 1.1.1 → 1.1.2
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/esm2022/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Public API Surface of ngx-geocoding
|
|
3
3
|
*/
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
4
|
+
export * from "./lib/ngx-geocoding.module";
|
|
5
|
+
export * from "./lib/ngx-geocoding.service";
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9nZW9zZGkvc3VwcG9ydC9uZ3gtZ2VvY29kaW5nL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyw2QkFBNkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2Ygbmd4LWdlb2NvZGluZ1xuICovXG5cbmV4cG9ydCAqIGZyb20gXCIuL2xpYi9uZ3gtZ2VvY29kaW5nLm1vZHVsZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vbGliL25neC1nZW9jb2Rpbmcuc2VydmljZVwiO1xuIl19
|
|
@@ -5,11 +5,11 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
* @email vito.salvia@gmail.com
|
|
6
6
|
*/
|
|
7
7
|
export class NgxGeocodingModule {
|
|
8
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
10
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
8
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgxGeocodingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: NgxGeocodingModule }); }
|
|
10
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgxGeocodingModule }); }
|
|
11
11
|
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgxGeocodingModule, decorators: [{
|
|
13
13
|
type: NgModule,
|
|
14
14
|
args: [{
|
|
15
15
|
declarations: [],
|
|
@@ -36,10 +36,10 @@ export class NgxGeocodingService {
|
|
|
36
36
|
place_id: item.place_id,
|
|
37
37
|
}))));
|
|
38
38
|
}
|
|
39
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
40
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
39
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgxGeocodingService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
40
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgxGeocodingService, providedIn: "root" }); }
|
|
41
41
|
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgxGeocodingService, decorators: [{
|
|
43
43
|
type: Injectable,
|
|
44
44
|
args: [{
|
|
45
45
|
providedIn: "root",
|
|
@@ -9,11 +9,11 @@ import { tap, map } from 'rxjs/operators';
|
|
|
9
9
|
* @email vito.salvia@gmail.com
|
|
10
10
|
*/
|
|
11
11
|
class NgxGeocodingModule {
|
|
12
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
13
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
14
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
12
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgxGeocodingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
13
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: NgxGeocodingModule }); }
|
|
14
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgxGeocodingModule }); }
|
|
15
15
|
}
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgxGeocodingModule, decorators: [{
|
|
17
17
|
type: NgModule,
|
|
18
18
|
args: [{
|
|
19
19
|
declarations: [],
|
|
@@ -54,10 +54,10 @@ class NgxGeocodingService {
|
|
|
54
54
|
place_id: item.place_id,
|
|
55
55
|
}))));
|
|
56
56
|
}
|
|
57
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
58
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
57
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgxGeocodingService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
58
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgxGeocodingService, providedIn: "root" }); }
|
|
59
59
|
}
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgxGeocodingService, decorators: [{
|
|
61
61
|
type: Injectable,
|
|
62
62
|
args: [{
|
|
63
63
|
providedIn: "root",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geosdi-ngx-geocoding.mjs","sources":["../../../../projects/geosdi/support/ngx-geocoding/src/lib/ngx-geocoding.module.ts","../../../../projects/geosdi/support/ngx-geocoding/src/lib/ngx-geocoding.service.ts","../../../../projects/geosdi/support/ngx-geocoding/src/index.ts","../../../../projects/geosdi/support/ngx-geocoding/src/geosdi-ngx-geocoding.ts"],"sourcesContent":["import { NgModule } from \"@angular/core\";\n\n/**\n * @author Vito Salvia - CNR IMAA geoSDI Group\n * @email vito.salvia@gmail.com\n */\n@NgModule({\n declarations: [],\n imports: [],\n exports: [],\n})\nexport class NgxGeocodingModule {}\n","import { Injectable } from \"@angular/core\";\nimport { HttpClient } from \"@angular/common/http\";\nimport { GeocodingLocation } from \"./model/geocoding-location.model\";\nimport { Observable, Subject } from \"rxjs\";\nimport { map, tap } from \"rxjs/operators\";\n\n/**\n * @author Vito Salvia - CNR IMAA geoSDI Group\n * @email vito.salvia@gmail.com\n */\n@Injectable({\n providedIn: \"root\",\n})\nexport class NgxGeocodingService {\n subjectLocation = new Subject<GeocodingLocation>();\n subjectNoResults = new Subject();\n subjectRemove = new Subject();\n\n constructor(private http: HttpClient) {}\n\n /**\n *\n * @param address\n */\n geocode(address: string): Observable<GeocodingLocation[]> {\n const encoded = encodeURIComponent(address);\n return this.http\n .get<Location>(\n `https://nominatim.openstreetmap.org/search.php?q=${encoded}&format=jsonv2`,\n )\n .pipe(\n tap((res: any) => {\n if (res.length <= 0) {\n this.subjectNoResults.next(null);\n }\n // return res;\n }),\n )\n .pipe(\n map((res: any) =>\n res.map((item: any) => ({\n display_name: item.display_name,\n lat: item.lat,\n lon: item.lon,\n place_id: item.place_id,\n })),\n ),\n );\n }\n}\n","/*\n * Public API Surface of ngx-geocoding\n */\n\nexport * from
|
|
1
|
+
{"version":3,"file":"geosdi-ngx-geocoding.mjs","sources":["../../../../projects/geosdi/support/ngx-geocoding/src/lib/ngx-geocoding.module.ts","../../../../projects/geosdi/support/ngx-geocoding/src/lib/ngx-geocoding.service.ts","../../../../projects/geosdi/support/ngx-geocoding/src/index.ts","../../../../projects/geosdi/support/ngx-geocoding/src/geosdi-ngx-geocoding.ts"],"sourcesContent":["import { NgModule } from \"@angular/core\";\n\n/**\n * @author Vito Salvia - CNR IMAA geoSDI Group\n * @email vito.salvia@gmail.com\n */\n@NgModule({\n declarations: [],\n imports: [],\n exports: [],\n})\nexport class NgxGeocodingModule {}\n","import { Injectable } from \"@angular/core\";\nimport { HttpClient } from \"@angular/common/http\";\nimport { GeocodingLocation } from \"./model/geocoding-location.model\";\nimport { Observable, Subject } from \"rxjs\";\nimport { map, tap } from \"rxjs/operators\";\n\n/**\n * @author Vito Salvia - CNR IMAA geoSDI Group\n * @email vito.salvia@gmail.com\n */\n@Injectable({\n providedIn: \"root\",\n})\nexport class NgxGeocodingService {\n subjectLocation = new Subject<GeocodingLocation>();\n subjectNoResults = new Subject();\n subjectRemove = new Subject();\n\n constructor(private http: HttpClient) {}\n\n /**\n *\n * @param address\n */\n geocode(address: string): Observable<GeocodingLocation[]> {\n const encoded = encodeURIComponent(address);\n return this.http\n .get<Location>(\n `https://nominatim.openstreetmap.org/search.php?q=${encoded}&format=jsonv2`,\n )\n .pipe(\n tap((res: any) => {\n if (res.length <= 0) {\n this.subjectNoResults.next(null);\n }\n // return res;\n }),\n )\n .pipe(\n map((res: any) =>\n res.map((item: any) => ({\n display_name: item.display_name,\n lat: item.lat,\n lon: item.lon,\n place_id: item.place_id,\n })),\n ),\n );\n }\n}\n","/*\n * Public API Surface of ngx-geocoding\n */\n\nexport * from \"./lib/ngx-geocoding.module\";\nexport * from \"./lib/ngx-geocoding.service\";\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAEA;;;AAGG;MAMU,kBAAkB,CAAA;iIAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;kIAAlB,kBAAkB,EAAA,CAAA,CAAA;kIAAlB,kBAAkB,EAAA,CAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE,EAAE;AACd,iBAAA;;;ACJD;;;AAGG;MAIU,mBAAmB,CAAA;AAK5B,IAAA,WAAA,CAAoB,IAAgB,EAAA;QAAhB,IAAI,CAAA,IAAA,GAAJ,IAAI;AAJxB,QAAA,IAAA,CAAA,eAAe,GAAG,IAAI,OAAO,EAAqB;AAClD,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,OAAO,EAAE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G;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./lib/ngx-geocoding.module";
|
|
2
|
+
export * from "./lib/ngx-geocoding.service";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geosdi/ngx-geocoding",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Component to get a list of place with a geocoding service",
|
|
5
5
|
"author": "Salvia Vito (vito.salvia@gmail.com)",
|
|
6
6
|
"keywords": [
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
],
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@angular/common": ">=
|
|
16
|
-
"@angular/core": ">=
|
|
15
|
+
"@angular/common": ">=19.0.0",
|
|
16
|
+
"@angular/core": ">=19.0.0",
|
|
17
17
|
"typescript": ">=5.0.0",
|
|
18
18
|
"rxjs": ">=7.8.0"
|
|
19
19
|
},
|