Serbia (RS)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Serbian |
| Regulator | AMSS |
| Standard | Zakon o bezbednosti saobraćaja na putevima — Vienna Convention |
The @road-signs/rs package contains Serbian road signs from the Zakon o bezbednosti saobraćaja.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/rsSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
II series | Hazard warnings |
priority |
III series | Right-of-way and prohibitions |
prohibitory |
III series | Prohibitions and restrictions |
mandatory |
IV series | Mandatory actions |
information |
V series | Information and direction |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/rs';
// Example below uses the real RS sign "E70" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("e70-european-road");
// By sign codeconst s = getSignByCode("E70");
// All information signsconst filtered = getSignsByCategory("information");import { getSignsByCategory } from '@road-signs/rs';import { RoadSign } from '@road-signs/react';
const informationSigns = getSignsByCategory("information");
export default function RSGrid() { return ( <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap' }}> {informationSigns.map((sign) => ( <RoadSign key={sign.id} sign={sign} size={64} /> ))} </div> );}<script setup>import { getSignsByCategory } from '@road-signs/rs';import { RoadSign } from '@road-signs/vue';
const informationSigns = getSignsByCategory("information");</script>
<template> <div style="display:flex;gap:8px;flex-wrap:wrap"> <RoadSign v-for="sign in informationSigns" :key="sign.id" :sign="sign" :size="64" /> </div></template>Coverage
Section titled “Coverage”| Metric | Value |
|---|---|
| Signs scraped | 234 |
| Signs with SVG | 234 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
51 | 51 | 0 | 100% |
priority |
0 | 0 | 0 | — |
prohibitory |
42 | 42 | 0 | 100% |
mandatory |
21 | 21 | 0 | 100% |
information |
120 | 120 | 0 | 100% |
Standard: Zakon o bezbednosti saobraćaja na putevima — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { RSSign, RSCategory } from '@road-signs/rs';
type RSCategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface RSSign { id: string; // e.g. "ii1-sharp-bend" code: string; // sign code, e.g. "II-1" name: string; description: string; category: RSCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}