Police API

Average: 2.8 (13 votes)

Developed by: 
NPIA

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
Apps submitted to data.gov.uk are currently approved for publication on the general level of their context and appropriateness. Whilst we review these on a periodical basis, we do not own responsibility for the regular update and maintenance of these apps. Any queries about individual apps or tools published need to be directed to the originator.

Comments

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?

 Flag as offensive 

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.

 Flag as offensive 

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

 Flag as offensive 

API updates coming soon

The API will soon provide access to historical data.

 Flag as offensive 

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.

 Flag as offensive 

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!)

 Flag as offensive 

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

 Flag as offensive 

Iphone police app

Nice work, helpfull stuff

 Flag as offensive 

PHP Curl Class to access

PHP Curl Class to access Police.uk

http://bit.ly/hfGgXF

On github. Open License

 Flag as offensive 

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?

 Flag as offensive 

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!

 Flag as offensive 

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 :)

 Flag as offensive 

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

 Flag as offensive 

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.

 Flag as offensive 

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?

 Flag as offensive 

Javscript

Do you know if it is possible to obtain data from the service using javascript xmlhttp requests?

 Flag as offensive