GeoNet Node Package Documentation - v1.1.7
    Preparing search index...

    QuakeService class for fetching quake information from the GeoNet API.

    1.0.0

    Hierarchy (View Summary)

    Index
    • Fetches quake data for a given public ID.

      Parameters

      • publicID: string

        The public ID of the earthquake.

      Returns Promise<QuakeResponse>

      • A promise that resolves to the quake data.
      • Throws an error if the public ID is not provided.

      1.0.0

    • Fetches location history data for a given public ID. Not all quakes have a location history.

      Parameters

      • publicID: string

        The public ID for the earthquake.

      Returns Promise<QuakeHistoryResponse>

      • A promise that resolves to the quake history data. The features array may be empty!
      • Throws an error if the public ID is not provided.

      1.0.0

    • Fetches all quakes that have occurred over the past 365 days.

      Parameters

      • mmi: MMI

        The MMI to filter quakes by.

      Returns Promise<QuakesResponse>

      • A promise that resolves to the quakes data.
      • Throws an error if the MMI is not provided or is not a valid MMI.

      1.0.0