Skip to content

SahirVhora/uk-postcode-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UK Postcode Checker

Quick demographic lookup for UK postcodes — crime charts, census breakdowns, schools, and transport. Fast and simple.

License: MIT Toolkit

Part of the UK Property Toolkit — three free tools for UK home buyers.

Tool Purpose Best For
PropertyPulse-UK Postcode intelligence + scoring + map Deep area research
UK-HomeFinder Property tracking + SDLT + checklist Active buyers comparing properties
uk-postcode-checker ← you are here Quick demographic lookup Fast postcode overview

👉 Launch UK Postcode Checker


Features

Enter any UK postcode and instantly see:

Card Data Source
📍 Location Ward, district, LSOA codes via postcodes.io
🚔 Crime Street-level stats with Chart.js canvas (Police Data API)
👥 Ethnicity Census 2021 breakdown with pie chart (ONS Beta API)
🏠 Housing Tenure Owned vs rented vs social with chart (ONS Beta API)
🏫 Schools Nearby 2-mile radius with Google Places ratings (optional)
Religion Census 2021 distribution with chart (ONS Beta API)
🚌 Transport Train stations and bus stops near postcode

Quick Start

git clone https://github.com/SahirVhora/uk-postcode-checker.git
cd uk-postcode-checker
open index.html

No server, no install, no build step. Single HTML file — just open it.

Google Places API (Optional)

To enable school star ratings:

  1. Get a key from Google Cloud Console — enable Places API
  2. Open index.html and set const GOOGLE_PLACES_KEY = "YOUR_KEY"
  3. Without a key, the column shows a muted note and everything else still works

APIs Used

API Purpose Auth
Postcodes.io Lat/lng, ward, district, LSOA None
Police Data API Street-level crime Open Government Licence
ONS Beta API Census 2021 ethnicity & tenure Open Government Licence
DfE Education API Schools near postcode Public
Environment Agency Flood risk areas Open Government Licence
Chart.js Canvas charts MIT

🔗 Also in the UK Property Toolkit

  • PropertyPulse-UK — Full intelligence dashboard: crime scoring, flood risk, air quality, composite scores, interactive map
  • UK-HomeFinder — Property comparison tracker, SDLT calculator, readiness checklist, Rightmove/Zoopla URL parser

Notes

  • Crime data fetched for the latest reliable month in the Police API
  • Census data from 2021 via LSOA geography codes
  • School catchment boundaries are indicative — confirm with local council
  • Privacy-first: no user data stored or transmitted

License

MIT — see LICENSE

Releases

No releases published

Packages

 
 
 

Contributors

Languages