Tanzania (TZ)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Left-hand |
| Language(s) | Swahili, English |
| Regulator | SUMATRA |
| Standard | British-derived (Road Traffic Act) |
The @road-signs/tz package contains Tanzania road signs (British-derived, left-hand traffic).
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/tzSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
Warning | Hazard and warning signs |
prohibitory |
Prohibitory | Prohibition and restriction signs |
information |
Information / Service / Additional | Information, service, and additional plate signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/tz';
// Example below uses the real TZ sign "stop-3-way" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("stop-3-way-stop-3-way");
// By sign codeconst s = getSignByCode("stop-3-way");
// All prohibitory signsconst filtered = getSignsByCategory("prohibitory");import { getSignsByCategory } from '@road-signs/tz';import { RoadSign } from '@road-signs/react';
const prohibitorySigns = getSignsByCategory("prohibitory");
export default function TZGrid() { return ( <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap' }}> {prohibitorySigns.map((sign) => ( <RoadSign key={sign.id} sign={sign} size={64} /> ))} </div> );}<script setup>import { getSignsByCategory } from '@road-signs/tz';import { RoadSign } from '@road-signs/vue';
const prohibitorySigns = getSignsByCategory("prohibitory");</script>
<template> <div style="display:flex;gap:8px;flex-wrap:wrap"> <RoadSign v-for="sign in prohibitorySigns" :key="sign.id" :sign="sign" :size="64" /> </div></template>Coverage
Section titled “Coverage”| 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: British-derived (Road Traffic Act)
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { TZSign, TZCategory } from '@road-signs/tz';