Type alias CalculateIdwResult
CalculateIdwResult: { code: "NotFound"; message: "no measurements found"; } | { code: "Ok"; data: { breaks: number[]; featureCollection: { features: { geometry: { coordinates: number[][][]; type: string; }; properties?: { idwValues: number[]; }; type: string; }; type: "FeatureCollection"; }[]; timesteps: RFC3339Date[]; }; } Type declaration
code: "NotFound"
message: "no measurements found"
Type declaration
code: "Ok"
data: {
breaks: number[];
featureCollection: {
features: {
geometry: {
coordinates: number[][][];
type: string;
};
properties?: {
idwValues: number[];
};
type: string;
};
type: "FeatureCollection";
}[];
timesteps: RFC3339Date[];
}
breaks: number[]
featureCollection: {
features: {
geometry: {
coordinates: number[][][];
type: string;
};
properties?: {
idwValues: number[];
};
type: string;
};
type: "FeatureCollection";
}[]
Linkcode
https://github.com/sensebox/openSenseMap-API/blob/2e645bdc4c80e668720b5eaaf384a35d2909569e/packages/api/lib/controllers/statisticsController.js#L112C7-L112C7