Philippines (PH)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Filipino, English |
| Regulator | DPWH |
| Standard | Vienna Convention (original signatory) |
The @road-signs/ph package contains Philippines road signs from the Vienna Convention.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/phSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
Warning / Hazard | Hazard and warning signs |
prohibitory |
Regulatory / Prohibitory | Prohibition and restriction signs |
mandatory |
Mandatory / Instruction | Mandatory instruction signs |
information |
Guide / Expressway / Combination | Information and directional signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/ph';
// Example below uses the real PH sign "form-1-lane" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("form-1-lane-form-1-lane");
// By sign codeconst s = getSignByCode("form-1-lane");
// All mandatory signsconst filtered = getSignsByCategory("mandatory");import { getSignsByCategory } from '@road-signs/ph';import { RoadSign } from '@road-signs/react';
const mandatorySigns = getSignsByCategory("mandatory");
export default function PHGrid() { return ( <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap' }}> {mandatorySigns.map((sign) => ( <RoadSign key={sign.id} sign={sign} size={64} /> ))} </div> );}<script setup>import { getSignsByCategory } from '@road-signs/ph';import { RoadSign } from '@road-signs/vue';
const mandatorySigns = getSignsByCategory("mandatory");</script>
<template> <div style="display:flex;gap:8px;flex-wrap:wrap"> <RoadSign v-for="sign in mandatorySigns" :key="sign.id" :sign="sign" :size="64" /> </div></template>Coverage
Section titled “Coverage”| Metric | Value |
|---|---|
| Signs scraped | 435 |
| Signs with SVG | 435 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
98 | 98 | 0 | 100% |
priority |
5 | 5 | 0 | 100% |
prohibitory |
66 | 66 | 0 | 100% |
mandatory |
15 | 15 | 0 | 100% |
information |
251 | 251 | 0 | 100% |
Standard: Vienna Convention (original signatory)
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { PHSign, PHCategory } from '@road-signs/ph';