Peru (PE)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Spanish |
| Regulator | MTC |
| Code format | P-1A / R-1 / I-1 |
| Standard | Manual de Dispositivos de Control del Tránsito Automotor (MTC) — Vienna Convention variant |
The @road-signs/pe package contains Peru road signs from the Manual de Dispositivos de Control del Tránsito Automotor (MTC) — Vienna Convention variant.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/peSign 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 / Indicativas | Señales informativas — information and direction |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/pe';
// Example below uses the real PE sign "I-10" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("i-10-peru-road-sign");
// By sign codeconst s = getSignByCode("I-10");
// All information signsconst filtered = getSignsByCategory("information");import { getSignsByCategory } from '@road-signs/pe';import { RoadSign } from '@road-signs/react';
const informationSigns = getSignsByCategory("information");
export default function PEGrid() { 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/pe';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 | 11 |
| Signs with SVG | 11 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
0 | 0 | 0 | — |
priority |
0 | 0 | 0 | — |
prohibitory |
0 | 0 | 0 | — |
mandatory |
0 | 0 | 0 | — |
information |
11 | 11 | 0 | 100% |
Standard: Manual de Dispositivos de Control del Tránsito Automotor (MTC) — Vienna Convention variant
SVG sources:
- Wikipedia — Road signs in Peru
- Wikimedia Commons — Road signs in Peru
- Wikimedia Commons — Road signs in Peru (general)
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { PESign, PECategory } from '@road-signs/pe';