@seta-labs/geo 0.6.0 → 0.7.0
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/dist/index.d.ts +232 -182
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @seta-labs/geo
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
- `reverseGeocode(input)` answers from a chain of sources: the ANNCSU register
|
|
6
|
+
and the OpenStreetMap house numbers loaded in seta-geo first (within 25 m),
|
|
7
|
+
TrueWay last (an exact street address within 50 m). Failing a number, the
|
|
8
|
+
named road TrueWay places the point on, as `match.level: 'VIA'` with
|
|
9
|
+
`streetNumber`, `location` and `distanceM` null. Never an approximate
|
|
10
|
+
number: with neither, `match` is null and `status` is `NO_RESULT`.
|
|
11
|
+
- The result gains `admin` (new type `GeoAdminArea`: `codComune`, `comune`,
|
|
12
|
+
`provincia`, `regione`), the municipality of the point from the ISTAT
|
|
13
|
+
boundaries, present even without a match; and `match` (new type
|
|
14
|
+
`GeoStreetMatch`): `level`, `provider` (`ANNCSU`, `OSM`, `TRUEWAY`),
|
|
15
|
+
`precision`, `street`, `streetNumber`, `postalCode`, `locality`,
|
|
16
|
+
`location`, `distanceM`, `sourceRef`.
|
|
17
|
+
- `address` is now composed from the match: `Via Ponte Schiavo 13, Roma (RM)`,
|
|
18
|
+
or `Via Ponte Schiavo, Roma (RM)` for a street alone.
|
|
19
|
+
- With `include: 'full'`, `results` is the raw answer of `match.provider`:
|
|
20
|
+
the TrueWay result list, or the ANNCSU/OSM record as one item.
|
|
21
|
+
- The request takes `maxDistanceM` (1-50), which can only tighten the limits.
|
|
22
|
+
|
|
3
23
|
## 0.6.0
|
|
4
24
|
|
|
5
25
|
- `comune(codComune)` gains the `territorio` block (new type
|
package/dist/index.d.ts
CHANGED
|
@@ -111,30 +111,30 @@ interface paths {
|
|
|
111
111
|
patch?: never;
|
|
112
112
|
trace?: never;
|
|
113
113
|
};
|
|
114
|
-
'/
|
|
114
|
+
'/territory/status': {
|
|
115
115
|
parameters: {
|
|
116
116
|
query?: never;
|
|
117
117
|
header?: never;
|
|
118
118
|
path?: never;
|
|
119
119
|
cookie?: never;
|
|
120
120
|
};
|
|
121
|
-
get
|
|
121
|
+
get: operations['TerritoryController_status'];
|
|
122
122
|
put?: never;
|
|
123
|
-
post
|
|
123
|
+
post?: never;
|
|
124
124
|
delete?: never;
|
|
125
125
|
options?: never;
|
|
126
126
|
head?: never;
|
|
127
127
|
patch?: never;
|
|
128
128
|
trace?: never;
|
|
129
129
|
};
|
|
130
|
-
'/
|
|
130
|
+
'/territory/datasets': {
|
|
131
131
|
parameters: {
|
|
132
132
|
query?: never;
|
|
133
133
|
header?: never;
|
|
134
134
|
path?: never;
|
|
135
135
|
cookie?: never;
|
|
136
136
|
};
|
|
137
|
-
get: operations['
|
|
137
|
+
get: operations['TerritoryController_datasets'];
|
|
138
138
|
put?: never;
|
|
139
139
|
post?: never;
|
|
140
140
|
delete?: never;
|
|
@@ -143,14 +143,14 @@ interface paths {
|
|
|
143
143
|
patch?: never;
|
|
144
144
|
trace?: never;
|
|
145
145
|
};
|
|
146
|
-
'/territory/
|
|
146
|
+
'/territory/comuni': {
|
|
147
147
|
parameters: {
|
|
148
148
|
query?: never;
|
|
149
149
|
header?: never;
|
|
150
150
|
path?: never;
|
|
151
151
|
cookie?: never;
|
|
152
152
|
};
|
|
153
|
-
get: operations['
|
|
153
|
+
get: operations['TerritoryController_listComuni'];
|
|
154
154
|
put?: never;
|
|
155
155
|
post?: never;
|
|
156
156
|
delete?: never;
|
|
@@ -159,14 +159,14 @@ interface paths {
|
|
|
159
159
|
patch?: never;
|
|
160
160
|
trace?: never;
|
|
161
161
|
};
|
|
162
|
-
'/territory/
|
|
162
|
+
'/territory/quotazioni': {
|
|
163
163
|
parameters: {
|
|
164
164
|
query?: never;
|
|
165
165
|
header?: never;
|
|
166
166
|
path?: never;
|
|
167
167
|
cookie?: never;
|
|
168
168
|
};
|
|
169
|
-
get: operations['
|
|
169
|
+
get: operations['TerritoryController_listQuotazioni'];
|
|
170
170
|
put?: never;
|
|
171
171
|
post?: never;
|
|
172
172
|
delete?: never;
|
|
@@ -175,14 +175,14 @@ interface paths {
|
|
|
175
175
|
patch?: never;
|
|
176
176
|
trace?: never;
|
|
177
177
|
};
|
|
178
|
-
'/territory/
|
|
178
|
+
'/territory/compravendite': {
|
|
179
179
|
parameters: {
|
|
180
180
|
query?: never;
|
|
181
181
|
header?: never;
|
|
182
182
|
path?: never;
|
|
183
183
|
cookie?: never;
|
|
184
184
|
};
|
|
185
|
-
get: operations['
|
|
185
|
+
get: operations['TerritoryController_listCompravendite'];
|
|
186
186
|
put?: never;
|
|
187
187
|
post?: never;
|
|
188
188
|
delete?: never;
|
|
@@ -191,14 +191,14 @@ interface paths {
|
|
|
191
191
|
patch?: never;
|
|
192
192
|
trace?: never;
|
|
193
193
|
};
|
|
194
|
-
'/territory/
|
|
194
|
+
'/territory/comuni/{codComune}': {
|
|
195
195
|
parameters: {
|
|
196
196
|
query?: never;
|
|
197
197
|
header?: never;
|
|
198
198
|
path?: never;
|
|
199
199
|
cookie?: never;
|
|
200
200
|
};
|
|
201
|
-
get: operations['
|
|
201
|
+
get: operations['TerritoryController_comune'];
|
|
202
202
|
put?: never;
|
|
203
203
|
post?: never;
|
|
204
204
|
delete?: never;
|
|
@@ -207,48 +207,48 @@ interface paths {
|
|
|
207
207
|
patch?: never;
|
|
208
208
|
trace?: never;
|
|
209
209
|
};
|
|
210
|
-
'/territory/
|
|
210
|
+
'/territory/resolve': {
|
|
211
211
|
parameters: {
|
|
212
212
|
query?: never;
|
|
213
213
|
header?: never;
|
|
214
214
|
path?: never;
|
|
215
215
|
cookie?: never;
|
|
216
216
|
};
|
|
217
|
-
get
|
|
217
|
+
get?: never;
|
|
218
218
|
put?: never;
|
|
219
|
-
post
|
|
219
|
+
post: operations['TerritoryController_resolve'];
|
|
220
220
|
delete?: never;
|
|
221
221
|
options?: never;
|
|
222
222
|
head?: never;
|
|
223
223
|
patch?: never;
|
|
224
224
|
trace?: never;
|
|
225
225
|
};
|
|
226
|
-
'/
|
|
226
|
+
'/cadastre/parcel': {
|
|
227
227
|
parameters: {
|
|
228
228
|
query?: never;
|
|
229
229
|
header?: never;
|
|
230
230
|
path?: never;
|
|
231
231
|
cookie?: never;
|
|
232
232
|
};
|
|
233
|
-
get
|
|
233
|
+
get?: never;
|
|
234
234
|
put?: never;
|
|
235
|
-
post
|
|
235
|
+
post: operations['CadastreController_parcel'];
|
|
236
236
|
delete?: never;
|
|
237
237
|
options?: never;
|
|
238
238
|
head?: never;
|
|
239
239
|
patch?: never;
|
|
240
240
|
trace?: never;
|
|
241
241
|
};
|
|
242
|
-
'/
|
|
242
|
+
'/cadastre/parcels': {
|
|
243
243
|
parameters: {
|
|
244
244
|
query?: never;
|
|
245
245
|
header?: never;
|
|
246
246
|
path?: never;
|
|
247
247
|
cookie?: never;
|
|
248
248
|
};
|
|
249
|
-
get
|
|
249
|
+
get: operations['CadastreController_listParcels'];
|
|
250
250
|
put?: never;
|
|
251
|
-
post
|
|
251
|
+
post?: never;
|
|
252
252
|
delete?: never;
|
|
253
253
|
options?: never;
|
|
254
254
|
head?: never;
|
|
@@ -410,83 +410,68 @@ interface components {
|
|
|
410
410
|
* @enum {string}
|
|
411
411
|
*/
|
|
412
412
|
include?: 'best' | 'full';
|
|
413
|
+
/** @description Tightens the distance a house number may lie from the point (25 m for ANNCSU and OSM, 50 m for TrueWay); it never widens them. */
|
|
414
|
+
maxDistanceM?: number;
|
|
413
415
|
};
|
|
414
|
-
|
|
415
|
-
/** @
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
/** @description True when the answer came from the cache, no provider call. */
|
|
422
|
-
cached: boolean;
|
|
423
|
-
/** @description Only with include=full: the provider's result list exactly as returned (all tiers, all fields). Empty array = the provider answered with no results. Null = the raw response is not available for this cached row. */
|
|
424
|
-
results?: {
|
|
425
|
-
[key: string]: unknown;
|
|
426
|
-
}[] | null;
|
|
416
|
+
GeoAdminAreaDto: {
|
|
417
|
+
/** @description Belfiore code, `H501`. */
|
|
418
|
+
codComune: string;
|
|
419
|
+
comune: string;
|
|
420
|
+
/** @description Province code, `RM`. */
|
|
421
|
+
provincia: string;
|
|
422
|
+
regione: string;
|
|
427
423
|
};
|
|
428
|
-
|
|
424
|
+
GeoLocationDto: {
|
|
429
425
|
lat: number;
|
|
430
426
|
lng: number;
|
|
431
427
|
};
|
|
432
|
-
|
|
433
|
-
/** @description Canonical cache key: "lat,lng" rounded to 5 decimals (~1 m). */
|
|
434
|
-
query: string;
|
|
428
|
+
GeoStreetMatchDto: {
|
|
435
429
|
/**
|
|
436
|
-
* @description
|
|
437
|
-
* @
|
|
430
|
+
* @description How far down the address the match reaches: `CIVICO` a house number close enough, `VIA` only the street, when no source has a number close enough.
|
|
431
|
+
* @enum {string}
|
|
438
432
|
*/
|
|
439
|
-
|
|
440
|
-
/** @example B885 */
|
|
441
|
-
codComune: string | null;
|
|
442
|
-
/** @description Null when the map gives none: blanks and "null" strings are cleared. */
|
|
443
|
-
sezione: string | null;
|
|
444
|
-
/** @example 36 */
|
|
445
|
-
foglio: string | null;
|
|
446
|
-
/** @example G */
|
|
447
|
-
allegato: string | null;
|
|
448
|
-
sviluppo: string | null;
|
|
449
|
-
/** @example 5101 */
|
|
450
|
-
particella: string | null;
|
|
451
|
-
/** @description The map answer exactly as returned (blank SEZIONE and "null" strings included). */
|
|
452
|
-
raw: {
|
|
453
|
-
[key: string]: unknown;
|
|
454
|
-
};
|
|
455
|
-
/** @description True when the answer came from the cache, no map call. */
|
|
456
|
-
cached: boolean;
|
|
457
|
-
};
|
|
458
|
-
CadastreParcelRowDto: {
|
|
459
|
-
/** @description Canonical cache key: "lat,lng" rounded to 5 decimals. */
|
|
460
|
-
query: string;
|
|
461
|
-
lat: number;
|
|
462
|
-
lng: number;
|
|
463
|
-
/** @example PARTICELLA */
|
|
464
|
-
tipologia: string;
|
|
465
|
-
/** @example B885 */
|
|
466
|
-
codComune: string | null;
|
|
467
|
-
/** @description Municipality name; null when the code is not in the registry. */
|
|
468
|
-
comune: string | null;
|
|
469
|
-
/** @example AL */
|
|
470
|
-
provincia: string | null;
|
|
471
|
-
sezione: string | null;
|
|
472
|
-
/** @example 36 */
|
|
473
|
-
foglio: string | null;
|
|
474
|
-
/** @example G */
|
|
475
|
-
allegato: string | null;
|
|
476
|
-
sviluppo: string | null;
|
|
477
|
-
/** @example 5101 */
|
|
478
|
-
particella: string | null;
|
|
433
|
+
level: 'CIVICO' | 'VIA';
|
|
479
434
|
/**
|
|
480
|
-
*
|
|
481
|
-
* @
|
|
435
|
+
* @description The source that answered: ANNCSU and OSM are loaded locally, TrueWay is paid.
|
|
436
|
+
* @enum {string}
|
|
482
437
|
*/
|
|
483
|
-
|
|
438
|
+
provider: 'ANNCSU' | 'OSM' | 'TRUEWAY';
|
|
439
|
+
/** @description How the source rates the position: `metodo-1`…`metodo-5` (ANNCSU), `nodo` or `edificio` (OSM), `exact` (TrueWay), `centroid` (a TrueWay street). */
|
|
440
|
+
precision: string;
|
|
441
|
+
street: string;
|
|
442
|
+
/** @description `12`, `12/A`, `12 rosso`; null at level `VIA`. */
|
|
443
|
+
streetNumber: string | null;
|
|
444
|
+
/** @description Null from ANNCSU, which has none. */
|
|
445
|
+
postalCode: string | null;
|
|
446
|
+
/** @description Hamlet or locality as the source names it; the municipality is in `admin`. */
|
|
447
|
+
locality: string | null;
|
|
448
|
+
/** @description Where the house number is; null for a street the source places at its centroid. */
|
|
449
|
+
location: components['schemas']['GeoLocationDto'] | null;
|
|
450
|
+
/** @description Metres from the requested point to `location`; null without a location. */
|
|
451
|
+
distanceM: number | null;
|
|
452
|
+
/** @description Id of the record in its source: ANNCSU access, OSM `n123`/`w456`. */
|
|
453
|
+
sourceRef: string | null;
|
|
484
454
|
};
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
455
|
+
ReverseGeocodeResultDto: {
|
|
456
|
+
/**
|
|
457
|
+
* @description OK when `match` is present.
|
|
458
|
+
* @enum {string}
|
|
459
|
+
*/
|
|
460
|
+
status: 'OK' | 'NO_RESULT';
|
|
461
|
+
/** @description Canonical cache key: "lat,lng" rounded to 5 decimals (~1 m). */
|
|
462
|
+
query: string;
|
|
463
|
+
/** @description The match as one line: `Via Ponte Schiavo 13, Roma (RM)`, or `Via Ponte Schiavo, Roma (RM)` at level `VIA`. */
|
|
464
|
+
address: string | null;
|
|
465
|
+
/** @description Municipality of the point from the ISTAT boundaries, whatever the match; null at sea, abroad or while no boundary edition is loaded. */
|
|
466
|
+
admin: components['schemas']['GeoAdminAreaDto'] | null;
|
|
467
|
+
/** @description An exact house number close enough, else the street a source names (level `VIA`); null when neither: never an approximate number. */
|
|
468
|
+
match: components['schemas']['GeoStreetMatchDto'] | null;
|
|
469
|
+
/** @description True when the answer came from stored rows: no source was asked again. */
|
|
470
|
+
cached: boolean;
|
|
471
|
+
/** @description Only with include=full: the raw answer of the source in `match.provider` (the TrueWay result list, or the ANNCSU/OSM record as one item); without a match, the raw answer of the last source asked. */
|
|
472
|
+
results?: {
|
|
473
|
+
[key: string]: unknown;
|
|
474
|
+
}[] | null;
|
|
490
475
|
};
|
|
491
476
|
TerritoryStatusDto: {
|
|
492
477
|
/** @description Latest OMI publication loaded (`YYYY-S`), null while no supply is loaded. */
|
|
@@ -651,7 +636,7 @@ interface components {
|
|
|
651
636
|
TerritoryComuneDetailDto: {
|
|
652
637
|
comune: components['schemas']['TerritoryComuneDto'];
|
|
653
638
|
istat: components['schemas']['TerritoryIstatDto'];
|
|
654
|
-
/** @description
|
|
639
|
+
/** @description Latest SITUAS edition that describes the municipality; null when none does, as for one suppressed before the first edition loaded. */
|
|
655
640
|
territorio: components['schemas']['TerritoryTerritorioDto'] | null;
|
|
656
641
|
/** @description Publication the zone quotations come from, null while none is loaded. */
|
|
657
642
|
semestre: string | null;
|
|
@@ -687,6 +672,69 @@ interface components {
|
|
|
687
672
|
TerritoryResolveResponseDto: {
|
|
688
673
|
items: components['schemas']['TerritoryPointResultDto'][];
|
|
689
674
|
};
|
|
675
|
+
CadastreParcelRequestDto: {
|
|
676
|
+
lat: number;
|
|
677
|
+
lng: number;
|
|
678
|
+
};
|
|
679
|
+
CadastreParcelResultDto: {
|
|
680
|
+
/** @description Canonical cache key: "lat,lng" rounded to 5 decimals (~1 m). */
|
|
681
|
+
query: string;
|
|
682
|
+
/**
|
|
683
|
+
* @description What lies under the point, verbatim from the map: PARTICELLA, STRADA, …
|
|
684
|
+
* @example PARTICELLA
|
|
685
|
+
*/
|
|
686
|
+
tipologia: string;
|
|
687
|
+
/** @example B885 */
|
|
688
|
+
codComune: string | null;
|
|
689
|
+
/** @description Null when the map gives none: blanks and "null" strings are cleared. */
|
|
690
|
+
sezione: string | null;
|
|
691
|
+
/** @example 36 */
|
|
692
|
+
foglio: string | null;
|
|
693
|
+
/** @example G */
|
|
694
|
+
allegato: string | null;
|
|
695
|
+
sviluppo: string | null;
|
|
696
|
+
/** @example 5101 */
|
|
697
|
+
particella: string | null;
|
|
698
|
+
/** @description The map answer exactly as returned (blank SEZIONE and "null" strings included). */
|
|
699
|
+
raw: {
|
|
700
|
+
[key: string]: unknown;
|
|
701
|
+
};
|
|
702
|
+
/** @description True when the answer came from the cache, no map call. */
|
|
703
|
+
cached: boolean;
|
|
704
|
+
};
|
|
705
|
+
CadastreParcelRowDto: {
|
|
706
|
+
/** @description Canonical cache key: "lat,lng" rounded to 5 decimals. */
|
|
707
|
+
query: string;
|
|
708
|
+
lat: number;
|
|
709
|
+
lng: number;
|
|
710
|
+
/** @example PARTICELLA */
|
|
711
|
+
tipologia: string;
|
|
712
|
+
/** @example B885 */
|
|
713
|
+
codComune: string | null;
|
|
714
|
+
/** @description Municipality name; null when the code is not in the registry. */
|
|
715
|
+
comune: string | null;
|
|
716
|
+
/** @example AL */
|
|
717
|
+
provincia: string | null;
|
|
718
|
+
sezione: string | null;
|
|
719
|
+
/** @example 36 */
|
|
720
|
+
foglio: string | null;
|
|
721
|
+
/** @example G */
|
|
722
|
+
allegato: string | null;
|
|
723
|
+
sviluppo: string | null;
|
|
724
|
+
/** @example 5101 */
|
|
725
|
+
particella: string | null;
|
|
726
|
+
/**
|
|
727
|
+
* Format: date-time
|
|
728
|
+
* @description When the map last gave this answer.
|
|
729
|
+
*/
|
|
730
|
+
updatedAt: string;
|
|
731
|
+
};
|
|
732
|
+
CadastreParcelsPageDto: {
|
|
733
|
+
page: number;
|
|
734
|
+
pageSize: number;
|
|
735
|
+
total: number;
|
|
736
|
+
items: components['schemas']['CadastreParcelRowDto'][];
|
|
737
|
+
};
|
|
690
738
|
};
|
|
691
739
|
responses: never;
|
|
692
740
|
parameters: never;
|
|
@@ -894,97 +942,6 @@ interface operations {
|
|
|
894
942
|
};
|
|
895
943
|
};
|
|
896
944
|
};
|
|
897
|
-
CadastreController_parcel: {
|
|
898
|
-
parameters: {
|
|
899
|
-
query?: never;
|
|
900
|
-
header?: {
|
|
901
|
-
/** @description no-cache: ask the provider and store its answer; no-store: never write the store; max-age=N: a stored answer older than N seconds is asked again; only-if-cached: never ask the provider. The response says what happened in Cache-Status (hit, fwd=miss|request|stale, stored) and, on a hit, Age. */
|
|
902
|
-
'Cache-Control'?: string;
|
|
903
|
-
};
|
|
904
|
-
path?: never;
|
|
905
|
-
cookie?: never;
|
|
906
|
-
};
|
|
907
|
-
requestBody: {
|
|
908
|
-
content: {
|
|
909
|
-
'application/json': components['schemas']['CadastreParcelRequestDto'];
|
|
910
|
-
};
|
|
911
|
-
};
|
|
912
|
-
responses: {
|
|
913
|
-
/** @description What the AdE cadastral map finds under the point: a parcel, a street, … */
|
|
914
|
-
200: {
|
|
915
|
-
headers: {
|
|
916
|
-
[name: string]: unknown;
|
|
917
|
-
};
|
|
918
|
-
content: {
|
|
919
|
-
'application/json': components['schemas']['CadastreParcelResultDto'];
|
|
920
|
-
};
|
|
921
|
-
};
|
|
922
|
-
/** @description Missing or invalid API key. */
|
|
923
|
-
401: {
|
|
924
|
-
headers: {
|
|
925
|
-
[name: string]: unknown;
|
|
926
|
-
};
|
|
927
|
-
content?: never;
|
|
928
|
-
};
|
|
929
|
-
/** @description CADASTRE_UNAVAILABLE or CADASTRE_INVALID_REPLY: the map gave no answer. */
|
|
930
|
-
502: {
|
|
931
|
-
headers: {
|
|
932
|
-
[name: string]: unknown;
|
|
933
|
-
};
|
|
934
|
-
content?: never;
|
|
935
|
-
};
|
|
936
|
-
/** @description CADASTRE_BLOCKED: the map is refusing calls; Retry-After says when to try again. */
|
|
937
|
-
503: {
|
|
938
|
-
headers: {
|
|
939
|
-
[name: string]: unknown;
|
|
940
|
-
};
|
|
941
|
-
content?: never;
|
|
942
|
-
};
|
|
943
|
-
/** @description NOT_CACHED: only-if-cached and no usable stored answer. */
|
|
944
|
-
504: {
|
|
945
|
-
headers: {
|
|
946
|
-
[name: string]: unknown;
|
|
947
|
-
};
|
|
948
|
-
content?: never;
|
|
949
|
-
};
|
|
950
|
-
};
|
|
951
|
-
};
|
|
952
|
-
CadastreController_listParcels: {
|
|
953
|
-
parameters: {
|
|
954
|
-
query?: {
|
|
955
|
-
page?: number;
|
|
956
|
-
pageSize?: number;
|
|
957
|
-
/** @description Cadastral municipality code. */
|
|
958
|
-
codComune?: string;
|
|
959
|
-
foglio?: string;
|
|
960
|
-
particella?: string;
|
|
961
|
-
/** @description What lies under the point. */
|
|
962
|
-
tipologia?: string;
|
|
963
|
-
};
|
|
964
|
-
header?: never;
|
|
965
|
-
path?: never;
|
|
966
|
-
cookie?: never;
|
|
967
|
-
};
|
|
968
|
-
requestBody?: never;
|
|
969
|
-
responses: {
|
|
970
|
-
/** @description The stored map answers, newest first; never a map call. */
|
|
971
|
-
200: {
|
|
972
|
-
headers: {
|
|
973
|
-
[name: string]: unknown;
|
|
974
|
-
};
|
|
975
|
-
content: {
|
|
976
|
-
'application/json': components['schemas']['CadastreParcelsPageDto'];
|
|
977
|
-
};
|
|
978
|
-
};
|
|
979
|
-
/** @description Missing or invalid API key. */
|
|
980
|
-
401: {
|
|
981
|
-
headers: {
|
|
982
|
-
[name: string]: unknown;
|
|
983
|
-
};
|
|
984
|
-
content?: never;
|
|
985
|
-
};
|
|
986
|
-
};
|
|
987
|
-
};
|
|
988
945
|
TerritoryController_status: {
|
|
989
946
|
parameters: {
|
|
990
947
|
query?: never;
|
|
@@ -1214,6 +1171,97 @@ interface operations {
|
|
|
1214
1171
|
};
|
|
1215
1172
|
};
|
|
1216
1173
|
};
|
|
1174
|
+
CadastreController_parcel: {
|
|
1175
|
+
parameters: {
|
|
1176
|
+
query?: never;
|
|
1177
|
+
header?: {
|
|
1178
|
+
/** @description no-cache: ask the provider and store its answer; no-store: never write the store; max-age=N: a stored answer older than N seconds is asked again; only-if-cached: never ask the provider. The response says what happened in Cache-Status (hit, fwd=miss|request|stale, stored) and, on a hit, Age. */
|
|
1179
|
+
'Cache-Control'?: string;
|
|
1180
|
+
};
|
|
1181
|
+
path?: never;
|
|
1182
|
+
cookie?: never;
|
|
1183
|
+
};
|
|
1184
|
+
requestBody: {
|
|
1185
|
+
content: {
|
|
1186
|
+
'application/json': components['schemas']['CadastreParcelRequestDto'];
|
|
1187
|
+
};
|
|
1188
|
+
};
|
|
1189
|
+
responses: {
|
|
1190
|
+
/** @description What the AdE cadastral map finds under the point: a parcel, a street, … */
|
|
1191
|
+
200: {
|
|
1192
|
+
headers: {
|
|
1193
|
+
[name: string]: unknown;
|
|
1194
|
+
};
|
|
1195
|
+
content: {
|
|
1196
|
+
'application/json': components['schemas']['CadastreParcelResultDto'];
|
|
1197
|
+
};
|
|
1198
|
+
};
|
|
1199
|
+
/** @description Missing or invalid API key. */
|
|
1200
|
+
401: {
|
|
1201
|
+
headers: {
|
|
1202
|
+
[name: string]: unknown;
|
|
1203
|
+
};
|
|
1204
|
+
content?: never;
|
|
1205
|
+
};
|
|
1206
|
+
/** @description CADASTRE_UNAVAILABLE or CADASTRE_INVALID_REPLY: the map gave no answer. */
|
|
1207
|
+
502: {
|
|
1208
|
+
headers: {
|
|
1209
|
+
[name: string]: unknown;
|
|
1210
|
+
};
|
|
1211
|
+
content?: never;
|
|
1212
|
+
};
|
|
1213
|
+
/** @description CADASTRE_BLOCKED: the map is refusing calls; Retry-After says when to try again. */
|
|
1214
|
+
503: {
|
|
1215
|
+
headers: {
|
|
1216
|
+
[name: string]: unknown;
|
|
1217
|
+
};
|
|
1218
|
+
content?: never;
|
|
1219
|
+
};
|
|
1220
|
+
/** @description NOT_CACHED: only-if-cached and no usable stored answer. */
|
|
1221
|
+
504: {
|
|
1222
|
+
headers: {
|
|
1223
|
+
[name: string]: unknown;
|
|
1224
|
+
};
|
|
1225
|
+
content?: never;
|
|
1226
|
+
};
|
|
1227
|
+
};
|
|
1228
|
+
};
|
|
1229
|
+
CadastreController_listParcels: {
|
|
1230
|
+
parameters: {
|
|
1231
|
+
query?: {
|
|
1232
|
+
page?: number;
|
|
1233
|
+
pageSize?: number;
|
|
1234
|
+
/** @description Cadastral municipality code. */
|
|
1235
|
+
codComune?: string;
|
|
1236
|
+
foglio?: string;
|
|
1237
|
+
particella?: string;
|
|
1238
|
+
/** @description What lies under the point. */
|
|
1239
|
+
tipologia?: string;
|
|
1240
|
+
};
|
|
1241
|
+
header?: never;
|
|
1242
|
+
path?: never;
|
|
1243
|
+
cookie?: never;
|
|
1244
|
+
};
|
|
1245
|
+
requestBody?: never;
|
|
1246
|
+
responses: {
|
|
1247
|
+
/** @description The stored map answers, newest first; never a map call. */
|
|
1248
|
+
200: {
|
|
1249
|
+
headers: {
|
|
1250
|
+
[name: string]: unknown;
|
|
1251
|
+
};
|
|
1252
|
+
content: {
|
|
1253
|
+
'application/json': components['schemas']['CadastreParcelsPageDto'];
|
|
1254
|
+
};
|
|
1255
|
+
};
|
|
1256
|
+
/** @description Missing or invalid API key. */
|
|
1257
|
+
401: {
|
|
1258
|
+
headers: {
|
|
1259
|
+
[name: string]: unknown;
|
|
1260
|
+
};
|
|
1261
|
+
content?: never;
|
|
1262
|
+
};
|
|
1263
|
+
};
|
|
1264
|
+
};
|
|
1217
1265
|
}
|
|
1218
1266
|
|
|
1219
1267
|
type ApiPaths = paths;
|
|
@@ -1224,6 +1272,8 @@ type GeocodeResult = ApiSchemas['GeocodeResultDto'];
|
|
|
1224
1272
|
type GeocodeBatchResponse = ApiSchemas['GeocodeBatchResponseDto'];
|
|
1225
1273
|
type ReverseGeocodeRequest = ApiSchemas['ReverseGeocodeRequestDto'];
|
|
1226
1274
|
type ReverseGeocodeResult = ApiSchemas['ReverseGeocodeResultDto'];
|
|
1275
|
+
type GeoStreetMatch = ApiSchemas['GeoStreetMatchDto'];
|
|
1276
|
+
type GeoAdminArea = ApiSchemas['GeoAdminAreaDto'];
|
|
1227
1277
|
type CadastreParcelRequest = ApiSchemas['CadastreParcelRequestDto'];
|
|
1228
1278
|
type CadastreParcelResult = ApiSchemas['CadastreParcelResultDto'];
|
|
1229
1279
|
type CadastreParcelsPage = ApiSchemas['CadastreParcelsPageDto'];
|
|
@@ -1300,4 +1350,4 @@ interface GeoClient {
|
|
|
1300
1350
|
declare function createGeoClient(options: GeoClientOptions): GeoClient;
|
|
1301
1351
|
|
|
1302
1352
|
export { ApiError, createGeoClient };
|
|
1303
|
-
export type { CadastreParcelRequest, CadastreParcelResult, CadastreParcelRow, CadastreParcelsPage, CadastreParcelsQuery, GeoClient, GeoClientOptions, GeocodeBatchRequest, GeocodeBatchResponse, GeocodeRequest, GeocodeResult, LookupCache, LookupOptions, RequestOptions, ReverseGeocodeRequest, ReverseGeocodeResult, TerritoryClient, TerritoryCompravendita, TerritoryCompravenditePage, TerritoryCompravenditeQuery, TerritoryComune, TerritoryComuneDetail, TerritoryComuneRiga, TerritoryComuniPage, TerritoryComuniQuery, TerritoryDatasets, TerritoryOmi, TerritoryPointResult, TerritoryQuotazione, TerritoryQuotazioniPage, TerritoryQuotazioniQuery, TerritoryResolveRequest, TerritoryResolveResponse, TerritoryStatus, TerritoryTerritorio };
|
|
1353
|
+
export type { CadastreParcelRequest, CadastreParcelResult, CadastreParcelRow, CadastreParcelsPage, CadastreParcelsQuery, GeoAdminArea, GeoClient, GeoClientOptions, GeoStreetMatch, GeocodeBatchRequest, GeocodeBatchResponse, GeocodeRequest, GeocodeResult, LookupCache, LookupOptions, RequestOptions, ReverseGeocodeRequest, ReverseGeocodeResult, TerritoryClient, TerritoryCompravendita, TerritoryCompravenditePage, TerritoryCompravenditeQuery, TerritoryComune, TerritoryComuneDetail, TerritoryComuneRiga, TerritoryComuniPage, TerritoryComuniQuery, TerritoryDatasets, TerritoryOmi, TerritoryPointResult, TerritoryQuotazione, TerritoryQuotazioniPage, TerritoryQuotazioniQuery, TerritoryResolveRequest, TerritoryResolveResponse, TerritoryStatus, TerritoryTerritorio };
|