Skip to content

Morocco (MA)

Field Value
Drive side Right-hand
Language(s) Arabic, French
Regulator Ministry of Equipment
Standard Code de la route (Dahir 1-10-07) — Vienna Convention

The @road-signs/ma package contains Moroccan road signs from the Code de la route (Dahir 1-10-07) — Vienna Convention. Signs are sourced from Wikimedia Commons and are in the public domain.

Terminal window
npm install @road-signs/ma
Category Series Description
warning A series Danger — panneaux de danger (hazard warnings)
priority B series Priorité — panneaux de priorité (right-of-way)
prohibitory C series Interdiction — panneaux d’interdiction (prohibitions)
mandatory D series Obligation — panneaux d’obligation (mandatory actions)
information E–F series Indication — panneaux d’indication (information and direction)
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/ma';
// Example below uses the real MA sign "107-2-speed-hump" — adjust to taste.
// All signs
signs.length;
// By slug ID
const sign = getSign("107-2-speed-hump-107-2-speed-hump");
// By sign code
const s = getSignByCode("107-2-speed-hump");
// All warning signs
const filtered = getSignsByCategory("warning");
Metric Value
Signs scraped 281
Signs with SVG 281
Missing SVG 0
Overall 100%
Category Scraped With SVG Missing %
warning 36 36 0 100%
priority 10 10 0 100%
prohibitory 49 49 0 100%
mandatory 45 45 0 100%
information 141 141 0 100%

Standard: Code de la route (Dahir 1-10-07) — Vienna Convention

SVG sources:

Coverage data is also published in the @road-signs/docs package.

import type { MASign, MACategory } from '@road-signs/ma';
type MACategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface MASign {
id: string; // e.g. "a1-sharp-bend"
code: string; // sign code, e.g. "A1"
name: string;
description: string;
category: MACategory;
svg: string; // inline SVG string
assets: {
svg: string;
png: Record<number, string>;
jpg: Record<number, string>;
webp: Record<number, string>;
};
}