geonet
Version:
A Node.js API wrapper for GeoNet — Aotearoa's geological hazard monitoring system.
34 lines (33 loc) • 744 B
TypeScript
import { Feature as CommonFeature, MMI } from "./common";
export interface StrongRequest {
publicID: string;
}
export interface Metadata {
author: string;
depth: number;
description: string;
event_id: string;
latitude: number;
longitude: number;
mag_type: string;
magnitude: number;
version: string;
}
export interface StrongProperties {
distance: number;
location: string;
mmi: MMI;
name: string;
network: string;
pga_h: number;
pga_v: number;
pgv_h: number;
pgv_v: number;
station: string;
}
export type StrongFeature = CommonFeature<StrongProperties>;
export interface StrongResponse {
type: string;
metadata: Metadata;
features: StrongFeature[];
}