Skip to content

mazzimo/PoliceUK.NET

 
 

Repository files navigation

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.

About

Client for the UK Police data API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%