Skip to content

overridethis/usgsclient

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages