Australia (AU)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Left-hand |
| Language(s) | English |
| Regulator | Austroads (AS1742) |
| Code format | W1-1 / R1-1 |
| Standard | AS1742 (Manual of Uniform Traffic Control Devices) |
The @road-signs/au package contains Australia road signs from the AS1742 Manual of Uniform Traffic Control Devices (MUTCD), the national standard governing road signs across Australian states and territories.
Signs are sourced from Wikipedia / Wikimedia Commons. Signs are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/auSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
W series | Diamond-shaped hazard warnings — yellow/black |
priority |
— | Give way and stop signs |
prohibitory |
R series | Regulatory restrictions — white/red |
mandatory |
— | Compulsory direction signs — blue |
information |
— | Information, direction, and tourist signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/au';
// Example below uses the real AU sign "W1-1" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("w1-1-90-sharp-turn-to-left");
// By sign codeconst s = getSignByCode("W1-1");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/au';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function AUGrid() { 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/au';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 | 446 |
| Signs with SVG | 443 |
| Missing SVG | 3 |
| Overall | 99% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
174 | 174 | 0 | 100% |
priority |
0 | 0 | 0 | — |
prohibitory |
156 | 156 | 0 | 100% |
mandatory |
0 | 0 | 0 | — |
information |
116 | 113 | 3 | 97% |
Standard: AS1742 (Manual of Uniform Traffic Control Devices)
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { AUSign, AUCategory } from '@road-signs/au';
type AUCategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface AUSign { id: string; // e.g. "w1-1-curves-ahead" code: string; // e.g. "W1-1" name: string; description: string; category: AUCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}