Skip to content

Instantly share code, notes, and snippets.

@AlexChesters
Created June 18, 2020 12:34
Show Gist options
  • Save AlexChesters/775ba3c969a7479f99b7271a3f0efdff to your computer and use it in GitHub Desktop.
Save AlexChesters/775ba3c969a7479f99b7271a3f0efdff to your computer and use it in GitHub Desktop.
example usage of ukpd
const UKPD = require('ukpd')
try {
const data = await UKPD.streetLevel('52.629729', '-1.131592', '2016-07')
console.log(`there were ${data.length} crimes in the area during 2016-07`)
} catch (err) {
console.error('An error occurred', err)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment