a simple node wrapper around the UK police data API
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
__tests__
src
.babelrc
.gitignore
.travis.yml
LICENSE
README.md
package-lock.json
package.json

README.md

ukpd

Build Status npm version

A client for the UK Police API, compatible with Node.js and the browser.

Installation

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

try {
  const data = await UKPD.streetLevel('52.629729', '-1.131592', '2016-07')
  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.