Singapore (SG)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Left-hand |
| Language(s) | English |
| Regulator | LTA |
| Standard | Road Traffic Act (Traffic Signs) Rules — Vienna Convention |
The @road-signs/sg package contains Singapore road signs from the Road Traffic Act (Traffic Signs) Rules — Vienna Convention.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/sgSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
Warning | Hazard and warning signs |
prohibitory |
Regulatory | Regulatory and prohibition signs |
information |
Directional / Temporary | Information and directional signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/sg';
// Example below uses the real SG sign "I1" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("i1-singapore-road-sign");
// By sign codeconst s = getSignByCode("I1");
// All information signsconst filtered = getSignsByCategory("information");import { getSignsByCategory } from '@road-signs/sg';import { RoadSign } from '@road-signs/react';
const informationSigns = getSignsByCategory("information");
export default function SGGrid() { 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/sg';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 | 137 |
| Signs with SVG | 136 |
| Missing SVG | 1 |
| Overall | 99% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
39 | 39 | 0 | 100% |
priority |
5 | 5 | 0 | 100% |
prohibitory |
17 | 17 | 0 | 100% |
mandatory |
7 | 7 | 0 | 100% |
information |
69 | 68 | 1 | 99% |
Standard: Road Traffic Act (Traffic Signs) Rules — Vienna Convention
SVG sources:
- Wikipedia — Road signs in Singapore
- Wikimedia Commons — Road signs in Singapore
- Wikimedia Commons — Road signs in Singapore (general)
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { SGSign, SGCategory } from '@road-signs/sg';