Italy (IT)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Italian |
| Regulator | MIT (Codice della Strada) |
| Code format | Fig. II.1 / II.50 |
| Standard | Codice della strada — Vienna Convention |
The @road-signs/it package contains Italy road signs from the Codice della Strada, identified by figure numbers (fig. II.1, fig. III.5).
Signs are sourced from Wikipedia / Wikimedia Commons. Signs are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/itSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
fig. II series | Danger signs — triangular, red border |
priority |
fig. II (precedenza) | Precedence and right-of-way signs |
prohibitory |
fig. III series | Prohibition signs — circular, red border |
mandatory |
fig. IV series | Obligation signs — circular, blue background |
information |
fig. V–VI series | Indication and direction signs — rectangular |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/it';
// Example below uses the real IT sign "A1" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("a1-beginning-of-a-danger-or-a-prescription-vertical");
// By sign codeconst s = getSignByCode("A1");
// All information signsconst filtered = getSignsByCategory("information");import { getSignsByCategory } from '@road-signs/it';import { RoadSign } from '@road-signs/react';
const informationSigns = getSignsByCategory("information");
export default function ITGrid() { 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/it';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 | 326 |
| Signs with SVG | 317 |
| Missing SVG | 9 |
| Overall | 97% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
51 | 51 | 0 | 100% |
priority |
0 | 0 | 0 | — |
prohibitory |
75 | 75 | 0 | 100% |
mandatory |
0 | 0 | 0 | — |
information |
200 | 191 | 9 | 96% |
Standard: Codice della strada — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { ITSign, ITCategory } from '@road-signs/it';
type ITCategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface ITSign { id: string; // e.g. "ii-1-curve-ahead" code: string; // Figure number, e.g. "II.1" name: string; description: string; category: ITCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}