Rudi Louw.

Interactive data site

Streetwise

Reported crime in every South African police precinct, with a map and a page for each one.

My role
Design, development and data
Platform
Web, desktop and mobile
Status
Live
Built with
Next.js, React, TypeScript, MapLibre GL, D3
The Streetwise map of South Africa: every police precinct shaded from dark to bright orange by its reported murder rate in 2025/26, with a year slider above
The Streetwise page for the Kugompo police precinct, with a gauge of its comparison score, its rate per 1,000 residents and its rank in the Eastern Cape and South Africa
Streetwise on a phone: the Kugompo precinct page with crime buttons and the comparison gauge

Streetwise answers one question: how does reported crime where I live compare with everywhere else? It takes the station-level figures the South African Police Service (SAPS) publishes and turns them into a site anyone can search, with a map of all 1,174 police precincts, a page for each one, rankings, a compare tool and a national summary. I built it as a Vizly showcase, and it now also runs on The Coastal in that title’s own colours.

One question, answered for every precinct

Crime statistics are published as spreadsheets, with one row for each station and crime. Streetwise turns them into something a person can use in a minute. Type a suburb, town or police station, or use your location, and see how reported crime there compares with the province and the country, and how it has moved since 2015/16.

  1. 01

    Search and location

    Search by town or station name, or tap Use my location. The precinct is worked out in the visitor’s own browser from the police boundaries, so their position is never sent to the server.

  2. 02

    Every precinct on one map

    The whole country, shaded by how each precinct compares with the others. A slider plays the years from 2015/16, and the map can switch to show each precinct against the national average or against the year before.

  3. 03

    A page for each precinct

    All 1,174 precincts have their own page: a comparison score from 0 to 100, the rank in the province and the country, the trend since 2015/16, every crime SAPS records, quarter-by-quarter figures and the neighbouring precincts.

  4. 04

    Rankings

    The highest and lowest rates per resident for any crime, nationally or in one province. Precincts with fewer than 5,000 residents are left out, and precincts that tie on zero cases are shown as tied.

  5. 05

    Compare areas

    Up to four precincts side by side, for people who are buying, renting or moving. The shortlist is kept in the page address and the visitor’s browser, and nowhere else.

  6. 06

    South Africa in numbers

    What the latest figures add up to per day and per hour, such as how often a murder or a burglary is reported, worked out from the last four quarters.

  7. 07

    News

    Plain-language stories on what the newest figures show, with figure cards that are calculated from the dataset, and an RSS feed.

South Africa at a glance on Streetwise: the national murder rate since 2015/16 as a chart, beside the nine provinces ranked
The Streetwise rankings: the precincts with the highest and lowest reported murder rates per 100,000 residents
The Streetwise South Africa in numbers page, showing murders reported per day in the latest quarter

The data

Checked against the police’s own totals

The figures come from the workbooks SAPS publishes: 31 crime categories for every station, eleven financial years from 2015/16 to 2025/26, and quarterly figures to September 2026. One set of scripts builds the site’s data from those files, and a second set checks the result each time the data is refreshed.

  1. 01

    Totals that add up

    The station figures are added up and compared with SAPS’s own provincial and national rows for every crime and year. That is 3,100 totals, and none of them differ.

  2. 02

    Renamed stations joined up

    Four stations were renamed during the period, East London to Kugompo among them. The build recognises each one by its identical figures in overlapping periods, so its history is continuous.

  3. 03

    A station in the wrong province

    The checks found a station that SAPS’s station rows list under the Western Cape, while SAPS’s provincial totals count it in the Eastern Cape. The build moves it, and the check runs on every import.

  4. 04

    People in each precinct

    Counting cases makes big places look worst, so rates are per resident. Precinct populations are worked out from the WorldPop population map and scaled to Statistics South Africa’s mid-year estimates for each year.

  5. 05

    Like-for-like changes

    SAPS has published 2025/26 only as four quarterly releases, which do not match its annual files for earlier years. Year-on-year changes therefore compare 2025/26 with 2024/25 counted the same way, and the site says so.

  6. 06

    Open about the limits

    Small precincts are flagged or given no rate, very rare crimes are shown as counts and not ranked, and changes that rest on a handful of cases are greyed out. A How it works section explains what reported crime can and cannot tell you.

The How it works section of Streetwise, explaining where the numbers come from and what they cannot tell you
The Streetwise compare page with three Eastern Cape precincts side by side

The build

A map with no map service

Streetwise is a set of Next.js routes with the data kept as files beside them. The precinct shapes are the map. MapLibre GL draws them directly, so there are no map tiles to load and no map account or key behind it.

  1. 01

    Shapes that load in stages

    A light national file draws the country first, and the detailed shapes for a province load when a visitor zooms in. Neighbouring precincts are simplified along their shared edges, so they never gap or overlap.

  2. 02

    A fallback without WebGL

    Browsers with WebGL switched off get an SVG version of the map with the same shading, hover, click and zoom.

  3. 03

    A share picture for every precinct

    Each precinct page has its own picture for link previews on WhatsApp, Facebook and X, so a shared link shows the place it is about.

  4. 04

    Data on demand

    Choosing a single crime on the map or in the rankings loads one small file for that crime, not the whole dataset.

  5. 05

    Colour that was tested

    The map uses one hue that runs from dark to bright, so it does not depend on telling colours apart, and each step was checked for contrast against the dark background.

  6. 06

    Links that carry the view

    A Share this view button on the map makes a link that opens on the same picture.

Publishing

One dataset, more than one masthead

Streetwise began as a showcase, and it is built to run under someone else’s name. The Coastal has its own copy at thecoastal.co.za/streetwise, in The Coastal’s colours and under its own header. The same can be set up and maintained for any publisher or media agency that wants a crime check on its site.

  1. 01

    One source of truth

    The Coastal’s copy is built from a data feed on the Vizly site, so both show the same numbers.

  2. 02

    Updates that travel

    When new data is deployed on Vizly, a workflow asks The Coastal’s hosting to rebuild, and the new figures arrive there with no extra work.

  3. 03

    A quarterly routine

    SAPS releases figures every quarter. A refresh is the new workbook, the build scripts and the checks. The dates and labels on the site are read from the data, so they update by themselves.

  4. 04

    Made to be passed on

    An embeddable teaser card for other sites, and share pictures for the home page, the numbers page and every precinct.

Streetwise running on The Coastal, in teal, under The Coastal’s own header and menu
Streetwise on The Coastal, on a phone

Built with

  • Next.js
  • React
  • TypeScript
  • MapLibre GL
  • D3
  • TopoJSON
  • Node.js
  • Vercel

Next case study

Hoverpad

Start a project

Got
something
to build?

A site that needs to be better, an app that needs to exist, a platform that has outgrown its tools. Tell me what it is and I’ll tell you honestly how I’d approach it.

hi@rudilouw.com

or email hi@rudilouw.com