Chile (CL)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Spanish |
| Regulator | MOP (DGOP) |
| Code format | PA-1 / RP-1 / IT-1 |
| Standard | Manual de Señalización de Tránsito (DGOP/MOP) — Vienna Convention variant |
The @road-signs/cl package contains Chilean road signs from the Manual de Señalización de Tránsito (DGOP/MOP) — Vienna variant.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/clSign 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/cl';
// Example below uses the real CL sign "PG-1A" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("pg-1a-pg-1a-gentle-curve-to-the-right");
// By sign codeconst s = getSignByCode("PG-1A");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/cl';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function CLGrid() { return ( <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap' }}> {warningSigns.map((sign) => ( <RoadSign key={sign.id} sign={sign} size={64} /> ))} </div> );}<script setup>import { getSignsByCategory } from '@road-signs/cl';import { RoadSign } from '@road-signs/vue';
const warningSigns = getSignsByCategory("warning");</script>
<template> <div style="display:flex;gap:8px;flex-wrap:wrap"> <RoadSign v-for="sign in warningSigns" :key="sign.id" :sign="sign" :size="64" /> </div></template>Coverage
Section titled “Coverage”| Metric | Value |
|---|---|
| Signs scraped | 144 |
| Signs with SVG | 144 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
74 | 74 | 0 | 100% |
priority |
3 | 3 | 0 | 100% |
prohibitory |
30 | 30 | 0 | 100% |
mandatory |
27 | 27 | 0 | 100% |
information |
10 | 10 | 0 | 100% |
Standard: Manual de Señalización de Tránsito (DGOP/MOP) — Vienna Convention variant
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { CLSign, CLCategory } from '@road-signs/cl';
type CLCategory = 'information' | 'prohibitory' | 'warning';
interface CLSign { id: string; // e.g. "p1-sharp-bend" code: string; // sign code, e.g. "P1" name: string; description: string; category: CLCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}