Hungary (HU)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Hungarian |
| Regulator | NKH (KRESZ) |
| Standard | KRESZ (Közúti Közlekedési Szabályzat) — Vienna Convention |
The @road-signs/hu package contains Hungarian road signs from the KRESZ road traffic regulations.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/huSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
A series | Veszélyt jelző táblák — hazard warnings |
priority |
B series | Elsőbbséget szabályozó táblák — right-of-way |
prohibitory |
C series | Tiltó és korlátozó táblák — prohibitions |
mandatory |
D series | Kötelező magatartást előíró táblák — mandatory |
information |
E–T series | Tájékoztató táblák — information and direction |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/hu';
// Example below uses the real HU sign "A-001" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("a-001-dangerous-curve-to-left");
// By sign codeconst s = getSignByCode("A-001");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/hu';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function HUGrid() { 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/hu';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 | 417 |
| Signs with SVG | 417 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
57 | 57 | 0 | 100% |
priority |
6 | 6 | 0 | 100% |
prohibitory |
49 | 49 | 0 | 100% |
mandatory |
36 | 36 | 0 | 100% |
information |
269 | 269 | 0 | 100% |
Standard: KRESZ (Közúti Közlekedési Szabályzat) — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { HUSign, HUCategory } from '@road-signs/hu';
type HUCategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface HUSign { id: string; // e.g. "a1-sharp-bend" code: string; // sign code, e.g. "A1" name: string; description: string; category: HUCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}