Pakistan (PK)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Left-hand |
| Language(s) | Urdu, English |
| Regulator | NHA |
| Standard | British-derived (National Highway Authority) |
The @road-signs/pk package contains Pakistan 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/pkSign 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 |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/pk';
// Example below uses the real PK sign "M-1" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("m-1-pakistan");
// By sign codeconst s = getSignByCode("M-1");
// All information signsconst filtered = getSignsByCategory("information");import { getSignsByCategory } from '@road-signs/pk';import { RoadSign } from '@road-signs/react';
const informationSigns = getSignsByCategory("information");
export default function PKGrid() { 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/pk';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 | 166 |
| Signs with SVG | 166 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
43 | 43 | 0 | 100% |
priority |
0 | 0 | 0 | — |
prohibitory |
38 | 38 | 0 | 100% |
mandatory |
0 | 0 | 0 | — |
information |
85 | 85 | 0 | 100% |
Standard: British-derived (National Highway Authority)
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { PKSign, PKCategory } from '@road-signs/pk';