Belgium (BE)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Dutch, French, German |
| Regulator | SPF Mobilité |
| Code format | A1 / B1 / C1 |
| Standard | Code de la route / Verkeersreglement — Vienna Convention |
The @road-signs/be package contains Belgium road signs from the Code de la route / Verkeersreglement, Belgium’s road traffic code 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/beSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
A series | Hazard warnings |
priority |
B series | Right-of-way signs |
prohibitory |
C series | Prohibitions and restrictions |
mandatory |
D series | Compulsory actions |
information |
E–X series | Information and direction signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/be';
// Example below uses the real BE sign "A1A" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("a1a-a1a-bend-to-the-left");
// By sign codeconst s = getSignByCode("A1A");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/be';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function BEGrid() { 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/be';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 | 113 |
| Signs with SVG | 111 |
| Missing SVG | 2 |
| Overall | 98% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
33 | 33 | 0 | 100% |
priority |
13 | 13 | 0 | 100% |
prohibitory |
30 | 30 | 0 | 100% |
mandatory |
17 | 17 | 0 | 100% |
information |
20 | 18 | 2 | 90% |
Standard: Code de la route / Verkeersreglement — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { BESign, BECategory } from '@road-signs/be';
type BECategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface BESign { id: string; // e.g. "a1-danger-bend-right" code: string; // e.g. "A1" name: string; description: string; category: BECategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}