North Macedonia (MK)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Macedonian |
| Regulator | AMSM |
| Standard | Закон за безбедност на сообраќајот на патиштата — Vienna Convention |
The @road-signs/mk package contains North Macedonia road signs from the Закон за безбедност на сообраќајот — Vienna Convention.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/mkSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
A series | Знаци за предупредување — hazard warnings |
priority |
B series | Знаци за предност — right-of-way |
prohibitory |
C series | Знаци за забрана и ограничување — prohibitions |
mandatory |
D series | Знаци за обврска — mandatory actions |
information |
E–F series | Знаци за известување — information and direction |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/mk';
// Example below uses the real MK sign "other-dangers" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("other-dangers-other-dangers");
// By sign codeconst s = getSignByCode("other-dangers");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/mk';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function MKGrid() { 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/mk';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 | 233 |
| Signs with SVG | 233 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
58 | 58 | 0 | 100% |
priority |
0 | 0 | 0 | — |
prohibitory |
77 | 77 | 0 | 100% |
mandatory |
0 | 0 | 0 | — |
information |
98 | 98 | 0 | 100% |
Standard: Закон за безбедност на сообраќајот на патиштата — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { MKSign, MKCategory } from '@road-signs/mk';
type MKCategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface MKSign { id: string; // e.g. "a1-sharp-bend" code: string; // sign code, e.g. "A1" name: string; description: string; category: MKCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}