Skip to content

Spain (ES)

Field Value
Drive side Right-hand
Language(s) Spanish
Regulator DGT
Code format P-1 / R-1 / S-1
Standard Reglamento General de Circulación — Vienna Convention

The @road-signs/es package contains Spain road signs from the Reglamento General de Circulación, using P/R/S/M series codes. Signs are sourced from Wikipedia / Wikimedia Commons. Signs are in the public domain.

Terminal window
npm install @road-signs/es
Category Series Description
warning P series Peligro (danger) signs — triangular, red border
priority P series (priority) Right-of-way and stop signs
prohibitory R series Reglamentación (regulatory) — circular, red/blue
mandatory M series Maniobra (manoeuvre) signs — circular, blue
information S series Information and direction signs — rectangular
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/es';
// Example below uses the real ES sign "P-1" — adjust to taste.
// All signs
signs.length;
// By slug ID
const sign = getSign("p-1-intersection-with-priority");
// By sign code
const s = getSignByCode("P-1");
// All warning signs
const filtered = getSignsByCategory("warning");
Metric Value
Signs scraped 419
Signs with SVG 395
Missing SVG 24
Overall 94%
Category Scraped With SVG Missing %
warning 83 83 0 100%
priority 22 22 0 100%
prohibitory 72 72 0 100%
mandatory 29 29 0 100%
information 213 189 24 89%

Standard: Reglamento General de Circulación — Vienna Convention

SVG sources:

Coverage data is also published in the @road-signs/docs package.

import type { ESSign, ESCategory } from '@road-signs/es';
type ESCategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface ESSign {
id: string; // e.g. "p-1a-dangerous-bend"
code: string; // Series code, e.g. "P-1a"
name: string;
description: string;
category: ESCategory;
svg: string; // inline SVG string
assets: {
svg: string;
png: Record<number, string>;
jpg: Record<number, string>;
webp: Record<number, string>;
};
}