Bulgaria (BG)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Bulgarian |
| Regulator | API |
| Standard | Закон за движението по пътищата (ZDP) — Vienna Convention |
The @road-signs/bg package contains Bulgarian road signs from the Закон за движението по пътищата (ZDP).
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/bgSign 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/bg';
// Example below uses the real BG sign "1-right-curve" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("1-right-curve-1-right-curve");
// By sign codeconst s = getSignByCode("1-right-curve");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/bg';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function BGGrid() { 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/bg';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 | 188 |
| Signs with SVG | 188 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
49 | 49 | 0 | 100% |
priority |
6 | 6 | 0 | 100% |
prohibitory |
36 | 36 | 0 | 100% |
mandatory |
25 | 25 | 0 | 100% |
information |
72 | 72 | 0 | 100% |
Standard: Закон за движението по пътищата (ZDP) — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { BGSign, BGCategory } from '@road-signs/bg';
type BGCategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface BGSign { id: string; // e.g. "a1-sharp-bend" code: string; // sign code, e.g. "A1" name: string; description: string; category: BGCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}