/united-kingdom-police-dotnet-client

Open data about crime and policing in England, Wales and Northern Ireland.

Primary LanguageC#The UnlicenseUnlicense

United Kingdom Police .NET Client

.NET CodeQL Analysis

The API provides a rich data source for information, including:

neighbourhood team members upcoming events street-level crime and outcome data nearest police stations

You can install it using the following .NET CLI command:

dotnet add package MikaelDui.UnitedKingdom.Police.Client --version *

Example

using PoliceClient client = new();

var crimes = await client.Crimes.GetStreetlevelCrimesAsync(51.375487, -0.096780);

foreach(var crime in crimes)
    Console.WriteLine(crime.Category);