Ukraine (UA)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Ukrainian |
| Regulator | Ukravtodor |
| Code format | 1.1 / 2.1 / 3.1 |
| Standard | Правила дорожнього руху (PDR) — Vienna Convention |
The @road-signs/ua package contains Ukrainian road signs from the Правила дорожнього руху (PDR) — Vienna Convention.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/uaSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
1.xx | Попереджувальні знаки — hazard warnings (decimal codes, e.g. 1.1, 1.2) |
priority |
2.xx | Знаки пріоритету — right-of-way signs |
prohibitory |
3.xx | Заборонні знаки — prohibitions and restrictions |
mandatory |
4.xx | Наказові знаки — mandatory actions |
information |
5.xx | Інформаційні знаки — information and direction |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/ua';
// Example below uses the real UA sign "curve-to-the-right" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("curve-to-the-right-curve-to-the-right");
// By sign codeconst s = getSignByCode("curve-to-the-right");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/ua';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function UAGrid() { 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/ua';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 | 309 |
| Signs with SVG | 303 |
| Missing SVG | 6 |
| Overall | 98% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
54 | 54 | 0 | 100% |
priority |
6 | 6 | 0 | 100% |
prohibitory |
44 | 44 | 0 | 100% |
mandatory |
26 | 26 | 0 | 100% |
information |
179 | 173 | 6 | 97% |
Standard: Правила дорожнього руху (PDR) — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { UASign, UACategory } from '@road-signs/ua';
type UACategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface UASign { id: string; // e.g. "1-1-sharp-bend" code: string; // sign code, e.g. "1.1" name: string; description: string; category: UACategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}