A WordPress plugin that displays crime data from data.police.uk for a configurable parish or local area.
- Interactive Map: View crime locations on an OpenStreetMap-based map with Leaflet.js
- Filterable Table: Browse crimes in a sortable table format
- Date Range Selection: Filter crimes by month with easy-to-use dropdowns
- Category Filtering: Filter by crime type (burglary, anti-social behaviour, etc.)
- Configurable Boundary: Set your own parish boundary coordinates via the admin settings
- Auto-Updates: Automatically checks for updates from GitHub releases
- Download the latest release from GitHub Releases
- Upload to
/wp-content/plugins/parish-crime/ - Activate the plugin through the WordPress admin
- Configure your parish boundary in Settings > Parish Crime
- Go to Settings > Parish Crime in WordPress admin
- Enter your area name (e.g., "Albury Parish")
- Enter boundary coordinates as
lat,lngon each line:51.245,-0.520 51.245,-0.475 51.200,-0.470 - Save settings
The plugin will automatically clear cached crime data when you update the boundary.
[parish_crime]
Shows crimes with toggle between map and table view.
Attributes:
display- Initial view:map(default) ortableheight- Map height (default:500px)zoom- Initial zoom level (default:14)
[parish_crime_area]
Shows just the parish boundary on a map.
[parish_crime_map_key]
Displays a legend table of crime categories and their colours.
Crime data is provided by the Police UK API. Data is:
- Updated monthly (typically 6-8 weeks behind current date)
- Anonymised to approximate locations
- Cached locally for 24 hours to reduce API calls
- WordPress 5.0+
- PHP 7.4+
This plugin is released under a Non-Commercial Open Source License.
- Free for non-commercial use (local government, parish councils, charities, educational institutions)
- Commercial use requires a separate license
For commercial licensing or support, contact:
NonaTech Services Ltd Email: stu.bevan@nonatech.co.uk Web: https://nonatech.co.uk
For bug reports and feature requests, please use GitHub Issues.
- Crime data: data.police.uk
- Maps: OpenStreetMap via Leaflet.js