Client for the UK Police data API
C#
Latest commit eb8a332 Jun 3, 2016 @FlyingTopHat Merge pull request #19 from mazzimo/master
Implement Neighbourhood Team and Neighbourhood Events API calls, https default instead of http

README.md

PoliceUK.NET Build Status

An API wrapper for the Police UK API.

Example Usages

Get a summary for all forces

var policeClient = new PoliceUkClient();
IEnumerable<ForceSummary> forces = policeClient.Forces();

Get street level crimes

var policeClient = new PoliceUkClient();

var chawton = new Geoposition(51.133112, -0.989054);
StreetLevelCrimeResults results = policeClient.StreetLevelCrimes(chawton);

foreach (Crime crime in results.Crimes)
{
    Console.WriteLine(crime.Category);
}

Installation

NuGet

Run the following command in the Package Manager Console

PM> Install-Package PoliceUK 

Manually

Download the latest release and add a reference to PoliceUK.dll in your project.

Prerequisites

.NET 3.5+ or Mono.

License

PoliceUK.NET is released under the MIT License.