India (IN)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Left-hand |
| Language(s) | Hindi, English |
| Regulator | IRC:67 |
| Code format | C / M / I |
| Standard | Motor Vehicles Act — IRC:67 standard |
The @road-signs/in package contains Indian road signs from the Motor Vehicles Act (IRC:67 standard).
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/inSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
Cautionary | Cautionary signs — hazard warnings |
prohibitory |
Mandatory | Mandatory signs — prohibitions and regulations |
information |
Informatory | Informatory signs — information and direction |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/in';
// Example below uses the real IN sign "270-degree-loop" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("270-degree-loop-270-degree-loop");
// By sign codeconst s = getSignByCode("270-degree-loop");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/in';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function INGrid() { 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/in';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 | 214 |
| Signs with SVG | 213 |
| Missing SVG | 1 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
79 | 79 | 0 | 100% |
priority |
0 | 0 | 0 | — |
prohibitory |
36 | 35 | 1 | 97% |
mandatory |
18 | 18 | 0 | 100% |
information |
81 | 81 | 0 | 100% |
Standard: Motor Vehicles Act — IRC:67 standard
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { INSign, INCategory } from '@road-signs/in';
type INCategory = 'information' | 'prohibitory' | 'warning';
interface INSign { id: string; // e.g. "w1-sharp-bend" code: string; // sign code, e.g. "W1" name: string; description: string; category: INCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}