Sweden (SE)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Swedish |
| Regulator | Trafikverket (VMF) |
| Code format | A1 / B1 / C1 / D1 |
| Standard | Vägmärkesförordning (VMF) — Vienna Convention |
The @road-signs/se package contains Swedish road signs as defined in the
Vägmärkesförordning (Road Signs Ordinance, SFS 2007:90), supplemented by
TSFS 2019:74. Signs are sourced from Wikipedia / Wikimedia Commons and are in
the public domain.
Installation
Section titled “Installation”npm install @road-signs/seSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
A series | Warn of hazards ahead — triangular, yellow background |
priority |
B series | Right-of-way and yield — stop sign, yield, priority road |
prohibitory |
C series | Prohibitions and restrictions — circular, red border |
mandatory |
D series | Compulsory actions — circular, blue background |
information |
E–I series | Information, directions, and services — rectangular |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/se';
// Example below uses the real SE sign "F1-1" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("f1-1-f1-1");
// By sign codeconst s = getSignByCode("F1-1");
// All information signsconst filtered = getSignsByCategory("information");import { getSignsByCategory } from '@road-signs/se';import { RoadSign } from '@road-signs/react';
const informationSigns = getSignsByCategory("information");
export default function SEGrid() { 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/se';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 | 267 |
| Signs with SVG | 267 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
69 | 69 | 0 | 100% |
priority |
9 | 9 | 0 | 100% |
prohibitory |
45 | 45 | 0 | 100% |
mandatory |
14 | 14 | 0 | 100% |
information |
130 | 130 | 0 | 100% |
Standard: Vägmärkesförordning (VMF) — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { SESign, SECategory } from '@road-signs/se';
type SECategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface SESign { id: string; // e.g. "a1-curve-right" code: string; // e.g. "A1" name: string; // e.g. "Curve Right" description: string; category: SECategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}