Bangladesh (BD)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Left-hand |
| Language(s) | Bengali, English |
| Regulator | BRTA |
| Standard | Vienna Convention (UK-influenced) |
The @road-signs/bd package contains Bangladesh road signs from the Vienna Convention-aligned standard.
Left-hand traffic. Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/bdSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
Warning | Hazard and warning signs |
priority |
Priority | Priority and right-of-way signs |
prohibitory |
Regulatory | Regulatory and prohibition signs |
mandatory |
Mandatory | Mandatory instruction signs |
information |
Information | Information and directional signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/bd';
// Example below uses the real BD sign "A1" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("a1-bangladesh-road-sign");
// By sign codeconst s = getSignByCode("A1");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/bd';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function BDGrid() { 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/bd';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 | 316 |
| Signs with SVG | 316 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
107 | 107 | 0 | 100% |
priority |
57 | 57 | 0 | 100% |
prohibitory |
72 | 72 | 0 | 100% |
mandatory |
27 | 27 | 0 | 100% |
information |
53 | 53 | 0 | 100% |
Standard: Vienna Convention (UK-influenced)
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { BDSign, BDCategory } from '@road-signs/bd';