Uruguay (UY)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Spanish |
| Regulator | Dirección Nacional de Tránsito |
| Code format | P-1 / R-1 |
| Standard | Decreto 374/004 — Reglamento Nacional de Tránsito (Vienna Convention variant) |
The @road-signs/uy package contains Uruguayan road signs from the Decreto 374/004 — Reglamento Nacional de Tránsito (Vienna Convention variant).
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/uySign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
Preventivas | Señales preventivas — hazard warnings |
prohibitory |
Reglamentarias | Señales reglamentarias — prohibitions and regulations |
information |
Informativas | Señales informativas — information and direction |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/uy';
// Example below uses the real UY sign "P1A" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("p1a-uruguay-road-sign-p1a");
// By sign codeconst s = getSignByCode("P1A");
// All information signsconst filtered = getSignsByCategory("information");import { getSignsByCategory } from '@road-signs/uy';import { RoadSign } from '@road-signs/react';
const informationSigns = getSignsByCategory("information");
export default function UYGrid() { 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/uy';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 | 62 |
| Signs with SVG | 62 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
4 | 4 | 0 | 100% |
priority |
0 | 0 | 0 | — |
prohibitory |
0 | 0 | 0 | — |
mandatory |
0 | 0 | 0 | — |
information |
58 | 58 | 0 | 100% |
Standard: Decreto 374/004 — Reglamento Nacional de Tránsito (Vienna Convention variant)
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { UYSign, UYCategory } from '@road-signs/uy';
type UYCategory = 'information' | 'prohibitory' | 'warning';
interface UYSign { id: string; // e.g. "p1-sharp-bend" code: string; // sign code, e.g. "P1" name: string; description: string; category: UYCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}