Latvia (LV)
Quick facts
Section titled “Quick facts”| Field | Value |
|---|---|
| Drive side | Right-hand |
| Language(s) | Latvian |
| Regulator | CSDD |
| Standard | Ceļu satiksmes noteikumi — Vienna Convention |
The @road-signs/lv package contains Latvian road signs from the Ceļu satiksmes noteikumi.
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/lvSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
A series | Hazard warnings |
priority |
B series | Right-of-way |
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/lv';
// Example below uses the real LV sign "LV404" — adjust to taste.
// All signssigns.length;
// By slug IDconst sign = getSign("lv404-straight-ahead-or-right-turn-permitted");
// By sign codeconst s = getSignByCode("LV404");
// All mandatory signsconst filtered = getSignsByCategory("mandatory");import { getSignsByCategory } from '@road-signs/lv';import { RoadSign } from '@road-signs/react';
const mandatorySigns = getSignsByCategory("mandatory");
export default function LVGrid() { return ( <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap' }}> {mandatorySigns.map((sign) => ( <RoadSign key={sign.id} sign={sign} size={64} /> ))} </div> );}<script setup>import { getSignsByCategory } from '@road-signs/lv';import { RoadSign } from '@road-signs/vue';
const mandatorySigns = getSignsByCategory("mandatory");</script>
<template> <div style="display:flex;gap:8px;flex-wrap:wrap"> <RoadSign v-for="sign in mandatorySigns" :key="sign.id" :sign="sign" :size="64" /> </div></template>Coverage
Section titled “Coverage”| Metric | Value |
|---|---|
| Signs scraped | 224 |
| Signs with SVG | 223 |
| Missing SVG | 1 |
| Overall | 100% |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
39 | 39 | 0 | 100% |
priority |
9 | 9 | 0 | 100% |
prohibitory |
34 | 34 | 0 | 100% |
mandatory |
25 | 25 | 0 | 100% |
information |
117 | 116 | 1 | 99% |
Standard: Ceļu satiksmes noteikumi — Vienna Convention
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { LVSign, LVCategory } from '@road-signs/lv';
type LVCategory = 'information' | 'mandatory' | 'priority' | 'prohibitory' | 'warning';
interface LVSign { id: string; // e.g. "a1-sharp-bend" code: string; // sign code, e.g. "A1" name: string; description: string; category: LVCategory; svg: string; // inline SVG string assets: { svg: string; png: Record<number, string>; jpg: Record<number, string>; webp: Record<number, string>; };}