Cambodia (KH)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Khmer |
| Regulator | MPWT |
| Standard | Vienna Convention (Prakas on Road Signs 2014) |
The @road-signs/kh package contains Cambodia road signs from the European + MUTCD hybrid standard.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/khSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
Warning | Hazard and warning signs |
prohibitory |
Regulatory | Regulatory and prohibition signs |
mandatory |
Mandatory | Mandatory instruction signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/kh';
// Example below uses the real KH sign "AH1" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("ah1-k");
// By sign codeconst s = getSignByCode("AH1");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/kh';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function KHGrid() { 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/kh';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 | 465 |
| Signs with SVG | 465 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
61 | 61 | 0 | 100% |
priority |
11 | 11 | 0 | 100% |
prohibitory |
46 | 46 | 0 | 100% |
mandatory |
23 | 23 | 0 | 100% |
information |
324 | 324 | 0 | 100% |
Standard: Vienna Convention (Prakas on Road Signs 2014)
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { KHSign, KHCategory } from '@road-signs/kh';