UNPKG

geonet

Version:

A Node.js API wrapper for GeoNet — Aotearoa's geological hazard monitoring system.

17 lines (16 loc) 526 B
import { Feature as CommonFeature, 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: number; count_mmi: Record<MMI, number>; } export type IntensityResponse = CommonFeature<IntensityProperties>;