<commit_before>[![Build status](https://ci.appveyor.com/api/projects/status/ael1mr6xk4yw97uf?svg=true)](https://ci.appveyor.com/project/rjhernandez/usgsclient-dt44t)

[![NuGet Version](http://img.shields.io/nuget/v/UsgsClient.svg?style=flat)](https://www.nuget.org/packages/UsgsClient/)

# USGS Client
## Description
UsgsClient is a `.NET Standard 1.1` library for querying the USGS Earthquake APIs.

## 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](
https://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson.php)

### GeoJSON Detail Feed
Retrieving detail information for earthquake id `ak16139649`.
```
var svc = Usgs
    .Quakes
    .Feed();
<commit_msg>Fixed Readme.md install instructions.<commit_after>[![Build status](https://ci.appveyor.com/api/projects/status/ael1mr6xk4yw97uf?svg=true)](https://ci.appveyor.com/project/rjhernandez/usgsclient-dt44t)

[![NuGet Version](http://img.shields.io/nuget/v/UsgsClient.svg?style=flat)](https://www.nuget.org/packages/UsgsClient/)

# 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 GeoJSON.NET -Version 1.0.60-alpha
Install-Package UsgsClient
```
> Current version of UsgsClient depends on an alpha release version of GeoJSON.NET that needs to be installed before the 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](
https://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson.php)

### GeoJSON Detail Feed
Retrieving detail information for earthquake id `ak16139649`.
```
var svc = Usgs
    .Quakes
    .Feed();

{'fraction_non_alphanumeric': 0.12180320762895536, 'fraction_numerical': 0.018205461638491547, 'mean_word_length': 4.342592592592593, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 10, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6378564', 'n_tokens_mistral': 814, 'n_tokens_neox': 744, 'n_words': 194}