Police API allows developers to retrieve local crime data and neighbourhood information for all 43 English & Welsh police forces.
All forces are required to keep this data accurate and up to date, so the API provides a rich and definitive data source for information such as:
- Neighbourhood police officers
- Upcoming events
- Street-level crime statistics
- Neighbourhood-level crime statistics
Comments (15)
Nearest police station
Hi all,
Just created an alternative police crime map using this wonderful API at http://www.ebusinessconsultant.co.uk/police-crime-map/ My question is how to use the API to generate a list of nearest police stations to a point. Is this possible?
Michael G
Hmm, it's not possible to a
Hmm, it's not possible to a particular point but a lot of neighbourhoods do return a police station.
You could build a police station list from all of those? We're working to get police stations in there for all forces.
Would it be possible to
Would it be possible to extend "neighbourhood-locate" to return more than 1 result? maybe allow one to send radius in miles?
police geocode framework
API is great but you can only look it up 500 times (I think?) in a day.
Is there anyway of gaining the geographic info, like the postcodes for each force and what police cover which area. Is this possible?
No limit, but no boundaries either
There's no limit on the requests you can make, but the boundaries aren't available because they're derived O/S data, and so fall under Crown Copyright. Hopefully this will change soon!
I've spoke with Leon @ RKH
I've spoke with Leon @ RKH about this...
"yes but no"
The polygon (area) that is uses to convert crimes into police forces is owned by them (under a Crown license from Ordnance Survey)
I would really like the neighbourhood polygon as there is currently no way to group crimes together.
I've uploaded complete MySQL schema and a PHP Class - https://github.com/RickSeymour/Police.uk-API-PHP-Curl-Class
That should be enough to populate a DB with enough to get you started....
Rick :)
PHP Curl Class to access
PHP Curl Class to access Police.uk
http://bit.ly/hfGgXF
On github. Open License
Iphone app
Excellent source of information. I've used the API to create an IPhone application which is currently in the app store. You can find it by searching for PCWorld
Iphone police app
Nice work, helpfull stuff
Well done.
Well done for that. I think the API is really simple and easy to use and consistent in structure. Enhancements could be GZIP encoding support for xml responses and a larger set of information available for crimes. Great stuff.
Gzip enabled
Gzip is now enabled on the API, XML support is unlikely to happen though unless there is a great demand for it (sorry!)
more examples required.
I maintain an xml soap service at work so this is not new for me, but i think you have made an abstract subject even more cryptic. why not give some real world examples to build from?
Look no further than...
Look no further than www.police.uk - that's built entirely on top of the API except for officer photos and neighbourhood boundary shapes.
Keep checking the Apps page too, we'll be adding more on there as they come in.
re: Look no further than...
There doesn't seem to be a way of retrieving crime statistics for earlier than the latest set of results using the API, but which IS available on www.police.uk. Have I missed something?
Also, is there a consolidated document with the API documentation available that anyone could download?
Looking forward to a response
Tony B
API updates coming soon
The API will soon provide access to historical data.