Slovenia (SI)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Slovenian |
| Regulator | DRSI |
| Standard | Pravilnik o prometni signalizaciji — Vienna Convention |
The @road-signs/si package contains Slovenian road signs from the Pravilnik o prometni signalizaciji.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/siSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
A series | Hazard warnings |
priority |
B series | Right-of-way |
prohibitory |
C series | Prohibitions and restrictions |
mandatory |
D series | Mandatory actions |
information |
E–F series | Information and direction |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/si';
// Example below uses the real SI sign "I-1" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("i-1-curve-to-the-left");
// By sign codeconst s = getSignByCode("I-1");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/si';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function SIGrid() { 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/si';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 | 184 |
| Signs with SVG | 182 |
| Missing SVG | 2 |
| Overall | 99% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
48 | 48 | 0 | 100% |
priority |
47 | 47 | 0 | 100% |
prohibitory |
0 | 0 | 0 | — |
mandatory |
26 | 26 | 0 | 100% |
information |
63 | 61 | 2 | 97% |
Standard: Pravilnik o prometni signalizaciji — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { SISign, SICategory } from '@road-signs/si';
type SICategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface SISign { id: string; // e.g. "a1-sharp-bend" code: string; // sign code, e.g. "A1" name: string; description: string; category: SICategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}