Vietnam (VN)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Vietnamese |
| Regulator | Ministry of Transport |
| Standard | Vienna Convention adjacent (Ministry of Transport 2019) |
The @road-signs/vn package contains Vietnam road signs from the Vienna Convention adjacent standard.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/vnSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
Warning | Hazard and warning signs |
prohibitory |
Prohibition | Prohibition and restriction signs |
mandatory |
Mandatory | Mandatory instruction signs |
information |
Information / Supplementary | Information and supplementary signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/vn';
// Example below uses the real VN sign "W.201A" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("w-201a-w-201a-bend-to-left");
// By sign codeconst s = getSignByCode("W.201A");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/vn';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function VNGrid() { 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/vn';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 | 735 |
| Signs with SVG | 734 |
| Missing SVG | 1 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
95 | 95 | 0 | 100% |
priority |
0 | 0 | 0 | — |
prohibitory |
71 | 71 | 0 | 100% |
mandatory |
46 | 46 | 0 | 100% |
information |
523 | 522 | 1 | 100% |
Standard: Vienna Convention adjacent (Ministry of Transport 2019)
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { VNSign, VNCategory } from '@road-signs/vn';