Skip to content

AlexChesters/ukpd

Repository files navigation

ukpd

npm version CI

A Node.js client for the UK Police API.

Installation

  • npm install ukpd --save
const UKPD = require('ukpd')

try {
  const data = await UKPD.streetLevel(52.629729, -1.131592)
  console.log('data!', data)
} catch (err) {
  console.error('An error occurred', err)
}

You can find more information by looking at any of the available methods, or the examples.

Acknowledgements

All data is provided by data.police.uk under the Open Government Licence v3.0