Malawi (MW)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Left-hand |
| Language(s) | English |
| Regulator | Directorate of Road Traffic |
| Standard | SADC regional standard (Road Traffic Act) |
The @road-signs/mw package contains Malawi road signs (SADC regional standard).
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/mwSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
Warning | Hazard and warning signs |
priority |
Priority | Priority and right-of-way signs |
prohibitory |
Prohibitory | Prohibition and restriction signs |
mandatory |
Mandatory | Mandatory instruction signs |
information |
Information / Service / Additional | Information, service, and additional signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/mw';
// Example below uses the real MW sign "W309" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("w309-sadc-road-sign");
// By sign codeconst s = getSignByCode("W309");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/mw';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function MWGrid() { return ( <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap' }}> {warningSigns.map((sign) => ( <RoadSign key={sign.id} sign={sign} size={64} /> ))} </div> );}<script setup>import { getSignsByCategory } from '@road-signs/mw';import { RoadSign } from '@road-signs/vue';
const warningSigns = getSignsByCategory("warning");</script>
<template> <div style="display:flex;gap:8px;flex-wrap:wrap"> <RoadSign v-for="sign in warningSigns" :key="sign.id" :sign="sign" :size="64" /> </div></template>Coverage
Section titled “Coverage”| Metric | Value |
|---|---|
| Signs scraped | 46 |
| Signs with SVG | 46 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
1 | 1 | 0 | 100% |
priority |
0 | 0 | 0 | — |
prohibitory |
0 | 0 | 0 | — |
mandatory |
45 | 45 | 0 | 100% |
information |
0 | 0 | 0 | — |
Standard: SADC regional standard (Road Traffic Act)
SVG sources:
- Wikipedia — Road signs in the Southern African Development Community
- Wikimedia Commons — SVG road signs in the Southern African Development Community
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { MWSign, MWCategory } from '@road-signs/mw';