Germany (DE)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | German |
| Regulator | BMVI (StVO) |
| Code format | Zeichen 101 / 274 |
| Standard | StVO (Straßenverkehrs-Ordnung) — Vienna Convention |
The @road-signs/de package contains Germany road signs from the Straßenverkehrs-Ordnung (StVO), identified by Zeichen (sign) numbers.
Signs are sourced from Wikipedia / Wikimedia Commons. Signs are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/deSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
Gefahrenzeichen | Hazard warnings — triangular, yellow/black |
priority |
Vorfahrtzeichen | Right-of-way, stop, and yield signs |
prohibitory |
Verbotszeichen | Prohibitions and restrictions — circular, red border |
mandatory |
Gebotszeichen | Compulsory actions — circular, blue background |
information |
Hinweiszeichen | Information, directions, and services — rectangular |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/de';
// Example below uses the real DE sign "101" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("101-sign-10-101-20-aircraft");
// By sign codeconst s = getSignByCode("101");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/de';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function DEGrid() { 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/de';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 | 666 |
| Signs with SVG | 666 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
54 | 54 | 0 | 100% |
priority |
1 | 1 | 0 | 100% |
prohibitory |
118 | 118 | 0 | 100% |
mandatory |
0 | 0 | 0 | — |
information |
493 | 493 | 0 | 100% |
Standard: StVO (Straßenverkehrs-Ordnung) — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { DESign, DECategory } from '@road-signs/de';
type DECategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface DESign { id: string; // e.g. "101-danger-bend-right" code: string; // Zeichen number, e.g. "101" name: string; description: string; category: DECategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}