Poland (PL)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Polish |
| Regulator | GDDKiA |
| Code format | A-1 / B-1 / C-1 / D-1 |
| Standard | Prawo o ruchu drogowym — Vienna Convention |
The @road-signs/pl package contains Poland road signs from the Prawo o ruchu drogowym, using A/B/C/D/E/F/G series.
Signs are sourced from Wikipedia / Wikimedia Commons. Signs are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/plSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
A series | Ostrzegawcze (warning) — triangular, red border |
priority |
A series (priority) | Pierwszeństwo (right-of-way) signs |
prohibitory |
B series | Zakazu (prohibition) — circular, red border |
mandatory |
C series | Nakazu (obligation) — circular, blue background |
information |
D / E / F series | Informacyjne (information) and direction signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/pl';
// Example below uses the real PL sign "A-1" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("a-1-dangerous-curve-to-the-right");
// By sign codeconst s = getSignByCode("A-1");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/pl';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function PLGrid() { 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/pl';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 | 415 |
| Signs with SVG | 415 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
50 | 50 | 0 | 100% |
priority |
0 | 0 | 0 | — |
prohibitory |
58 | 58 | 0 | 100% |
mandatory |
25 | 25 | 0 | 100% |
information |
282 | 282 | 0 | 100% |
Standard: Prawo o ruchu drogowym — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { PLSign, PLCategory } from '@road-signs/pl';
type PLCategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface PLSign { id: string; // e.g. "a-1-dangerous-bend" code: string; // Series code, e.g. "A-1" name: string; description: string; category: PLCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}