Skip to content

leegee/crime-map-caching

Repository files navigation

A Map of UK Police Reported Crime

This app accesses the Police API in real time.

Out of the respect to the tax payer-funded API Rate limit, makes no more than 10 requests per second, and out of respect of the user caches to Index DB, purging when reaching the maximum allowed by the storage manager.

Still the API often refuses to serve enough data, despite retries: perhaps I'll write something to populate and ship a local sqlite3 db.

Colours points by crime category and optionally also by court disposal, the outcome - if any - of the police action.

Includes address look-up and auto-complete.

Stack

Maplibre, DeckGL, IndexDB API, fetch API.

Usage

bun install
bun dev
bun preview
bun run build
bun run deploy

Screenshot

To Do

  • Look at moving some of it in into thw worker thread.

About

Live frontend for the UK Police API, with caching

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors