Kenya (KE)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Left-hand |
| Language(s) | English, Swahili |
| Regulator | NTSA |
| Standard | British-derived (NTSA Highway Code) |
The @road-signs/ke package contains Kenya road signs from the British-derived (NTSA) standard.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/keSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
Warning | Hazard and warning signs |
prohibitory |
Regulatory / Prohibitory | Prohibition and restriction signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/ke';
// Example below uses the real KE sign "RW1" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("rw1-kenya-road-sign");
// By sign codeconst s = getSignByCode("RW1");
// All information signsconst filtered = getSignsByCategory("information");import { getSignsByCategory } from '@road-signs/ke';import { RoadSign } from '@road-signs/react';
const informationSigns = getSignsByCategory("information");
export default function KEGrid() { return ( <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap' }}> {informationSigns.map((sign) => ( <RoadSign key={sign.id} sign={sign} size={64} /> ))} </div> );}<script setup>import { getSignsByCategory } from '@road-signs/ke';import { RoadSign } from '@road-signs/vue';
const informationSigns = getSignsByCategory("information");</script>
<template> <div style="display:flex;gap:8px;flex-wrap:wrap"> <RoadSign v-for="sign in informationSigns" :key="sign.id" :sign="sign" :size="64" /> </div></template>Coverage
Section titled “Coverage”| Metric | Value |
|---|---|
| Signs scraped | 16 |
| Signs with SVG | 16 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
0 | 0 | 0 | — |
priority |
0 | 0 | 0 | — |
prohibitory |
0 | 0 | 0 | — |
mandatory |
0 | 0 | 0 | — |
information |
16 | 16 | 0 | 100% |
Standard: British-derived (NTSA Highway Code)
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { KESign, KECategory } from '@road-signs/ke';