Skip to content

South Africa (ZA)

Field Value
Drive side Left-hand
Language(s) English, Afrikaans
Regulator SARTSM
Standard SARTSM (South African Road Traffic Signs Manual)

The @road-signs/za package contains South African road signs from the SARTSM (South African Road Traffic Signs Manual). Signs are sourced from Wikimedia Commons and are in the public domain.

Terminal window
npm install @road-signs/za
Category Series Description
warning W series Hazard warnings
regulatory R series Regulatory and prohibitory signs
guidance G series Guidance and information
temporary T series Temporary traffic management
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/za';
// Example below uses the real ZA sign "stop-3-way" — adjust to taste.
// All signs
signs.length;
// By slug ID
const sign = getSign("stop-3-way-stop-3-way");
// By sign code
const s = getSignByCode("stop-3-way");
// All prohibitory signs
const filtered = getSignsByCategory("prohibitory");
Metric Value
Signs scraped 322
Signs with SVG 321
Missing SVG 1
Overall 100%
Category Scraped With SVG Missing %
warning 79 78 1 99%
priority 0 0 0 —
prohibitory 223 223 0 100%
mandatory 0 0 0 —
information 20 20 0 100%

Standard: SARTSM (South African Road Traffic Signs Manual)

SVG sources:

Coverage data is also published in the @road-signs/docs package.

import type { ZASign, ZACategory } from '@road-signs/za';
type ZACategory = 'guidance' | 'regulatory' | 'temporary' | 'warning';
interface ZASign {
id: string; // e.g. "w1-sharp-bend"
code: string; // sign code, e.g. "W1"
name: string;
description: string;
category: ZACategory;
svg: string; // inline SVG string
assets: {
svg: string;
png: Record<number, string>;
jpg: Record<number, string>;
webp: Record<number, string>;
};
}