Armenia (AM)
The @road-signs/am package contains Armenia road signs from the Vienna Convention.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/amSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
Warning | Hazard and warning signs |
priority |
Priority | Priority and right-of-way signs |
prohibitory |
Prohibitory | Prohibition and restriction signs |
mandatory |
Mandatory | Mandatory instruction signs |
information |
Information / Service / Additional | Information, service, and additional plate signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/am';
// Example below uses the real AM sign "dangerous-curve-to-the-right" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("dangerous-curve-to-the-right-dangerous-curve-to-the-right");
// By sign codeconst s = getSignByCode("dangerous-curve-to-the-right");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/am';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function AMGrid() { 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/am';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 | 173 |
| Signs with SVG | 173 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
37 | 37 | 0 | 100% |
priority |
13 | 13 | 0 | 100% |
prohibitory |
44 | 44 | 0 | 100% |
mandatory |
14 | 14 | 0 | 100% |
information |
65 | 65 | 0 | 100% |
Standard: Vienna Convention (ՀՀ ճանապարհային նշաններ)
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { AMSign, AMCategory } from '@road-signs/am';