Greece (GR)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Greek |
| Regulator | Greek Ministry of Infrastructure |
| Code format | K-1 / R-1 / P-1 |
| Standard | ΚΟΚ (Κώδικας Οδικής Κυκλοφορίας) — Vienna Convention |
The @road-signs/gr package contains Greek road signs from the ΚΟΚ (Κώδικας Οδικής Κυκλοφορίας), the Greek road traffic code.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/grSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
ΚΟΚ series Κ | Hazard warnings — triangular |
priority |
— | Right-of-way and stop signs |
prohibitory |
ΚΟΚ series Ρ | Prohibitions and regulatory restrictions |
mandatory |
— | Compulsory actions |
information |
ΚΟΚ series Π | Information and direction signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/gr';
// Example below uses the real GR sign "1-curve-left" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("1-curve-left-1-curve-left");
// By sign codeconst s = getSignByCode("1-curve-left");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/gr';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function GRGrid() { 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/gr';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 | 452 |
| Signs with SVG | 433 |
| Missing SVG | 19 |
| Overall | 96% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
59 | 59 | 0 | 100% |
priority |
0 | 0 | 0 | — |
prohibitory |
134 | 134 | 0 | 100% |
mandatory |
0 | 0 | 0 | — |
information |
259 | 240 | 19 | 93% |
Standard: ΚΟΚ (Κώδικας Οδικής Κυκλοφορίας) — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { GRSign, GRCategory } from '@road-signs/gr';
type GRCategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface GRSign { id: string; // e.g. "k1-sharp-bend" code: string; // sign code, e.g. "K1" name: string; description: string; category: GRCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}