France (FR)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | French |
| Regulator | Sécurité Routière |
| Code format | A1a / B1 / C18 |
| Standard | Code de la route — Vienna Convention |
The @road-signs/fr package contains France road signs from the Code de la route, organised by alphabetical series (A, AB, B, C, CE, D, E).
Signs are sourced from Wikipedia / Wikimedia Commons. Signs are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/frSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
A series | Danger signs — triangular, red border |
priority |
AB series | Priority and right-of-way signs |
prohibitory |
B series | Regulatory signs — circular, red or blue |
information |
C/D/E series | Indication, direction, and service signs — rectangular |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/fr';
// Example below uses the real FR sign "30-km-h-zone" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("30-km-h-zone-30-km-h-zone");
// By sign codeconst s = getSignByCode("30-km-h-zone");
// All prohibitory signsconst filtered = getSignsByCategory("prohibitory");import { getSignsByCategory } from '@road-signs/fr';import { RoadSign } from '@road-signs/react';
const prohibitorySigns = getSignsByCategory("prohibitory");
export default function FRGrid() { return ( <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap' }}> {prohibitorySigns.map((sign) => ( <RoadSign key={sign.id} sign={sign} size={64} /> ))} </div> );}<script setup>import { getSignsByCategory } from '@road-signs/fr';import { RoadSign } from '@road-signs/vue';
const prohibitorySigns = getSignsByCategory("prohibitory");</script>
<template> <div style="display:flex;gap:8px;flex-wrap:wrap"> <RoadSign v-for="sign in prohibitorySigns" :key="sign.id" :sign="sign" :size="64" /> </div></template>Coverage
Section titled “Coverage”| Metric | Value |
|---|---|
| Signs scraped | 323 |
| Signs with SVG | 321 |
| Missing SVG | 2 |
| Overall | 99% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
30 | 29 | 1 | 97% |
priority |
9 | 9 | 0 | 100% |
prohibitory |
88 | 88 | 0 | 100% |
mandatory |
0 | 0 | 0 | — |
information |
196 | 195 | 1 | 99% |
Standard: Code de la route — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { FRSign, FRCategory } from '@road-signs/fr';
type FRCategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface FRSign { id: string; // e.g. "a1-danger-bend" code: string; // Series code, e.g. "A1" name: string; description: string; category: FRCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}