Iceland (IS)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Icelandic |
| Regulator | Vegagerðin |
| Code format | A01 / B01 / C01 |
| Standard | Umferðarlög — Vienna Convention |
The @road-signs/is package contains Iceland road signs from the Umferðarlög — Vienna Convention.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/isSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
A series | Viðvörun — hazard warnings |
priority |
B series | Forgangur — right-of-way |
prohibitory |
C series | Bönn og takmarkanir — prohibitions |
mandatory |
D series | Skylda — mandatory actions |
information |
E–F series | Upplýsingar — information and direction |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/is';
// Example below uses the real IS sign "D01.35" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("d01-35-iceland-road-sign");
// By sign codeconst s = getSignByCode("D01.35");
// All mandatory signsconst filtered = getSignsByCategory("mandatory");import { getSignsByCategory } from '@road-signs/is';import { RoadSign } from '@road-signs/react';
const mandatorySigns = getSignsByCategory("mandatory");
export default function ISGrid() { return ( <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap' }}> {mandatorySigns.map((sign) => ( <RoadSign key={sign.id} sign={sign} size={64} /> ))} </div> );}<script setup>import { getSignsByCategory } from '@road-signs/is';import { RoadSign } from '@road-signs/vue';
const mandatorySigns = getSignsByCategory("mandatory");</script>
<template> <div style="display:flex;gap:8px;flex-wrap:wrap"> <RoadSign v-for="sign in mandatorySigns" :key="sign.id" :sign="sign" :size="64" /> </div></template>Coverage
Section titled “Coverage”| Metric | Value |
|---|---|
| Signs scraped | 335 |
| Signs with SVG | 331 |
| Missing SVG | 4 |
| Overall | 99% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
43 | 43 | 0 | 100% |
priority |
0 | 0 | 0 | — |
prohibitory |
41 | 41 | 0 | 100% |
mandatory |
19 | 19 | 0 | 100% |
information |
232 | 228 | 4 | 98% |
Standard: Umferðarlög — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { ISSign, ISCategory } from '@road-signs/is';
type ISCategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface ISSign { id: string; // e.g. "a1-sharp-bend" code: string; // sign code, e.g. "A1" name: string; description: string; category: ISCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}