Albania (AL)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Albanian |
| Regulator | Drejtoria e Përgjithshme e Rrugëve |
| Standard | Kodi Rrugor — Vienna Convention |
The @road-signs/al package contains Albanian road signs from the Kodi Rrugor — Vienna Convention.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/alSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
A series | Paralajmëruese — hazard warnings |
priority |
B series | Prioriteti — right-of-way |
prohibitory |
C series | Ndaluese dhe kufizuese — prohibitions |
mandatory |
D series | Detyruese — mandatory actions |
information |
E–F series | Informuese — information and direction |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/al';
// Example below uses the real AL sign "E852" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("e852-european-road-number-sign");
// By sign codeconst s = getSignByCode("E852");
// All information signsconst filtered = getSignsByCategory("information");import { getSignsByCategory } from '@road-signs/al';import { RoadSign } from '@road-signs/react';
const informationSigns = getSignsByCategory("information");
export default function ALGrid() { 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/al';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 | 157 |
| Signs with SVG | 126 |
| Missing SVG | 31 |
| Overall | 80% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
32 | 1 | 31 | 3% |
priority |
12 | 12 | 0 | 100% |
prohibitory |
35 | 35 | 0 | 100% |
mandatory |
27 | 27 | 0 | 100% |
information |
51 | 51 | 0 | 100% |
Standard: Kodi Rrugor — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { ALSign, ALCategory } from '@road-signs/al';
type ALCategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface ALSign { id: string; // e.g. "a1-sharp-bend" code: string; // sign code, e.g. "A1" name: string; description: string; category: ALCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}