Brunei (BN)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Left-hand |
| Language(s) | Malay, English |
| Regulator | Land Transport Department |
| Standard | Road Traffic Act — Vienna Convention variant |
The @road-signs/bn package contains Brunei road signs (Road Traffic Act — Vienna Convention variant).
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/bnSign 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 signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/bn';
// Example below uses the real BN sign "brunei-road-sign-awas-type-1" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("brunei-road-sign-awas-type-1-brunei-road-sign-awas-type-1");
// By sign codeconst s = getSignByCode("brunei-road-sign-awas-type-1");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/bn';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function BNGrid() { 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/bn';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 | 136 |
| Signs with SVG | 136 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
59 | 59 | 0 | 100% |
priority |
6 | 6 | 0 | 100% |
prohibitory |
16 | 16 | 0 | 100% |
mandatory |
10 | 10 | 0 | 100% |
information |
45 | 45 | 0 | 100% |
Standard: Road Traffic Act — Vienna Convention variant
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { BNSign, BNCategory } from '@road-signs/bn';