Denmark (DK)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Danish |
| Regulator | Vejdirektoratet |
| Code format | A11 / B11 / C11 |
| Standard | Færdselsloven — Vienna Convention |
The @road-signs/dk package contains Denmark road signs from the Færdselsloven, Denmark’s road traffic act which follows the Vienna Convention.
Signs are sourced from Wikipedia / Wikimedia Commons. Signs are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/dkSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
A series | Advarselstavler — hazard warnings |
priority |
B series | Vigepligtstavler — right-of-way |
prohibitory |
C series | Forbudstavler — prohibitions |
mandatory |
D series | Påbudstavler — compulsory actions |
information |
E–F series | Oplysningstavler / Vejledningstavler |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/dk';
// Example below uses the real DK sign "A11" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("a11-dangerous-junction-with-a-non-priority-road-variants-and");
// By sign codeconst s = getSignByCode("A11");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/dk';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function DKGrid() { 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/dk';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 | 290 |
| Signs with SVG | 290 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
49 | 49 | 0 | 100% |
priority |
10 | 10 | 0 | 100% |
prohibitory |
46 | 46 | 0 | 100% |
mandatory |
28 | 28 | 0 | 100% |
information |
157 | 157 | 0 | 100% |
Standard: Færdselsloven — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { DKSign, DKCategory } from '@road-signs/dk';
type DKCategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface DKSign { id: string; // e.g. "a21-dangerous-bend" code: string; // e.g. "A21" name: string; description: string; category: DKCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}