catastro-gps-mcp 1.3.2 → 2.2.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 +23 -0
- package/README.md +12 -5
- package/build/client/catastrogps-api.d.ts +9 -2
- package/build/client/catastrogps-api.js +31 -10
- package/build/server.js +14 -0
- package/build/tools/compare-parcels.js +15 -15
- package/build/tools/get-agriculture.js +2 -2
- package/build/tools/get-boundaries.js +5 -6
- package/build/tools/get-crop-catalog.d.ts +4 -0
- package/build/tools/get-crop-catalog.js +44 -0
- package/build/tools/get-ground-motion.js +3 -3
- package/build/tools/get-market.js +47 -21
- package/build/tools/get-neighbors.d.ts +4 -0
- package/build/tools/get-neighbors.js +31 -0
- package/build/tools/get-parcel-sigpac.d.ts +4 -0
- package/build/tools/get-parcel-sigpac.js +80 -0
- package/build/tools/get-parcel-subparcels.d.ts +4 -0
- package/build/tools/get-parcel-subparcels.js +58 -0
- package/build/tools/get-parcel.js +42 -29
- package/build/tools/get-score.js +12 -18
- package/build/tools/get-solar.js +13 -13
- package/build/tools/get-terrain.js +3 -3
- package/build/tools/get-units.js +25 -25
- package/build/tools/get-value-history.js +9 -8
- package/build/tools/list-municipalities.d.ts +4 -0
- package/build/tools/list-municipalities.js +21 -0
- package/build/tools/list-provinces.d.ts +4 -0
- package/build/tools/list-provinces.js +19 -0
- package/build/tools/list-streets.d.ts +4 -0
- package/build/tools/list-streets.js +24 -0
- package/build/tools/search-address.js +17 -17
- package/build/tools/shared.js +4 -0
- package/build/types/index.d.ts +368 -205
- package/build/types/index.js +2 -0
- package/build/version.d.ts +2 -2
- package/build/version.js +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
package/build/types/index.d.ts
CHANGED
|
@@ -15,13 +15,13 @@ export declare const UNITS_COUNTRIES: readonly ["ES", "PV", "NA"];
|
|
|
15
15
|
export type UnitsCountryCode = (typeof UNITS_COUNTRIES)[number];
|
|
16
16
|
export declare const COMPARE_COUNTRIES: readonly ["ES", "PT", "FR", "IT", "DE"];
|
|
17
17
|
export type CompareCountryCode = (typeof COMPARE_COUNTRIES)[number];
|
|
18
|
+
export declare const CROP_LANGUAGES: readonly ["es", "ca", "en", "pt", "fr", "it", "de", "pl", "nl", "cs"];
|
|
19
|
+
export type CropLanguage = (typeof CROP_LANGUAGES)[number];
|
|
18
20
|
export declare const COUNTRY_CODES_TEXT: string;
|
|
19
21
|
export interface ApiResponse<T> {
|
|
20
22
|
success: boolean;
|
|
21
23
|
data: T;
|
|
22
|
-
|
|
23
|
-
code?: string;
|
|
24
|
-
searchesRemaining?: number;
|
|
24
|
+
remainingSearches?: number;
|
|
25
25
|
quota?: Quota;
|
|
26
26
|
}
|
|
27
27
|
export interface Quota {
|
|
@@ -45,105 +45,243 @@ export interface Quota {
|
|
|
45
45
|
used?: number;
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
+
export interface AvailableFields {
|
|
49
|
+
use?: boolean;
|
|
50
|
+
landClass?: boolean;
|
|
51
|
+
yearBuilt?: boolean;
|
|
52
|
+
builtArea?: boolean;
|
|
53
|
+
ownershipShare?: boolean;
|
|
54
|
+
dwellings?: boolean;
|
|
55
|
+
floors?: boolean;
|
|
56
|
+
address?: boolean;
|
|
57
|
+
addressSearch?: boolean;
|
|
58
|
+
}
|
|
48
59
|
export interface ParcelData {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
60
|
+
reference: string;
|
|
61
|
+
parcelReference?: string;
|
|
62
|
+
country?: string;
|
|
63
|
+
address?: string;
|
|
64
|
+
postalCode?: string;
|
|
65
|
+
municipality?: string;
|
|
66
|
+
region?: string;
|
|
67
|
+
latitude: number;
|
|
68
|
+
longitude: number;
|
|
69
|
+
googleMapsUrl?: string;
|
|
70
|
+
propertyType?: string;
|
|
71
|
+
use?: string;
|
|
72
|
+
landClass?: string;
|
|
73
|
+
builtArea?: number;
|
|
74
|
+
parcelArea?: number;
|
|
75
|
+
yearBuilt?: number;
|
|
76
|
+
ownershipShare?: number;
|
|
77
|
+
staircase?: string;
|
|
78
|
+
floor?: string;
|
|
79
|
+
door?: string;
|
|
80
|
+
dwellings?: number;
|
|
81
|
+
floors?: number;
|
|
82
|
+
source?: string;
|
|
83
|
+
fromOwnCopy?: boolean;
|
|
84
|
+
polygon?: number[][];
|
|
85
|
+
subparcelCount?: number;
|
|
86
|
+
cropSummary?: CropShare[];
|
|
87
|
+
availableFields?: AvailableFields;
|
|
88
|
+
}
|
|
89
|
+
export type CoordinatesSearchData = ParcelData;
|
|
90
|
+
export interface CropShare {
|
|
91
|
+
cropCode?: string;
|
|
92
|
+
crop?: string;
|
|
93
|
+
cropOriginal?: string;
|
|
94
|
+
useClass?: string;
|
|
95
|
+
area: number;
|
|
96
|
+
share: number;
|
|
97
|
+
}
|
|
98
|
+
export interface Subparcel {
|
|
99
|
+
id: string;
|
|
100
|
+
cropCode?: string;
|
|
101
|
+
crop?: string;
|
|
102
|
+
cropOriginal?: string;
|
|
103
|
+
intensity?: number;
|
|
104
|
+
area: number;
|
|
105
|
+
landType?: string;
|
|
106
|
+
landClass?: string;
|
|
107
|
+
kind: "cadastral" | "declaredCrop" | "landCover";
|
|
108
|
+
useClass?: string;
|
|
109
|
+
useClassName?: string;
|
|
110
|
+
source?: string;
|
|
111
|
+
geometry?: unknown;
|
|
112
|
+
}
|
|
113
|
+
export interface SubparcelsData {
|
|
114
|
+
reference: string;
|
|
115
|
+
country?: string;
|
|
116
|
+
parcelArea?: number;
|
|
117
|
+
count: number;
|
|
118
|
+
subparcels: Subparcel[];
|
|
119
|
+
}
|
|
120
|
+
export declare const SIGPAC_COUNTRIES: readonly ["ES", "PV", "NA"];
|
|
121
|
+
export interface SIGPACParcelKey {
|
|
122
|
+
province: number;
|
|
123
|
+
municipality: number;
|
|
124
|
+
aggregate: number;
|
|
125
|
+
zone: number;
|
|
126
|
+
polygon: number;
|
|
127
|
+
parcel: number;
|
|
128
|
+
}
|
|
129
|
+
export interface SIGPACEnclosure extends SIGPACParcelKey {
|
|
130
|
+
id: string;
|
|
131
|
+
enclosure: number;
|
|
132
|
+
landUseCode: string;
|
|
133
|
+
landUse?: string;
|
|
134
|
+
cropCode?: string;
|
|
135
|
+
useClass?: string;
|
|
136
|
+
useClassName?: string;
|
|
137
|
+
areaHa: number;
|
|
138
|
+
irrigationPct: number | null;
|
|
139
|
+
meanSlopePct: number | null;
|
|
140
|
+
altitudeM: number | null;
|
|
141
|
+
pastureEligibilityPct: number | null;
|
|
142
|
+
capRegion: number | null;
|
|
143
|
+
incidents: Array<{
|
|
144
|
+
code: number;
|
|
145
|
+
description?: string;
|
|
146
|
+
}> | null;
|
|
147
|
+
geometry: unknown;
|
|
148
|
+
}
|
|
149
|
+
export interface SIGPACData {
|
|
150
|
+
reference: string;
|
|
151
|
+
country: string;
|
|
152
|
+
sigpacParcel: SIGPACParcelKey | null;
|
|
153
|
+
match?: "reference" | "point";
|
|
154
|
+
count: number;
|
|
155
|
+
totalAreaHa: number;
|
|
156
|
+
crs: string;
|
|
157
|
+
retrievedAt?: string;
|
|
158
|
+
source?: {
|
|
159
|
+
name?: string;
|
|
160
|
+
provider?: string;
|
|
161
|
+
license?: string;
|
|
162
|
+
attribution?: string;
|
|
163
|
+
url?: string;
|
|
82
164
|
};
|
|
83
|
-
|
|
165
|
+
enclosures: SIGPACEnclosure[] | null;
|
|
166
|
+
}
|
|
167
|
+
export interface CropReference {
|
|
168
|
+
code: string;
|
|
169
|
+
source: string;
|
|
170
|
+
name: string;
|
|
171
|
+
original: string;
|
|
172
|
+
useClass?: string;
|
|
173
|
+
labels: Record<string, string>;
|
|
174
|
+
}
|
|
175
|
+
export interface UseClassReference {
|
|
176
|
+
code: string;
|
|
177
|
+
name: string;
|
|
178
|
+
labels: Record<string, string>;
|
|
179
|
+
}
|
|
180
|
+
export interface CropCatalogData {
|
|
181
|
+
locale: string;
|
|
182
|
+
locales: string[];
|
|
183
|
+
sources: string[];
|
|
184
|
+
count: number;
|
|
185
|
+
useClasses: UseClassReference[];
|
|
186
|
+
crops: CropReference[];
|
|
187
|
+
}
|
|
188
|
+
export interface NeighborsData {
|
|
189
|
+
country: string;
|
|
190
|
+
supported: boolean;
|
|
191
|
+
count: number;
|
|
192
|
+
neighbors: Array<{
|
|
193
|
+
reference: string;
|
|
194
|
+
latitude: number;
|
|
195
|
+
longitude: number;
|
|
196
|
+
}>;
|
|
197
|
+
}
|
|
198
|
+
export interface ProvincesData {
|
|
199
|
+
total: number;
|
|
200
|
+
provinces: Array<{
|
|
201
|
+
code: string;
|
|
202
|
+
name: string;
|
|
203
|
+
}>;
|
|
204
|
+
}
|
|
205
|
+
export interface MunicipalitiesData {
|
|
206
|
+
total: number;
|
|
207
|
+
municipalities: Array<{
|
|
208
|
+
code: string;
|
|
209
|
+
ineCode?: string;
|
|
210
|
+
name: string;
|
|
211
|
+
}>;
|
|
212
|
+
}
|
|
213
|
+
export interface StreetsData {
|
|
214
|
+
total: number;
|
|
215
|
+
streets: Array<{
|
|
216
|
+
code: string;
|
|
217
|
+
type: string;
|
|
218
|
+
name: string;
|
|
219
|
+
fullName: string;
|
|
220
|
+
}>;
|
|
84
221
|
}
|
|
85
222
|
export interface AddressCandidate {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
223
|
+
reference: string;
|
|
224
|
+
country?: string;
|
|
225
|
+
address?: string;
|
|
226
|
+
number?: number;
|
|
227
|
+
postalCode?: string;
|
|
228
|
+
municipality?: string;
|
|
229
|
+
region?: string;
|
|
230
|
+
latitude?: number;
|
|
231
|
+
longitude?: number;
|
|
232
|
+
confidence?: number;
|
|
233
|
+
numberMatches?: boolean;
|
|
234
|
+
municipalityMatches?: boolean;
|
|
235
|
+
inOwnCopy?: boolean;
|
|
236
|
+
cadastreAddress?: string;
|
|
237
|
+
use?: string;
|
|
238
|
+
dwellings?: number;
|
|
239
|
+
yearBuilt?: number;
|
|
103
240
|
}
|
|
104
241
|
export interface AddressCandidatesData {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
242
|
+
query?: {
|
|
243
|
+
text?: string;
|
|
244
|
+
street?: string;
|
|
245
|
+
number?: number;
|
|
246
|
+
municipality?: string;
|
|
247
|
+
postalCode?: string;
|
|
111
248
|
};
|
|
112
|
-
|
|
249
|
+
candidates: AddressCandidate[] | null;
|
|
113
250
|
attribution?: string;
|
|
114
251
|
}
|
|
115
252
|
export interface Unit {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
253
|
+
reference: string;
|
|
254
|
+
staircase?: string;
|
|
255
|
+
floor?: string;
|
|
256
|
+
door?: string;
|
|
257
|
+
use?: string;
|
|
258
|
+
area?: number;
|
|
259
|
+
description?: string;
|
|
260
|
+
ownershipShare?: number;
|
|
261
|
+
yearBuilt?: number;
|
|
262
|
+
address?: string;
|
|
126
263
|
}
|
|
127
264
|
export interface Construction {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
265
|
+
staircase?: string;
|
|
266
|
+
floor?: string;
|
|
267
|
+
door?: string;
|
|
268
|
+
use?: string;
|
|
269
|
+
area?: number;
|
|
270
|
+
description?: string;
|
|
134
271
|
}
|
|
135
272
|
export interface UnitsPageData {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
273
|
+
reference: string;
|
|
274
|
+
address?: string;
|
|
275
|
+
postalCode?: string;
|
|
276
|
+
municipality?: string;
|
|
277
|
+
region?: string;
|
|
278
|
+
mainUse?: string;
|
|
279
|
+
totalArea?: number;
|
|
280
|
+
yearBuilt?: number;
|
|
281
|
+
unitCount?: number;
|
|
282
|
+
propertyUnitCount?: number;
|
|
283
|
+
units: Unit[] | null;
|
|
284
|
+
constructions?: Construction[] | null;
|
|
147
285
|
truncated?: boolean;
|
|
148
286
|
nextCursor?: string;
|
|
149
287
|
dataSource?: string;
|
|
@@ -163,19 +301,17 @@ export interface ResolveData {
|
|
|
163
301
|
ambiguous: boolean;
|
|
164
302
|
}
|
|
165
303
|
export interface PolygonData {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
pais?: string;
|
|
169
|
-
latitud?: number;
|
|
170
|
-
longitud?: number;
|
|
304
|
+
reference: string;
|
|
305
|
+
country?: string;
|
|
171
306
|
centroid?: {
|
|
172
307
|
latitude: number;
|
|
173
308
|
longitude: number;
|
|
174
309
|
};
|
|
175
310
|
area?: number;
|
|
176
|
-
superficieParcela?: number;
|
|
177
|
-
poligono?: number[][];
|
|
178
311
|
geojson?: unknown;
|
|
312
|
+
officialRecordUrl?: string;
|
|
313
|
+
cadastreUrl?: string;
|
|
314
|
+
googleMapsUrl?: string;
|
|
179
315
|
}
|
|
180
316
|
export interface TerrainSource {
|
|
181
317
|
name: string;
|
|
@@ -192,54 +328,54 @@ export interface TerrainSite {
|
|
|
192
328
|
type?: string;
|
|
193
329
|
designation?: string;
|
|
194
330
|
country: string;
|
|
195
|
-
|
|
331
|
+
overlapPct: number | null;
|
|
196
332
|
}
|
|
197
333
|
export interface ClimatePeriod {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
334
|
+
startYear: number;
|
|
335
|
+
endYear: number;
|
|
336
|
+
meanTempC?: number;
|
|
337
|
+
annualPrecipMm?: number;
|
|
338
|
+
frostDaysPerYear?: number;
|
|
339
|
+
hotDaysPerYear?: number;
|
|
204
340
|
}
|
|
205
341
|
export interface TerrainData {
|
|
206
|
-
|
|
342
|
+
reference: string;
|
|
207
343
|
country: string;
|
|
208
344
|
relief: {
|
|
209
345
|
status: "ok" | "no_data" | "unavailable";
|
|
210
|
-
|
|
346
|
+
elevationM?: {
|
|
211
347
|
mean: number;
|
|
212
348
|
min: number;
|
|
213
349
|
max: number;
|
|
214
350
|
};
|
|
215
351
|
slope?: {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
352
|
+
meanPct: number;
|
|
353
|
+
meanDeg: number;
|
|
354
|
+
maxPct: number;
|
|
219
355
|
class: string;
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
356
|
+
maxClass: string;
|
|
357
|
+
shareOver10Pct: number;
|
|
358
|
+
classesPct: Record<string, number>;
|
|
223
359
|
};
|
|
224
360
|
aspect?: {
|
|
225
361
|
dominant: string;
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
362
|
+
dominantSharePct: number;
|
|
363
|
+
meanDeg: number | null;
|
|
364
|
+
flatSharePct: number;
|
|
365
|
+
sectorsPct: Record<string, number>;
|
|
230
366
|
};
|
|
231
367
|
sample?: {
|
|
232
368
|
method: string;
|
|
233
369
|
cells: number;
|
|
234
|
-
|
|
370
|
+
resolutionM: number;
|
|
235
371
|
};
|
|
236
372
|
source: TerrainSource;
|
|
237
373
|
};
|
|
238
|
-
|
|
374
|
+
protectedAreas: {
|
|
239
375
|
status: "ok" | "no_data" | "unavailable";
|
|
240
376
|
intersects?: boolean;
|
|
241
377
|
inside?: boolean;
|
|
242
|
-
|
|
378
|
+
maxOverlapPct?: number | null;
|
|
243
379
|
natura2000?: TerrainSite[];
|
|
244
380
|
national?: TerrainSite[];
|
|
245
381
|
method?: string;
|
|
@@ -250,26 +386,26 @@ export interface TerrainData {
|
|
|
250
386
|
baseline?: ClimatePeriod;
|
|
251
387
|
recent?: ClimatePeriod;
|
|
252
388
|
change?: {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
389
|
+
meanTempC?: number;
|
|
390
|
+
annualPrecipMm?: number;
|
|
391
|
+
annualPrecipPct?: number;
|
|
392
|
+
frostDaysPerYear?: number;
|
|
393
|
+
hotDaysPerYear?: number;
|
|
258
394
|
};
|
|
259
|
-
|
|
260
|
-
|
|
395
|
+
frostThresholdC?: number;
|
|
396
|
+
hotThresholdC?: number;
|
|
261
397
|
cell?: {
|
|
262
398
|
lat: number;
|
|
263
399
|
lng: number;
|
|
264
|
-
|
|
400
|
+
resolutionDeg: number;
|
|
265
401
|
};
|
|
266
402
|
source?: TerrainSource;
|
|
267
403
|
};
|
|
268
|
-
|
|
404
|
+
calculatedAt: string;
|
|
269
405
|
provenance: string;
|
|
270
406
|
}
|
|
271
407
|
export interface GroundMotionData {
|
|
272
|
-
|
|
408
|
+
reference: string;
|
|
273
409
|
country: string;
|
|
274
410
|
status: "ok" | "no_data" | "unavailable";
|
|
275
411
|
reason?: "no_reflectors" | "outside_coverage" | "parcel_too_large";
|
|
@@ -278,125 +414,152 @@ export interface GroundMotionData {
|
|
|
278
414
|
to: string;
|
|
279
415
|
label: string;
|
|
280
416
|
};
|
|
281
|
-
|
|
417
|
+
groundMotion?: {
|
|
282
418
|
class: string;
|
|
283
|
-
|
|
419
|
+
worstClass: string;
|
|
284
420
|
vertical: {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
421
|
+
meanMmYear: number;
|
|
422
|
+
maxSubsidenceMmYear: number;
|
|
423
|
+
maxUpliftMmYear: number;
|
|
424
|
+
stdMmYear?: number;
|
|
425
|
+
accelerationMmYear2?: number;
|
|
426
|
+
rmseMm?: number;
|
|
291
427
|
};
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
428
|
+
eastWest?: {
|
|
429
|
+
meanMmYear: number;
|
|
430
|
+
stdMmYear?: number;
|
|
295
431
|
};
|
|
296
|
-
|
|
432
|
+
yearlyDisplacement?: Array<{
|
|
297
433
|
year: number;
|
|
298
434
|
mm: number;
|
|
299
435
|
}>;
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
436
|
+
cellsWithData: number;
|
|
437
|
+
cellsConsidered: number;
|
|
438
|
+
coveragePct: number;
|
|
303
439
|
basis: "parcel" | "surroundings";
|
|
304
|
-
|
|
440
|
+
cellSizeM: number;
|
|
305
441
|
};
|
|
306
442
|
source: TerrainSource;
|
|
307
|
-
|
|
443
|
+
calculatedAt: string;
|
|
308
444
|
provenance: string;
|
|
309
445
|
}
|
|
310
446
|
export interface SolarData {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
}
|
|
325
|
-
export interface AgroData {
|
|
326
|
-
agro?: Record<string, unknown>;
|
|
447
|
+
available: boolean;
|
|
448
|
+
status: string;
|
|
449
|
+
annualProductionKwh: number;
|
|
450
|
+
installableKw: number;
|
|
451
|
+
annualSavingsEur: number;
|
|
452
|
+
paybackYears: number;
|
|
453
|
+
co2AvoidedKg: number;
|
|
454
|
+
irradiationKwhM2: number;
|
|
455
|
+
solarGrade: number;
|
|
456
|
+
optimalOrientation?: string;
|
|
457
|
+
tiltAngleDeg?: number;
|
|
458
|
+
installationCostEur?: number;
|
|
459
|
+
source?: string;
|
|
327
460
|
}
|
|
461
|
+
export type AgroData = Record<string, unknown>;
|
|
328
462
|
export interface MarketData {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
463
|
+
available: boolean;
|
|
464
|
+
status?: string;
|
|
465
|
+
estimatedPriceEur?: number;
|
|
466
|
+
pricePerM2Eur?: number;
|
|
467
|
+
salesCount?: number;
|
|
468
|
+
lastSaleDate?: string;
|
|
469
|
+
granularity?: string;
|
|
470
|
+
source?: string;
|
|
471
|
+
message?: string;
|
|
472
|
+
dataQuality?: string;
|
|
473
|
+
updatedAt?: string;
|
|
474
|
+
zonePrices?: ZonePrices;
|
|
475
|
+
cropPrices?: CropLandPrice[];
|
|
476
|
+
priceNote?: string;
|
|
477
|
+
}
|
|
478
|
+
export interface CropLandPrice {
|
|
479
|
+
cropGroup: string;
|
|
480
|
+
cropGroupName?: string;
|
|
481
|
+
landUseCodes?: string[];
|
|
482
|
+
basis?: string;
|
|
483
|
+
areaHa?: number;
|
|
484
|
+
pricePerHaEur: number;
|
|
485
|
+
salesCount?: number;
|
|
486
|
+
level?: string;
|
|
487
|
+
zone?: string;
|
|
488
|
+
period?: string;
|
|
489
|
+
}
|
|
490
|
+
export interface OfficialZonePrice {
|
|
491
|
+
pricePerM2Eur: number;
|
|
492
|
+
pricePerHaEur?: number;
|
|
493
|
+
statistic: string;
|
|
494
|
+
authority: string;
|
|
495
|
+
period: string;
|
|
496
|
+
}
|
|
497
|
+
export interface ZonePrices {
|
|
498
|
+
zone: string;
|
|
499
|
+
zoneLevel: string;
|
|
500
|
+
municipality?: string;
|
|
501
|
+
urban?: OfficialZonePrice;
|
|
502
|
+
rural?: OfficialZonePrice;
|
|
342
503
|
}
|
|
343
504
|
export interface ScoreData {
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
};
|
|
505
|
+
score: number;
|
|
506
|
+
rating: string;
|
|
507
|
+
recommendation?: string;
|
|
508
|
+
components?: Record<string, number>;
|
|
509
|
+
availableComponents?: Record<string, boolean>;
|
|
510
|
+
riskFactors?: string[];
|
|
511
|
+
opportunityFactors?: string[];
|
|
352
512
|
}
|
|
353
513
|
export interface ValueHistoryEntry {
|
|
354
|
-
|
|
514
|
+
id?: string;
|
|
515
|
+
reference?: string;
|
|
355
516
|
country?: string;
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
517
|
+
cadastralValueEur?: number;
|
|
518
|
+
area?: number;
|
|
519
|
+
use?: string;
|
|
520
|
+
capturedOn?: string;
|
|
521
|
+
source?: string;
|
|
522
|
+
createdAt?: string;
|
|
361
523
|
}
|
|
362
524
|
export interface ValueHistoryData {
|
|
363
|
-
|
|
525
|
+
reference: string;
|
|
364
526
|
country: string;
|
|
365
527
|
entries: ValueHistoryEntry[] | null;
|
|
366
528
|
totalEntries: number;
|
|
367
|
-
|
|
529
|
+
areaChangePct: number | null;
|
|
368
530
|
}
|
|
369
531
|
export interface CompareItem {
|
|
370
|
-
|
|
532
|
+
reference: string;
|
|
371
533
|
country: string;
|
|
372
|
-
|
|
534
|
+
parcel?: Partial<ParcelData>;
|
|
373
535
|
solar?: Partial<SolarData>;
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
536
|
+
agriculture?: {
|
|
537
|
+
available?: boolean;
|
|
538
|
+
status?: string;
|
|
539
|
+
isAgricultural?: boolean;
|
|
540
|
+
landUse?: string;
|
|
541
|
+
cropGroup?: string;
|
|
542
|
+
crop?: string;
|
|
543
|
+
areaHa?: number;
|
|
381
544
|
};
|
|
382
545
|
score?: {
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
546
|
+
available?: boolean;
|
|
547
|
+
score?: number;
|
|
548
|
+
rating?: string;
|
|
386
549
|
};
|
|
387
550
|
error?: string;
|
|
388
551
|
}
|
|
389
552
|
export interface CompareData {
|
|
390
|
-
|
|
553
|
+
parcels: CompareItem[];
|
|
391
554
|
total: number;
|
|
392
555
|
}
|
|
393
556
|
export interface ApiErrorResponse {
|
|
394
557
|
success: false;
|
|
395
|
-
error?: string;
|
|
396
|
-
message?: string;
|
|
397
558
|
code?: string;
|
|
559
|
+
message?: string;
|
|
560
|
+
error?: string;
|
|
561
|
+
details?: unknown;
|
|
398
562
|
data?: unknown;
|
|
399
|
-
parsed?: unknown;
|
|
400
563
|
}
|
|
401
564
|
export interface ServerConfig {
|
|
402
565
|
apiKey: string;
|