Canada (CA)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | English, French |
| Regulator | Transport Canada (MUTCDC) |
| Code format | RA-2 / WA-8 / TC-1 |
| Standard | MUTCDC (Manual of Uniform Traffic Control Devices for Canada) |
The @road-signs/ca package contains Canadian road signs from the Manual of Uniform Traffic
Control Devices for Canada (MUTCDC), published by the Transportation Association of Canada
(TAC). Signs are sourced from Wikipedia / Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/caSign categories
Section titled “Sign categories”| Category | MUTCDC series | Description |
|---|---|---|
warning |
WA/WB series | Warn drivers of conditions ahead — diamond-shaped, yellow/black |
regulatory |
RA/RB series | Inform drivers of laws and regulations — white/red/black |
information |
GA/GB/GC/IM series | Destination, guide, and motorist services — green/blue |
school |
WC series | School zone and pedestrian crossing — fluorescent yellow-green |
temporary |
TC series | Temporary traffic control / work zone — orange |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/ca';
// Example below uses the real CA sign "RA-001" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("ra-001-stop");
// By sign codeconst s = getSignByCode("RA-001");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/ca';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function CAGrid() { 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/ca';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 | 245 |
| Signs with SVG | 244 |
| Missing SVG | 1 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
103 | 102 | 1 | 99% |
regulatory |
27 | 27 | 0 | 100% |
school |
41 | 41 | 0 | 100% |
temporary |
3 | 3 | 0 | 100% |
information |
71 | 71 | 0 | 100% |
Standard: MUTCDC (Manual of Uniform Traffic Control Devices for Canada)
SVG sources:
- Wikimedia Commons — Regulatory signs of Canada
- Wikimedia Commons — Warning signs of Canada
- Wikimedia Commons — School signs of Canada
- Wikimedia Commons — Temporary signs of Canada
- Wikimedia Commons — British Columbia
- Wikimedia Commons — Quebec
- Wikimedia Commons — Ontario
- Wikimedia Commons — Alberta
- Wikimedia Commons — Manitoba
- Wikimedia Commons — Nova Scotia
- Wikimedia Commons — New Brunswick
- Wikimedia Commons — Saskatchewan
- Wikimedia Commons — Prince Edward Island
- Wikimedia Commons — Newfoundland and Labrador
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { CASign, CACategory } from '@road-signs/ca';
type CACategory = 'information' | 'regulatory' | 'school' | 'temporary' | 'warning';
interface CASign { id: string; // e.g. "wa-1-curve-right" code: string; // e.g. "WA-1" name: string; // e.g. "Curve Right" description: string; category: CACategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}