UsgsClient is a .NET Standard 1.1 library for querying the USGS Earthquake APIs.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
SampleApp
UsgsClient.Tests
UsgsClient
.gitignore
LICENSE
UsgsClient.sln
nuget.config
project-icon.png
readme.md

readme.md

Build status

NuGet Version

USGS Client

Description

UsgsClient is a .NET Standard 1.1 library for querying the USGS Earthquake APIs.

Installation

Install the UsgsClient from Nuget by executing the following command.

Install-Package UsgsClient

USGS Earthquake API

GeoJSON Summary Feed

Retrieving all significant earthquakes for the past week.

var svc = Usgs
    .Quakes
    .Feed();

var features = await svc
    .Summary(
        Magnitude.Significant,
        Timeframe.Week);

For documentation on the USGS Earthquake GeoJSON Summary Feed read the associated documentation at https://earthquake.usgs.gov

GeoJSON Detail Feed

Retrieving detail information for earthquake id ak16139649.

var svc = Usgs
    .Quakes
    .Feed();

var quakeId = "us20009jd6";

var quake = await svc.Detail(quakeId);

For documentation on the USGS Earthquake GeoJSON Detail Feed read the associated documentation at https://earthquake.usgs.gov

Roadmap

  1. Introduce support for USGS Earthquake Catalog.

Disclaimer

The software is not associated or maintained by USGS. The use of all USGS APIs should adhere to the rules defined in USGS's own Feed Lifecycle Policy .

License

UsgsClient is licensed under MIT. Refer to LICENSE for more information.