Skip to content

nonatech-uk/wp-parish-crime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parish Crime Display

A WordPress plugin that displays crime data from data.police.uk for a configurable parish or local area.

Features

  • 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

Installation

  1. Download the latest release from GitHub Releases
  2. Upload to /wp-content/plugins/parish-crime/
  3. Activate the plugin through the WordPress admin
  4. Configure your parish boundary in Settings > Parish Crime

Configuration

Setting Your Parish Boundary

  1. Go to Settings > Parish Crime in WordPress admin
  2. Enter your area name (e.g., "Albury Parish")
  3. Enter boundary coordinates as lat,lng on each line:
    51.245,-0.520
    51.245,-0.475
    51.200,-0.470
    
  4. Save settings

The plugin will automatically clear cached crime data when you update the boundary.

Shortcodes

Main Crime Display

[parish_crime]

Shows crimes with toggle between map and table view.

Attributes:

  • display - Initial view: map (default) or table
  • height - Map height (default: 500px)
  • zoom - Initial zoom level (default: 14)

Parish Area Map

[parish_crime_area]

Shows just the parish boundary on a map.

Map Key/Legend

[parish_crime_map_key]

Displays a legend table of crime categories and their colours.

Data Source

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

Requirements

  • WordPress 5.0+
  • PHP 7.4+

License

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

Support

For bug reports and feature requests, please use GitHub Issues.

Credits

About

WordPress plugin displaying local crime statistics from national UK data

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors