geonet
Version:
A Node.js API wrapper for GeoNet — Aotearoa's geological hazard monitoring system.
17 lines (16 loc) • 580 B
TypeScript
import { FeatureCollection as CommonFeatureCollection, MMI } from "./common";
export interface IntensityRequest {
type: "measured";
}
export interface IntensityRequestReported {
type: "reported";
aggregation: undefined | "max" | "median";
publicID: undefined | string;
}
export type IntensityRequestUnion = IntensityRequest | IntensityRequestReported;
export interface IntensityProperties {
mmi: MMI;
count: undefined | number;
count_mmi: undefined | Record<MMI, number>;
}
export type IntensityResponse = CommonFeatureCollection<IntensityProperties>;