Indonesia (ID)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Left-hand |
| Language(s) | Indonesian |
| Regulator | Ministry of Transportation |
| Standard | Vienna Convention based (Minister of Transport Regulation 2014) |
The @road-signs/id package contains Indonesia road signs from the Vienna Convention based standard.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/idSign 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 |
Directional / Information | Information and directional signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/id';
// Example below uses the real ID sign "AH151" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("ah151-ri");
// By sign codeconst s = getSignByCode("AH151");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/id';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function IDGrid() { 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/id';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 | 298 |
| Signs with SVG | 213 |
| Missing SVG | 85 |
| Overall | 71% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
81 | 81 | 0 | 100% |
priority |
0 | 0 | 0 | — |
prohibitory |
54 | 54 | 0 | 100% |
mandatory |
22 | 22 | 0 | 100% |
information |
141 | 56 | 85 | 40% |
Standard: Vienna Convention based (Minister of Transport Regulation 2014)
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { IDSign, IDCategory } from '@road-signs/id';