Created
June 18, 2020 12:34
-
-
Save AlexChesters/775ba3c969a7479f99b7271a3f0efdff to your computer and use it in GitHub Desktop.
example usage of ukpd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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