Norway (NO)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Norwegian |
| Regulator | Statens vegvesen |
| Code format | 100 / 202 / 306 |
| Standard | Skiltforskriften — Vienna Convention |
The @road-signs/no package contains Norway road signs from the Skiltforskriften, Norway’s road sign regulations which follow the Vienna Convention.
Signs are sourced from Wikipedia / Wikimedia Commons. Signs are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/noSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
1xx | Advarselsskilt — hazard warnings |
priority |
2xx | Vikepliktsskilt — right-of-way |
prohibitory |
3xx | Forbudsskilt — prohibitions |
mandatory |
4xx | Påbudsskilt — compulsory actions |
information |
5–7xx | Opplysningsskilt — information signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/no';
// Example below uses the real NO sign "367" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("367-speed-limit-zone-for-small-electric-vehicles");
// By sign codeconst s = getSignByCode("367");
// All prohibitory signsconst filtered = getSignsByCategory("prohibitory");import { getSignsByCategory } from '@road-signs/no';import { RoadSign } from '@road-signs/react';
const prohibitorySigns = getSignsByCategory("prohibitory");
export default function NOGrid() { return ( <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap' }}> {prohibitorySigns.map((sign) => ( <RoadSign key={sign.id} sign={sign} size={64} /> ))} </div> );}<script setup>import { getSignsByCategory } from '@road-signs/no';import { RoadSign } from '@road-signs/vue';
const prohibitorySigns = getSignsByCategory("prohibitory");</script>
<template> <div style="display:flex;gap:8px;flex-wrap:wrap"> <RoadSign v-for="sign in prohibitorySigns" :key="sign.id" :sign="sign" :size="64" /> </div></template>Coverage
Section titled “Coverage”| Metric | Value |
|---|---|
| Signs scraped | 270 |
| Signs with SVG | 260 |
| Missing SVG | 10 |
| Overall | 96% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
47 | 46 | 1 | 98% |
priority |
7 | 7 | 0 | 100% |
prohibitory |
46 | 42 | 4 | 91% |
mandatory |
12 | 12 | 0 | 100% |
information |
158 | 153 | 5 | 97% |
Standard: Skiltforskriften — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { NOSign, NOCategory } from '@road-signs/no';
type NOCategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface NOSign { id: string; // e.g. "104-dangerous-bend" code: string; // e.g. "104" name: string; description: string; category: NOCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}