Montenegro (ME)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Montenegrin |
| Regulator | Auto-moto savez Crne Gore |
| Standard | Zakon o bezbjednosti saobraćaja na putevima — Vienna Convention |
The @road-signs/me package contains Montenegro road signs from the Zakon o bezbjednosti saobraćaja na putevima — Vienna Convention.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/meSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
A series | Upozoravajući znaci — hazard warnings |
priority |
B series | Znaci prednosti prolaza — right-of-way |
prohibitory |
C series | Zabrane i ograničenja — prohibitions |
mandatory |
D series | Obaveze — mandatory actions |
information |
E–F series | Obavještavajući znaci — information and direction |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/me';
// Example below uses the real ME sign "I-1" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("i-1-left-curve");
// By sign codeconst s = getSignByCode("I-1");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/me';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function MEGrid() { 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/me';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 | 273 |
| Signs with SVG | 262 |
| Missing SVG | 11 |
| Overall | 96% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
54 | 54 | 0 | 100% |
priority |
0 | 0 | 0 | — |
prohibitory |
44 | 44 | 0 | 100% |
mandatory |
19 | 19 | 0 | 100% |
information |
156 | 145 | 11 | 93% |
Standard: Zakon o bezbjednosti 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 { MESign, MECategory } from '@road-signs/me';
type MECategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface MESign { id: string; // e.g. "a1-sharp-bend" code: string; // sign code, e.g. "A1" name: string; description: string; category: MECategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}