Cyprus (CY)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Left-hand |
| Language(s) | Greek, Turkish, English |
| Regulator | Road Transport Department |
| Standard | Road Traffic Law (Cap. 332) — Vienna Convention |
The @road-signs/cy package contains Cypriot road signs from the Road Traffic Law (Cap. 332) — Vienna Convention.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/cySign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
A series | Hazard warnings |
priority |
B series | Right-of-way signs |
prohibitory |
C series | Prohibitions and restrictions |
mandatory |
D series | Mandatory actions |
information |
E–F series | Information and direction |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/cy';
// Example below uses the real CY sign "V5-1" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("v5-1-allowed-only-for-disabled-vehicles");
// By sign codeconst s = getSignByCode("V5-1");
// All information signsconst filtered = getSignsByCategory("information");import { getSignsByCategory } from '@road-signs/cy';import { RoadSign } from '@road-signs/react';
const informationSigns = getSignsByCategory("information");
export default function CYGrid() { 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/cy';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 | 153 |
| Signs with SVG | 153 |
| Missing SVG | 0 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
51 | 51 | 0 | 100% |
priority |
0 | 0 | 0 | — |
prohibitory |
77 | 77 | 0 | 100% |
mandatory |
0 | 0 | 0 | — |
information |
25 | 25 | 0 | 100% |
Standard: Road Traffic Law (Cap. 332) — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { CYSign, CYCategory } from '@road-signs/cy';
type CYCategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface CYSign { id: string; // e.g. "a1-sharp-bend" code: string; // sign code, e.g. "A1" name: string; description: string; category: CYCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}