Kosovo (XK)
The @road-signs/xk package contains Kosovo road signs (Vienna Convention, inherited from Serbia).
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/xkSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
Warning | Hazard and warning signs |
priority |
Priority | Priority and right-of-way signs |
prohibitory |
Prohibitory | Prohibition and restriction signs |
mandatory |
Mandatory | Mandatory instruction signs |
information |
Information / Service / Additional | Information, service, and additional signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/xk';
// Example below uses the real XK sign "E70" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("e70-european-road");
// By sign codeconst s = getSignByCode("E70");
// All information signsconst filtered = getSignsByCategory("information");import { getSignsByCategory } from '@road-signs/xk';import { RoadSign } from '@road-signs/react';
const informationSigns = getSignsByCategory("information");
export default function XKGrid() { return ( <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap' }}> {informationSigns.map((sign) => ( <RoadSign key={sign.id} sign={sign} size={64} /> ))} </div> );}<script setup>import { getSignsByCategory } from '@road-signs/xk';import { RoadSign } from '@road-signs/vue';
const informationSigns = getSignsByCategory("information");</script>
<template> <div style="display:flex;gap:8px;flex-wrap:wrap"> <RoadSign v-for="sign in informationSigns" :key="sign.id" :sign="sign" :size="64" /> </div></template>Coverage
Section titled “Coverage”| Metric | Value |
|---|---|
| Signs scraped | 234 |
| Signs with SVG | 234 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
51 | 51 | 0 | 100% |
priority |
0 | 0 | 0 | — |
prohibitory |
42 | 42 | 0 | 100% |
mandatory |
21 | 21 | 0 | 100% |
information |
120 | 120 | 0 | 100% |
Standard: Vienna Convention (Ligji për Siguri në Komunikacion Rrugor)
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { XKSign, XKCategory } from '@road-signs/xk';