South Korea (KR)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Korean |
| Regulator | KNPA |
| Code format | 101 / 201 / 301 |
| Standard | Road Traffic Act (도로교통법) |
The @road-signs/kr package contains South Korean road signs from the Road Traffic Act (도로교통법).
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/krSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
주의표지 | Jui pyoji — hazard warnings |
prohibitory |
규제표지 | Gyuje pyoji — regulatory prohibitions |
mandatory |
지시표지 | Jisi pyoji — instruction and mandatory actions |
information |
안내표지 | Annae pyoji — guide and information |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/kr';
// Example below uses the real KR sign "AH1" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("ah1-rok");
// By sign codeconst s = getSignByCode("AH1");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/kr';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function KRGrid() { 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/kr';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 | 150 |
| Signs with SVG | 125 |
| Missing SVG | 25 |
| Overall | 83% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
61 | 60 | 1 | 98% |
priority |
0 | 0 | 0 | — |
prohibitory |
38 | 29 | 9 | 76% |
mandatory |
45 | 32 | 13 | 71% |
information |
6 | 4 | 2 | 67% |
Standard: Road Traffic Act (도로교통법)
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { KRSign, KRCategory } from '@road-signs/kr';
type KRCategory = 'information' | 'mandatory' | 'prohibitory' | 'warning';
interface KRSign { id: string; // e.g. "101-intersection-ahead" code: string; // sign code, e.g. "101" name: string; description: string; category: KRCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}