{
    "openapi": "3.1.0",
    "info": {
        "title": "Nakordoni Developer API",
        "version": "2026-12-04",
        "summary": "REST + JSON over HTTPS. One base URL, one key, predictable envelopes.",
        "description": "Generated from the Nakordoni Developer API endpoint registry (the same source as https://nakordoni.eu/api/v1/docs.md). Path-versioned per endpoint: /api/v1/… is stable; /api/v2/… and newer serve the newer behaviour only for the endpoints listed. Free key: https://nakordoni.eu/en/developers/signup",
        "termsOfService": "https://nakordoni.eu/en/p/developer_api_terms",
        "contact": {
            "name": "Nakordoni Developer Portal",
            "url": "https://nakordoni.eu/en/developers"
        },
        "license": {
            "name": "Nakordoni Developer API Terms",
            "url": "https://nakordoni.eu/en/p/developer_api_terms"
        }
    },
    "externalDocs": {
        "description": "API documentation",
        "url": "https://nakordoni.eu/en/developers/docs"
    },
    "servers": [
        {
            "url": "https://nakordoni.eu",
            "description": "Production"
        }
    ],
    "security": [
        {
            "bearerAuth": []
        },
        {
            "apiKeyHeader": []
        },
        {
            "apiKeyQuery": []
        }
    ],
    "tags": [
        {
            "name": "status",
            "description": "API Status",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/status"
            }
        },
        {
            "name": "account-usage",
            "description": "Account Usage API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/account-usage"
            }
        },
        {
            "name": "checkpoints",
            "description": "Checkpoints Directory API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/checkpoints"
            }
        },
        {
            "name": "multi",
            "description": "Multi-Checkpoint API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/multi"
            }
        },
        {
            "name": "border",
            "description": "Border Queue API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/border"
            }
        },
        {
            "name": "search",
            "description": "Checkpoint Search API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/search"
            }
        },
        {
            "name": "queue",
            "description": "Live Border Queue API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/queue"
            }
        },
        {
            "name": "queue-advanced",
            "description": "Advanced Wait Time API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/queue-advanced"
            }
        },
        {
            "name": "stats",
            "description": "Checkpoint Hourly Statistics API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/stats"
            }
        },
        {
            "name": "day-stats",
            "description": "Best Time to Cross API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/day-stats"
            }
        },
        {
            "name": "forecast",
            "description": "Queue Forecast API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/forecast"
            }
        },
        {
            "name": "alternatives",
            "description": "Checkpoint Alternatives API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/alternatives"
            }
        },
        {
            "name": "update-info",
            "description": "Live Queue & Freshness API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/update-info"
            }
        },
        {
            "name": "fuel",
            "description": "EU Fuel Prices API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/fuel"
            }
        },
        {
            "name": "fuel-cities",
            "description": "Fuel Prices by City API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/fuel-cities"
            }
        },
        {
            "name": "pois",
            "description": "Driver POIs API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/pois"
            }
        },
        {
            "name": "truck-parkings",
            "description": "Truck Parking API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/truck-parkings"
            }
        },
        {
            "name": "shade-route",
            "description": "Shade Walking Route API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/shade-route"
            }
        },
        {
            "name": "shade-grid",
            "description": "Shade Grid API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/shade-grid"
            }
        },
        {
            "name": "shade-windows",
            "description": "Shade Walk Windows API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/shade-windows"
            }
        },
        {
            "name": "dog-cool-spots",
            "description": "Cool Spots for Dogs API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/dog-cool-spots"
            }
        },
        {
            "name": "dog-cool-spots-route",
            "description": "Cool Spots for Dogs Along a Walk API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/dog-cool-spots-route"
            }
        },
        {
            "name": "route-cool-spots",
            "description": "Cool Spots Along a Route API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/route-cool-spots"
            }
        },
        {
            "name": "shops",
            "description": "Nearby Shops API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/shops"
            }
        },
        {
            "name": "showers",
            "description": "Free Showers API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/showers"
            }
        },
        {
            "name": "restaurants",
            "description": "Driver Restaurants API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/restaurants"
            }
        },
        {
            "name": "industrial",
            "description": "Industrial Zones API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/industrial"
            }
        },
        {
            "name": "fuel-stations",
            "description": "Nearby Fuel Stations API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/fuel-stations"
            }
        },
        {
            "name": "internet-points",
            "description": "Internet Points API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/internet-points"
            }
        },
        {
            "name": "vignettes",
            "description": "Vignettes & Road Tolls API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/vignettes"
            }
        },
        {
            "name": "fuel-cheapest",
            "description": "Cheapest Fuel Nearby API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/fuel-cheapest"
            }
        },
        {
            "name": "fuel-grades",
            "description": "Fuel Grade Names API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/fuel-grades"
            }
        },
        {
            "name": "fuel-local",
            "description": "Local Fuel Price API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/fuel-local"
            }
        },
        {
            "name": "currency",
            "description": "Currency Exchange Rates API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/currency"
            }
        },
        {
            "name": "exchange-cities",
            "description": "Exchange Office Cities API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/exchange-cities"
            }
        },
        {
            "name": "exchange-offices",
            "description": "Exchange Offices API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/exchange-offices"
            }
        },
        {
            "name": "exchange-office",
            "description": "Exchange Office Rates API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/exchange-office"
            }
        },
        {
            "name": "exchange-best-rates",
            "description": "Best Exchange Rates API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/exchange-best-rates"
            }
        },
        {
            "name": "exchange-history",
            "description": "Exchange Rate History API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/exchange-history"
            }
        },
        {
            "name": "truck-bans",
            "description": "Truck Driving Bans API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/truck-bans"
            }
        },
        {
            "name": "trading-sundays",
            "description": "Trading Sundays API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/trading-sundays"
            }
        },
        {
            "name": "holiday-calendar",
            "description": "Holiday Calendar API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/holiday-calendar"
            }
        },
        {
            "name": "holiday-calendar-holidays",
            "description": "Holiday Calendar — Holidays API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/holiday-calendar-holidays"
            }
        },
        {
            "name": "holiday-calendar-business-days",
            "description": "Holiday Calendar — Business Days API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/holiday-calendar-business-days"
            }
        },
        {
            "name": "holiday-calendar-countries",
            "description": "Holiday Calendar — Countries API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/holiday-calendar-countries"
            }
        },
        {
            "name": "holiday-calendar-impact",
            "description": "Holiday Calendar — Business Impact API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/holiday-calendar-impact"
            }
        },
        {
            "name": "weather",
            "description": "Border Weather Condition API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/weather"
            }
        },
        {
            "name": "bus-carriers",
            "description": "Bus Carrier Border Stats API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/bus-carriers"
            }
        },
        {
            "name": "road-conditions",
            "description": "Road Conditions API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/road-conditions"
            }
        },
        {
            "name": "assistant",
            "description": "Border AI Assistant API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/assistant"
            }
        },
        {
            "name": "assistant-custom",
            "description": "Personalised AI Assistant API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/assistant-custom"
            }
        },
        {
            "name": "travel-matrix",
            "description": "Border Travel Matrix API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/travel-matrix"
            }
        },
        {
            "name": "air-alerts",
            "description": "Air Alert Proximity API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/air-alerts"
            }
        },
        {
            "name": "route-plan",
            "description": "Route Planner API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/route-plan"
            }
        },
        {
            "name": "truck-route",
            "description": "Truck Route API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/truck-route"
            }
        },
        {
            "name": "motorhome-route",
            "description": "Motorhome Route API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/motorhome-route"
            }
        },
        {
            "name": "fleet-vehicles",
            "description": "Fleet Vehicles API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/fleet-vehicles"
            }
        },
        {
            "name": "fleet-live",
            "description": "Fleet Live Positions API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/fleet-live"
            }
        },
        {
            "name": "fleet-history",
            "description": "Fleet History API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/fleet-history"
            }
        },
        {
            "name": "fleet-compliance-validate",
            "description": "Fleet Compliance — Validate API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/fleet-compliance-validate"
            }
        },
        {
            "name": "fleet-compliance-limits",
            "description": "Fleet Compliance — Limits API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/fleet-compliance-limits"
            }
        },
        {
            "name": "fleet-compliance-plan-check",
            "description": "Fleet Compliance — Plan Check API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/fleet-compliance-plan-check"
            }
        },
        {
            "name": "bus-sun-side",
            "description": "Bus Sun Side API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/bus-sun-side"
            }
        },
        {
            "name": "bus-sun-catalog",
            "description": "Bus Sun Side — Bus Catalogue API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/bus-sun-catalog"
            }
        },
        {
            "name": "toll-cost",
            "description": "Truck Toll Cost API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/toll-cost"
            }
        },
        {
            "name": "lane-cost-index",
            "description": "Lane Cost Index API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/lane-cost-index"
            }
        },
        {
            "name": "market-rate",
            "description": "Market Rate API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/market-rate"
            }
        },
        {
            "name": "plate-recognition",
            "description": "Plate Image Recognition API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/plate-recognition"
            }
        },
        {
            "name": "pet-recognition",
            "description": "Pet Recognition API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/pet-recognition"
            }
        },
        {
            "name": "poi-opinion",
            "description": "POI Opinion API",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/poi-opinion"
            }
        },
        {
            "name": "fuel-report",
            "description": "Fuel Report API (send prices)",
            "externalDocs": {
                "url": "https://nakordoni.eu/en/developers/docs/fuel-report"
            }
        }
    ],
    "paths": {
        "/api/v1/data/status": {
            "get": {
                "tags": [
                    "status"
                ],
                "summary": "API Status",
                "description": "Live health of every Developer-API product: online / degraded / offline, response latency and last-checked time, plus an overall rollup. Public — no API key required, never counts against your quota. Refreshed every 5 minutes. Mirrors the human status page at nakordoni.eu/{lang}/status.\n\nExample: `/api/v1/data/status`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/status",
                "operationId": "statusV1",
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "checked_at": {
                                                            "description": "When the health snapshot was taken, ISO-8601 UTC. Refreshed every 5 minutes — not a live probe of the moment you call."
                                                        },
                                                        "overall": {
                                                            "description": "Rollup across every product: operational | degraded | outage."
                                                        },
                                                        "summary": {
                                                            "description": "Counts behind the rollup: total, online, degraded, offline."
                                                        },
                                                        "products": {
                                                            "description": "One entry per product slug: status (online | degraded | offline | coming_soon), latency_ms (null when the check is not an HTTP probe), detail (what the check saw) and title."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                },
                "security": []
            }
        },
        "/api/v2/data/account-usage": {
            "get": {
                "tags": [
                    "account-usage"
                ],
                "summary": "Account Usage API",
                "description": "What is left of your limits right now, for the key you call with: plan, per-second cap, and for each daily quota class (cheap, heavy, route) the limit, units used, units remaining and when the counter resets (midnight UTC). Also your approved countries as this key sees them and where to upgrade. Not metered — reading it never uses quota — and limited to 30 calls per minute per key. The numbers are the same ones the X-Devapi-Limit / X-Devapi-Remaining headers carry on every metered call.\n\nExample: `/api/v2/account/usage`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/account-usage",
                "operationId": "accountUsageV2",
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "plan": {
                                                            "description": "Your plan: slug and display name."
                                                        },
                                                        "qps": {
                                                            "description": "Per-second request cap that applies to this key now."
                                                        },
                                                        "quotas": {
                                                            "type": "object",
                                                            "properties": {
                                                                "cheap": {
                                                                    "type": "object",
                                                                    "properties": {
                                                                        "limit": {
                                                                            "description": "Daily allowance of the standard class; heavy and route have the same four fields."
                                                                        },
                                                                        "used": {
                                                                            "description": "Units spent today with this key."
                                                                        },
                                                                        "remaining": {
                                                                            "description": "Units left today — equals X-Devapi-Remaining."
                                                                        },
                                                                        "reset_at": {
                                                                            "description": "When the counter resets, ISO-8601 UTC (midnight UTC). The X-Devapi-Reset header gives the same moment as a Unix timestamp."
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "markets": {
                                                            "type": "object",
                                                            "properties": {
                                                                "approved": {
                                                                    "description": "Countries this key may use. Countries switched on through an integration work only with that integration's key."
                                                                },
                                                                "allowed": {
                                                                    "description": "How many countries the plan allows; null = unlimited."
                                                                },
                                                                "available": {
                                                                    "description": "Integration keys only: the integration's countries you do not have yet (null for other keys)."
                                                                },
                                                                "key_bound": {
                                                                    "description": "true when some approved countries belong to one key only, so another key can see a different list."
                                                                }
                                                            }
                                                        },
                                                        "upgrade_url": {
                                                            "description": "Billing page in your account language — upgrade the plan or add extra countries."
                                                        },
                                                        "pass": {
                                                            "description": "Integration keys only: Trip Pass state {active, expires_at, days_left}; null for other keys."
                                                        },
                                                        "pass_url": {
                                                            "description": "Integration keys only: link to the Trip Pass on the Billing page (account language); null for other keys."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/checkpoints": {
            "get": {
                "tags": [
                    "checkpoints"
                ],
                "summary": "Checkpoints Directory API",
                "description": "Directory of all monitored border checkpoints: IDs, names, countries, coordinates and status. Use it to discover ppid values for the other APIs. Each row carries has_day_stats — false means the Best Time to Cross API has no matrix for that checkpoint and would answer 404, so skip it instead of polling. Three more flags say what is available RIGHT NOW: has_live_data (is there a live queue value at all), last_observation (how old it is) and data_quality (high = counted at the crossing, low = a modelled estimate) — so you can tell an observed queue from an estimate, and a live one from one that stopped moving, before you poll.\n\nExample: `/api/v1/data/checkpoints`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/checkpoints",
                "operationId": "checkpointsV1",
                "parameters": [
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "Filter by country: either the ISO alpha-2 code (TR, GR, PL …) or the numeric checkpoint country code (1=UA, 2=PL, 3=SK, 4=HU, 5=RO, 6=MD, 7=BY, 8=LT, 9=LV, 14=TR, 19=GR, …). An unknown value answers 400 invalid_country listing every accepted value — it no longer returns an empty list.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for checkpoint names (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "checkpoints": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "ppid": {
                                                                        "description": "Checkpoint ID — the value every other product's ppid parameter takes."
                                                                    },
                                                                    "name": {
                                                                        "description": "Checkpoint name in the requested language."
                                                                    },
                                                                    "origin": {
                                                                        "description": "Numeric country code of the side the crossing is operated from."
                                                                    },
                                                                    "destination": {
                                                                        "description": "Numeric country code of the country across the border."
                                                                    },
                                                                    "crossing_type": {
                                                                        "description": "Vehicle type this row is monitored for: 4=car, 5=taxfree car, 6=bus, 7=pedestrian, 8=truck (Freight Transport), 9=truck up to 7.5 t."
                                                                    },
                                                                    "timezone": {
                                                                        "description": "IANA timezone of the crossing — every timestamp for it is in this zone."
                                                                    },
                                                                    "status": {
                                                                        "description": "1=open, 3=closed, 0=inactive."
                                                                    },
                                                                    "redirect_to": {
                                                                        "description": "Present only on a checkpoint that was RETIRED as a duplicate of another one at the same physical crossing: the ppid that superseded it. Such a row always carries status 0 — point your integration at the id named here. The retired id still answers the other products for now, but it is not the canonical one and is not guaranteed to keep updating."
                                                                    },
                                                                    "has_day_stats": {
                                                                        "description": "false means the Best Time to Cross product has no matrix for this checkpoint and would answer 404 — skip it rather than poll it."
                                                                    },
                                                                    "has_live_data": {
                                                                        "description": "Whether a live queue value currently exists for this checkpoint, i.e. whether the queue and border products will return a number for it rather than nothing. It says nothing about how recent that number is — read last_observation for that. About 65 of the monitored checkpoints have no live source at all. Absent from every row if the live-value store could not be read at all, so treat \"key missing\" as unknown, not as false."
                                                                    },
                                                                    "last_observation": {
                                                                        "description": "ISO 8601 timestamp of the live value behind has_live_data, or null when there is none. Some checkpoints keep answering with a value that stopped moving long ago — a few of them years ago — so check this age before presenting the queue as current."
                                                                    },
                                                                    "data_quality": {
                                                                        "description": "How the current live value was arrived at: high = counted from a real observation source at the crossing, low = a modelled estimate where no counting source exists. Same vocabulary as the Best Time to Cross and live queue products. Present only when has_live_data is true; omitted otherwise. Both are real answers — low is not an error — but a low value is an estimate and should be labelled as one if you show it to drivers."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "count": {
                                                            "description": "Number of checkpoints returned."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/multi": {
            "get": {
                "tags": [
                    "multi"
                ],
                "summary": "Multi-Checkpoint API",
                "description": "Fetch live queue status and/or data freshness for up to 5 checkpoints in a single request. Designed for dashboard builders who poll several PPIDs together — reduces 5 individual calls to one. Quota counts as ⌈(N PPIDs × sub-products) / 2⌉ — 50% cheaper than the equivalent individual calls. Use include=queue,update-info to get both datasets at once. From 2026-08-30 a request that lists more than 5 PPIDs is answered for its first 5 only: the rest are ignored (echoed back in meta.ppid_cap.ignored) and are not billed.\n\nExample: `/api/v1/data/multi?ppids=id_2,id_13,id_15&include=queue,update-info&lang=en`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/multi",
                "operationId": "multiV1",
                "parameters": [
                    {
                        "name": "ppids",
                        "in": "query",
                        "required": false,
                        "description": "Comma-separated list of checkpoint IDs (required, max 5 from 2026-08-30) — e.g. id_2,id_13,id_15. Extra IDs beyond the fifth are ignored, not rejected.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "include",
                        "in": "query",
                        "required": false,
                        "description": "Comma-separated sub-products to include: queue, update-info (default: queue,update-info)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language code for checkpoint names in queue responses (default: en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "additionalProperties": {
                                                        "description": "One object per requested checkpoint, keyed by ppid — not an array. A ppid you asked for that we do not monitor is absent.",
                                                        "type": "object",
                                                        "properties": {
                                                            "queue": {
                                                                "description": "Present when include contains queue: found, queue_now, wait_min, wait_status, trend_percent, trend_direction, age_min, freshness, name, updated_at, data_quality."
                                                            },
                                                            "update_info": {
                                                                "description": "Present when include contains update-info: found, timestamp, datetime, timezone, age_seconds, age_minutes, freshness, queue_now, data_quality."
                                                            },
                                                            "*": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "data_quality": {
                                                                        "description": "On both sub-products: high = counted from a real observation source at the crossing, low = a modelled estimate where no counting source exists. Same high|low vocabulary as the checkpoints directory, Border Queue and Best Time to Cross. Both are real answers; a low value is an estimate and should be labelled as one if you show it to drivers."
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "description": "Object keyed by <ppid>."
                                                },
                                                "meta": {
                                                    "type": "object",
                                                    "properties": {
                                                        "ppids_requested": {
                                                            "description": "How many ppids the call asked for (envelope level, beside data)."
                                                        },
                                                        "units_consumed": {
                                                            "description": "Quota units this call actually cost — ⌈(ppids × sub-products) / 2⌉, counted on the checkpoints actually answered."
                                                        },
                                                        "ppid_cap": {
                                                            "description": "Present ONLY when the call listed more than 5 PPIDs: cap, enforced_from, enforced, ppids_asked, ppids_answered, ignored[] and a plain-language notice. The same event also sets the X-Devapi-Warning response header."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/border/{origin}/{destination}/{crossing_type}": {
            "get": {
                "tags": [
                    "border"
                ],
                "summary": "Border Queue API",
                "description": "All checkpoints on a given border + vehicle type in one call — live queue, wait estimate, and data freshness for every crossing point. Supports a single destination, a comma-separated list, or \"all\" (list and \"all\" both deprecated) to query several neighbours at once. Results sorted by queue length ascending, each checkpoint tagged with its border country.\n\nExample: `/api/v1/data/border/1/2/4`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/border",
                "operationId": "borderV1",
                "parameters": [
                    {
                        "name": "origin",
                        "in": "path",
                        "required": true,
                        "description": "Origin country code (URL path segment): 1=Ukraine, 2=Poland, 3=Slovakia, 4=Hungary, 5=Romania, 6=Moldova, 7=Belarus, 8=Lithuania, 9=Latvia, 11=Slovenia, 12=Bulgaria, 13=Serbia, 14=Turkey, 15=North Macedonia, 16=Croatia, 17=Bosnia and Herzegovina, 18=Germany, 19=Greece, 20=Italy, 21=Albania, 22=Montenegro, 23=Kosovo.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "destination",
                        "in": "path",
                        "required": true,
                        "description": "Destination (URL path segment): a single country code, a comma-separated list (e.g. 2,3,5), or \"all\" to expand to all neighbours with monitored data. The list and \"all\" are BOTH deprecated and stop working on 2026-10-06 — data is licensed per country, so a request names one country. /api/v4/ takes exactly one destination per call: send one call per destination country.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "crossing_type",
                        "in": "path",
                        "required": true,
                        "description": "Vehicle type (URL path segment): 4=Car, 5=Car. Tax Free, 6=Bus, 7=Pedestrian, 8=Freight Transport, 9=Freight Transport up to 7.5 tons. Other ids exist in the checkpoint directory (ferry 10-13, freight up to 3.5 t 14, rail 15); this product answers 400 for them.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for checkpoint names in the response (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "origin": {
                                                            "description": "Numeric country code the path asked for, plus origin_name in the requested language."
                                                        },
                                                        "destinations": {
                                                            "description": "Numeric country codes the call expanded to, plus destination_names."
                                                        },
                                                        "crossing_type": {
                                                            "description": "Vehicle type of every row, plus crossing_type_label."
                                                        },
                                                        "checkpoints": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "ppid": {
                                                                        "description": "Checkpoint ID."
                                                                    },
                                                                    "name": {
                                                                        "description": "Checkpoint name in the requested language."
                                                                    },
                                                                    "border": {
                                                                        "description": "Numeric country code of the neighbour this crossing leads to, plus border_name."
                                                                    },
                                                                    "queue": {
                                                                        "description": "Vehicles counted in the queue right now."
                                                                    },
                                                                    "wait_min": {
                                                                        "description": "Estimated wait in minutes; null where the crossing has no wait signal."
                                                                    },
                                                                    "wait_status": {
                                                                        "description": "Plain-language band for the wait (e.g. free_flow, moderate, heavy)."
                                                                    },
                                                                    "trend_percent": {
                                                                        "description": "Change against the recent baseline, with trend_direction (up | down | flat)."
                                                                    },
                                                                    "updated_at": {
                                                                        "description": "When this reading was taken, plus age_min — how old it is now."
                                                                    },
                                                                    "source_url": {
                                                                        "description": "Public page for the checkpoint, for the attribution link."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "count": {
                                                            "description": "Number of checkpoints returned; generated_at is when the set was assembled."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/border/{origin}/{destination}/{crossing_type}": {
            "get": {
                "tags": [
                    "border"
                ],
                "summary": "Border Queue API",
                "description": "Directional border queues. The path order is the travel direction, matched against each checkpoint's own orientation: /1/2/6 = buses UA→PL (Ukrainian-side crossings), /2/1/6 = buses PL→UA (Polish-side crossings) — swap origin/destination for the opposite direction. Each checkpoint also carries a \"stale\" flag, and ?max_age_min=N returns only recently-updated crossings. Everything else matches v1.\n\nExample: `/api/v2/data/border/1/2/6`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/border",
                "operationId": "borderV2",
                "parameters": [
                    {
                        "name": "origin",
                        "in": "path",
                        "required": true,
                        "description": "Origin country code (URL path segment): 1=Ukraine, 2=Poland, 3=Slovakia, 4=Hungary, 5=Romania, 6=Moldova, 7=Belarus, 8=Lithuania, 9=Latvia, 11=Slovenia, 12=Bulgaria, 13=Serbia, 14=Turkey, 15=North Macedonia, 16=Croatia, 17=Bosnia and Herzegovina, 18=Germany, 19=Greece, 20=Italy, 21=Albania, 22=Montenegro, 23=Kosovo.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "destination",
                        "in": "path",
                        "required": true,
                        "description": "Destination (URL path segment): a single country code, a comma-separated list (e.g. 2,3,5), or \"all\" to expand to all neighbours with monitored data. The list and \"all\" are BOTH deprecated and stop working on 2026-10-06 — data is licensed per country, so a request names one country. /api/v4/ takes exactly one destination per call: send one call per destination country.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "crossing_type",
                        "in": "path",
                        "required": true,
                        "description": "Vehicle type (URL path segment): 4=Car, 5=Car. Tax Free, 6=Bus, 7=Pedestrian, 8=Freight Transport, 9=Freight Transport up to 7.5 tons. Other ids exist in the checkpoint directory (ferry 10-13, freight up to 3.5 t 14, rail 15); this product answers 400 for them.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for checkpoint names in the response (default en)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "max_age_min",
                        "in": "query",
                        "required": false,
                        "description": "Optional freshness filter (query string): return only checkpoints whose live reading is newer than N minutes (also drops those with no reading). Each checkpoint carries a \"stale\" boolean (older than 240 min, or than max_age_min if set).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "origin": {
                                                            "description": "Numeric country code the path asked for, plus origin_name in the requested language."
                                                        },
                                                        "destinations": {
                                                            "description": "Numeric country codes the call expanded to, plus destination_names."
                                                        },
                                                        "crossing_type": {
                                                            "description": "Vehicle type of every row, plus crossing_type_label."
                                                        },
                                                        "checkpoints": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "ppid": {
                                                                        "description": "Checkpoint ID."
                                                                    },
                                                                    "name": {
                                                                        "description": "Checkpoint name in the requested language."
                                                                    },
                                                                    "border": {
                                                                        "description": "Numeric country code of the neighbour this crossing leads to, plus border_name."
                                                                    },
                                                                    "queue": {
                                                                        "description": "Vehicles counted in the queue right now."
                                                                    },
                                                                    "wait_min": {
                                                                        "description": "Estimated wait in minutes; null where the crossing has no wait signal."
                                                                    },
                                                                    "wait_status": {
                                                                        "description": "Plain-language band for the wait (e.g. free_flow, moderate, heavy)."
                                                                    },
                                                                    "trend_percent": {
                                                                        "description": "Change against the recent baseline, with trend_direction (up | down | flat)."
                                                                    },
                                                                    "updated_at": {
                                                                        "description": "When this reading was taken, plus age_min — how old it is now."
                                                                    },
                                                                    "source_url": {
                                                                        "description": "Public page for the checkpoint, for the attribution link."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "count": {
                                                            "description": "Number of checkpoints returned; generated_at is when the set was assembled."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v4/data/border/{origin}/{destination}/{crossing_type}": {
            "get": {
                "tags": [
                    "border"
                ],
                "summary": "Border Queue API",
                "description": "Directional border queues, as v2, with two removals. ONE DESTINATION PER CALL: v4 takes a single destination country — neither \"all\" nor a comma-separated list is accepted, and both answer 400. Markets are licensed per country (Developer API Terms, section 7), and any request covering several countries at once returns data an account may not hold, which is the one request shape the market gate cannot police. Query several countries by sending several calls — there is no batching product for borders (`multi` is per-checkpoint, up to 5 PPIDs, and has no concept of a border). Freight is one code: 9 returns every truck lane on the border (v1/v2 split it into 8 and 9, so asking for 9 on UA-PL returned 21 crossings out of 70), and 8 is accepted as an alias of 9. Each row carries its own crossing_type so a merged answer stays inspectable.\n\nExample: `/api/v4/data/border/1/2/9`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/border",
                "operationId": "borderV4",
                "parameters": [
                    {
                        "name": "origin",
                        "in": "path",
                        "required": true,
                        "description": "Origin country code (URL path segment): 1=Ukraine, 2=Poland, 3=Slovakia, 4=Hungary, 5=Romania, 6=Moldova, 7=Belarus, 8=Lithuania, 9=Latvia, 11=Slovenia, 12=Bulgaria, 13=Serbia, 14=Turkey, 15=North Macedonia, 16=Croatia, 17=Bosnia and Herzegovina, 18=Germany, 19=Greece, 20=Italy, 21=Albania, 22=Montenegro, 23=Kosovo.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "destination",
                        "in": "path",
                        "required": true,
                        "description": "Destination country code — exactly one country. A comma list or \"all\" is rejected with 400.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "crossing_type",
                        "in": "path",
                        "required": true,
                        "description": "Vehicle type (URL path segment): 4=Car, 5=Car. Tax Free, 6=Bus, 7=Pedestrian, 8=Freight Transport, 9=Freight Transport up to 7.5 tons. Other ids exist in the checkpoint directory (ferry 10-13, freight up to 3.5 t 14, rail 15); this product answers 400 for them.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for checkpoint names in the response (default en)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "max_age_min",
                        "in": "query",
                        "required": false,
                        "description": "Optional freshness filter (query string): return only checkpoints whose live reading is newer than N minutes (also drops those with no reading). Each checkpoint carries a \"stale\" boolean.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "checkpoints": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "crossing_type": {
                                                                        "description": "The crossing's own type — 8 or 9 inside a merged truck answer."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "crossing_type_requested": {
                                                            "description": "Set only when the request used 8 and it was folded into 9; null otherwise."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/search": {
            "get": {
                "tags": [
                    "search"
                ],
                "summary": "Checkpoint Search API",
                "description": "Find checkpoint PPIDs by name. Pass a single name or a comma-separated list (up to 20). Searches all translation languages; returns all PPIDs at that location grouped by vehicle type (4=car, 5=taxfree car, 6=bus, 7=pedestrian, 8=truck (Freight Transport), 9=truck up to 7.5 t). Use this to quickly discover the right ppid before calling the queue or forecast APIs.\n\nExample: `/api/v1/data/search?name=Krakovets,Shehyni&lang=en`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/search",
                "operationId": "searchV1",
                "parameters": [
                    {
                        "name": "name",
                        "in": "query",
                        "required": false,
                        "description": "Checkpoint name or comma-separated names, in any language (e.g. Krakovets, Краківець, Krakivets)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for returned names (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "results": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "query": {
                                                                        "description": "The name you searched for — one result object per comma-separated query, in the order you sent them."
                                                                    },
                                                                    "count": {
                                                                        "description": "How many checkpoints matched that query."
                                                                    },
                                                                    "matches": {
                                                                        "type": "array",
                                                                        "description": "Matching checkpoints with ppid, name and the identifying fields needed to call the other products. An empty list means no match — not an error."
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/queue": {
            "get": {
                "tags": [
                    "queue"
                ],
                "summary": "Live Border Queue API",
                "description": "Real-time queue length, wait estimate and status for any monitored checkpoint, plus hourly/daily aggregates.\n\nExample: `/api/v1/data/queue?ppid=id_13`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/queue",
                "operationId": "queueV1",
                "parameters": [
                    {
                        "name": "ppid",
                        "in": "query",
                        "required": false,
                        "description": "Checkpoint ID, e.g. id_13 (see /api/v1/data/checkpoints)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "section",
                        "in": "query",
                        "required": false,
                        "description": "Data section (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "origin",
                        "in": "query",
                        "required": false,
                        "description": "Origin country code (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "destination",
                        "in": "query",
                        "required": false,
                        "description": "Destination country code (optional)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "array",
                                                    "description": "Hourly series for the checkpoint, oldest first — one element per reading.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "time": {
                                                                "description": "Unix timestamp of the reading, in the checkpoint's own timezone."
                                                            },
                                                            "avg_cars": {
                                                                "description": "Vehicles in the queue at that hour."
                                                            },
                                                            "wait_time": {
                                                                "description": "Wait in minutes at that hour."
                                                            },
                                                            "wait_time_estimated": {
                                                                "description": "true = the wait is our estimate from the queue length, not an official figure."
                                                            },
                                                            "type_of_data": {
                                                                "description": "1 = a real observation; 2 = a forecast point (future hours). It says whether the row was measured or predicted — it carries no information about where the reading came from."
                                                            },
                                                            "data_quality": {
                                                                "description": "How that row was arrived at: high = counted from a real observation source at the crossing, low = a modelled estimate where no counting source exists. Present on observation rows only (type_of_data 1) — a forecast point is predicted by definition. Same high|low vocabulary as the checkpoints directory, Border Queue and Best Time to Cross. Both are real answers; low is not an error, but it is an estimate and should be labelled as one if you show it to drivers."
                                                            }
                                                        }
                                                    }
                                                },
                                                "snapshot": {
                                                    "type": "object",
                                                    "properties": {
                                                        "timezone": {
                                                            "description": "IANA zone that snapshot.updated_at is expressed in — it is the checkpoint's own local time, not one fixed zone (e.g. Europe/Istanbul for id_385, Europe/Sofia for id_390, Europe/Budapest for id_407). Use it to resolve updated_at to an absolute instant."
                                                        }
                                                    },
                                                    "description": "Envelope-level, beside data: the current state — queue_now, wait_min, updated_at, timezone, age_min, data_quality. Read this for 'now'; data is the history behind it."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/queue-advanced": {
            "get": {
                "tags": [
                    "queue-advanced"
                ],
                "summary": "Advanced Wait Time API",
                "description": "Wait time adjusted for live traffic flow and weather, with a full breakdown of each adjustment, plus the same wait_status/trend fields as border and multi. Billed at 1.5x a normal heavy-class call, reflecting the extra traffic/weather/driver-report lookups. Granted on request.\n\nExample: `/api/v1/data/queue-advanced?ppid=id_13`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/queue-advanced",
                "operationId": "queueAdvancedV1",
                "parameters": [
                    {
                        "name": "ppid",
                        "in": "query",
                        "required": false,
                        "description": "Checkpoint ID, e.g. id_13 (see /api/v1/data/checkpoints)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "queue_now": {
                                                            "description": "Vehicles in the queue right now, with base_wait_min — the wait before any adjustment."
                                                        },
                                                        "advanced_wait_min": {
                                                            "description": "Wait after every adjustment below is applied. dynamic_wait_min blends it with fresh driver reports."
                                                        },
                                                        "wait_status": {
                                                            "description": "Band for the wait, with trend_percent and trend_direction."
                                                        },
                                                        "section_mode": {
                                                            "description": "Measured section transit time feeding the model: value, modifier, age_min, stale."
                                                        },
                                                        "weather": {
                                                            "description": "Weather adjustment: multiplier, reason, data_age_minutes, plus the road condition on our own 0-5 hazard scale — condition_code (0 good, 1 fog, 2 snow, 3 rain, 4 ice, 5 wind), condition (the machine key) and severity (none|low|moderate|major). Raw provider readings (temperature, wind speed, the provider's own condition name) are not served: the licence covers our derived value, not the observation behind it. condition_code is null when we hold no weather for the checkpoint — 0 would claim a clear road we have not observed."
                                                        },
                                                        "service_rate": {
                                                            "description": "Booth throughput: cars_per_min, modifier, age_min, stale."
                                                        },
                                                        "shift_change": {
                                                            "description": "Border-shift effect: adjustment_min, shift_hour, avg_coefficient, sample_count, in_window."
                                                        },
                                                        "dynamic": {
                                                            "description": "How driver reports were blended in: source, reports_n, reports_age_min, reported_median_min, blend_weight."
                                                        },
                                                        "driver_reported": {
                                                            "description": "The freshest driver-reported wait itself (wait_min, ts, age_min), or null when there is none."
                                                        },
                                                        "exceeds_crossing_time": {
                                                            "description": "true = the modelled wait came out longer than the measured total crossing time it is a part of — treat the number as unreliable."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/stats": {
            "get": {
                "tags": [
                    "stats"
                ],
                "summary": "Checkpoint Hourly Statistics API",
                "description": "Hourly historical queue stats per checkpoint and date: 24 hourly values, daily avg/min/max, peak and quietest hours, day-over-day comparison.\n\nExample: `/api/v1/data/stats?ppid=id_15&date=2026-06-01&compare=1`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/stats",
                "operationId": "statsV1",
                "parameters": [
                    {
                        "name": "ppid",
                        "in": "query",
                        "required": false,
                        "description": "Checkpoint ID, e.g. id_13 (see /api/v1/data/checkpoints)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "date",
                        "in": "query",
                        "required": false,
                        "description": "YYYY-MM-DD (default: yesterday)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "compare",
                        "in": "query",
                        "required": false,
                        "description": "1 = include previous day + delta",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language code (default uk)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "ppid": {
                                                            "description": "Checkpoint the statistics belong to, with checkpoint.name and checkpoint.source_url."
                                                        },
                                                        "date": {
                                                            "description": "The day covered, in the checkpoint's timezone (data.timezone); unit says what the numbers count."
                                                        },
                                                        "hourly": {
                                                            "type": "array",
                                                            "description": "24 elements: hour, value, data_points (observations behind that hour). value is null for an hour with no data."
                                                        },
                                                        "labels": {
                                                            "description": "Hour labels for the 24 buckets; values is the bare value series, aligned with them."
                                                        },
                                                        "daily": {
                                                            "description": "Whole-day rollup: avg, min, max, total, hours_with_data."
                                                        },
                                                        "peak": {
                                                            "description": "Busiest hour of the day, and quietest the calmest — both null when the day has too little data."
                                                        },
                                                        "data_available": {
                                                            "description": "false = we hold nothing for that date; every number above is then empty rather than zero."
                                                        },
                                                        "compare": {
                                                            "description": "Present only with compare=1: the same shape for the previous day plus delta_avg."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/day-stats": {
            "get": {
                "tags": [
                    "day-stats"
                ],
                "summary": "Best Time to Cross API",
                "description": "Typical-week load statistics per checkpoint: 7×24 day-of-week × hour matrix (median + p25/p75 band), quietest/busiest day, best/worst 2-hour windows. Precomputed daily from ~60 days of real observations.\n\nExample: `/api/v1/data/day-stats?ppid=id_13&lang=en`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/day-stats",
                "operationId": "dayStatsV1",
                "parameters": [
                    {
                        "name": "ppid",
                        "in": "query",
                        "required": false,
                        "description": "Checkpoint ID, e.g. id_13",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for weekday/unit labels (default uk)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "matrix": {
                                                            "description": "7×24 median queue: matrix[dayOfWeek][hour], day 0 = Monday, hours in the checkpoint's timezone (data.tz)."
                                                        },
                                                        "lo": {
                                                            "description": "Same 7×24 shape — the p25 floor of the band; hi is the p75 ceiling."
                                                        },
                                                        "counts": {
                                                            "description": "Observations behind each cell — a cell with few counts is a weak median."
                                                        },
                                                        "weekday_avg": {
                                                            "description": "Seven averages, one per weekday; best_day and worst_day index into them."
                                                        },
                                                        "best_slots": {
                                                            "type": "array",
                                                            "description": "Quietest 2-hour windows: dow, hour, v (the value). worst_slots is the same for the busiest."
                                                        },
                                                        "overall_avg": {
                                                            "description": "Average across the whole matrix, with overall_max."
                                                        },
                                                        "samples": {
                                                            "description": "Readings the matrix was built from, over period_days; data_quality grades that sample."
                                                        },
                                                        "data_quality": {
                                                            "description": "'high' = the matrix is this checkpoint's OWN observations. 'low' = there was not enough direct history, so the mirror direction's matrix is returned as an estimate — see estimated_from."
                                                        },
                                                        "estimated_from": {
                                                            "description": "Present only when data_quality is low: the ppid the matrix actually came from (the same crossing in the opposite direction, same vehicle type). The numbers are NOT observations of the checkpoint you asked for — do not feed them to a model as if they were. data_quality_note carries the same warning as prose."
                                                        },
                                                        "generated_at": {
                                                            "description": "When the matrix was last recomputed (unix). It is precomputed daily, not per request."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/forecast": {
            "get": {
                "tags": [
                    "forecast"
                ],
                "summary": "Queue Forecast API",
                "description": "ML ensemble forecast of queue levels: 24-hour and 7-day (168h) horizons with confidence bounds. The same model that powers nakordoni.eu predictions.\n\nExample: `/api/v1/data/forecast?ppid=id_13&prediction_steps=24`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/forecast",
                "operationId": "forecastV1",
                "parameters": [
                    {
                        "name": "ppid",
                        "in": "query",
                        "required": false,
                        "description": "Checkpoint ID, e.g. id_13 (see /api/v1/data/checkpoints)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "prediction_steps",
                        "in": "query",
                        "required": false,
                        "description": "24 (default) or 168 for 7-day",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "array",
                                                    "description": "One element per forecast step, nearest first — 24 or 168 of them.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "time": {
                                                                "description": "Unix timestamp the step forecasts, with hours_from_now."
                                                            },
                                                            "avg_cars": {
                                                                "description": "Predicted queue at that hour."
                                                            },
                                                            "lower_bound": {
                                                                "description": "Confidence band around avg_cars, with upper_bound; the _50 pair is the narrower 50% band."
                                                            },
                                                            "type_of_data": {
                                                                "description": "Provenance marker of the input reading the step was built from."
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/alternatives": {
            "get": {
                "tags": [
                    "alternatives"
                ],
                "summary": "Checkpoint Alternatives API",
                "description": "Nearby alternative checkpoints on the same border with current queues and distance deltas. By default filters to the same vehicle type as the requested ppid. Use crossing_type to override — e.g. crossing_type=4 for cars, crossing_type=7 for pedestrians.\n\nExample: `/api/v1/data/alternatives?ppid=id_13&crossing_type=4`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/alternatives",
                "operationId": "alternativesV1",
                "parameters": [
                    {
                        "name": "ppid",
                        "in": "query",
                        "required": false,
                        "description": "Checkpoint ID (e.g. id_13)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language code (default uk)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "crossing_type",
                        "in": "query",
                        "required": false,
                        "description": "Optional vehicle type override: 4=car, 5=taxfree car, 6=bus, 7=pedestrian, 8=truck (Freight Transport), 9=truck up to 7.5 t. Defaults to same type as the requested ppid.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max results (1–10, default 5)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "ppid": {
                                                            "description": "The checkpoint you asked about, with checkpoint.name, checkpoint.queue, checkpoint.unit and checkpoint.source_url."
                                                        },
                                                        "crossing_type_filter": {
                                                            "description": "Vehicle type the alternatives were filtered to."
                                                        },
                                                        "alternatives": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "ppid": {
                                                                        "description": "A nearby crossing on the same border, with name and source_url."
                                                                    },
                                                                    "distance_km": {
                                                                        "description": "Road distance from the checkpoint you asked about."
                                                                    },
                                                                    "queue": {
                                                                        "description": "Its queue now, in unit, and diff — the difference against your checkpoint (negative = shorter)."
                                                                    },
                                                                    "is_better": {
                                                                        "description": "true when this crossing is currently the better bet."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "best": {
                                                            "description": "The single best alternative, same fields — null when none beats your checkpoint."
                                                        },
                                                        "generated_at": {
                                                            "description": "When the comparison was made."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/update-info": {
            "get": {
                "tags": [
                    "update-info"
                ],
                "summary": "Live Queue & Freshness API",
                "description": "Current queue length for one checkpoint plus how fresh that reading is — returns queue_now, freshness, age_minutes, is_realtime, status, timestamp and timezone. This is the STANDARD-class way to poll live queue data: use it for frequent refreshes and keep the heavy quota for /queue, /multi and /forecast, which return the fuller payload (wait_min, trend, history).\n\nExample: `/api/v1/data/update-info?ppid=id_13`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/update-info",
                "operationId": "updateInfoV1",
                "parameters": [
                    {
                        "name": "ppid",
                        "in": "query",
                        "required": false,
                        "description": "Checkpoint ID, e.g. id_13 (see /api/v1/data/checkpoints)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language code",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "queue_now": {
                                                            "description": "Vehicles in the queue at the latest reading."
                                                        },
                                                        "timestamp": {
                                                            "description": "When that reading was taken (unix), with datetime and timezone — the checkpoint's own zone."
                                                        },
                                                        "age_seconds": {
                                                            "description": "How old the reading is now, also as age_minutes and age_hours."
                                                        },
                                                        "freshness": {
                                                            "description": "Plain-language band for that age. is_realtime says the row is an observation rather than a forecast point — it does NOT say the observation was counted; read data_quality for that."
                                                        },
                                                        "data_quality": {
                                                            "description": "high = the reading was counted from a real observation source at the crossing; low = a modelled estimate, because that checkpoint has no counting source. Same high|low vocabulary as the checkpoints directory, Border Queue and Best Time to Cross. Both are real answers; low is not an error, but do not present a low value to drivers as a measurement."
                                                        },
                                                        "found": {
                                                            "description": "false = we monitor the checkpoint but hold no reading; status carries the reason."
                                                        },
                                                        "origin": {
                                                            "description": "Which upstream the reading came from."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/fuel": {
            "get": {
                "tags": [
                    "fuel"
                ],
                "summary": "EU Fuel Prices API",
                "description": "Fuel prices across EU countries — country averages, nearest stations by coordinates, or stations near a border checkpoint. Aggregated from official national price registries and market data. A single-country answer carries a `grades` object mapping each price key (petrol, petrol95plus, petrol92, petrol98, diesel, lpg) to its canonical grade and to the local pump name for that country; the all-countries summary carries the canonical mapping only, as `grade_keys`.\n\nExample: `/api/v1/data/fuel?country=PL`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/fuel",
                "operationId": "fuelV1",
                "parameters": [
                    {
                        "name": "mode",
                        "in": "query",
                        "required": false,
                        "description": "country (default) | nearest | border. country = national average; nearest = stations near lat/lon; border = stations near a checkpoint",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO country code for mode=country (PL, DE, AT, FR, ES, IT, PT, SI, LU, RO, DK, HR, HU, SK, UA, …)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lat",
                        "in": "query",
                        "required": false,
                        "description": "Latitude for mode=nearest",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lon",
                        "in": "query",
                        "required": false,
                        "description": "Longitude for mode=nearest (alias: lng)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "radius_km",
                        "in": "query",
                        "required": false,
                        "description": "Search radius km for mode=nearest (default 30; alias: radius)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "ppid",
                        "in": "query",
                        "required": false,
                        "description": "Checkpoint ID for mode=border (e.g. id_13)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "fuel_type",
                        "in": "query",
                        "required": false,
                        "description": "Optional, for mode=nearest: diesel | e5 | e10 | petrol95_premium | superplus | super100 | premdiesel | truckdiesel | hvo | lpg | cng | biocng | adblue | e85 | lng | biolng (prices per litre; per kg for cng, biocng, lng and biolng; availability varies by station/region). Local pump names are accepted as well — ON, Olej napędowy, Pb95, Nafta, Dizel, Gázolaj, Motorină, Benzină 95, ДП, А-95, Motorin, Gasóleo, Sans plomb 95, Bleifrei … — resolved against `country` (or, for coordinate products, the country the point falls in), because the same wording is not the same grade everywhere: “95” is E10 at a Danish, Finnish, French, British, Belgian or Dutch pump and E5 at a Polish or German one. The response echoes `fuel_type` (canonical), `fuel_type_requested` (as you typed it) and `fuel_type_local`. A name we cannot place is never swapped for a default grade — the answer comes back empty and says so. Full table of names per country: /api/v2/data/fuel-grades.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language code for labels",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max stations returned for mode=nearest/border (default 5)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "data": {
                                                            "type": "object",
                                                            "properties": {
                                                                "country": {
                                                                    "description": "ISO-2 country the averages belong to, with country_name in the requested language."
                                                                },
                                                                "petrol": {
                                                                    "description": "National average for 95-octane petrol, in data.data.currency. petrol98 is the 98-octane average, petrol92 the 92-octane one and petrol95plus the additive-enhanced 95 — each is null where the country does not report it."
                                                                },
                                                                "diesel": {
                                                                    "description": "National average for diesel."
                                                                },
                                                                "lpg": {
                                                                    "description": "National average for LPG, in the country's own currency; lpg_eur is the same figure converted to EUR for cross-country comparison."
                                                                },
                                                                "updated": {
                                                                    "description": "Date the averages are from — daily or weekly depending on the source, never live."
                                                                },
                                                                "trend_petrol": {
                                                                    "description": "up | down | null against the previous reading, and trend_diesel the same for diesel."
                                                                }
                                                            }
                                                        },
                                                        "grades": {
                                                            "description": "One entry per price key above: grade (our canonical code), local_name (what a driver in that country calls it) and premium. Additive — the price keys themselves are unchanged."
                                                        },
                                                        "grade_keys": {
                                                            "description": "Returned instead of grades when you ask for every country at once: the price key → canonical grade mapping only, without the per-country local names."
                                                        },
                                                        "labels": {
                                                            "description": "Localised UI strings for the keys above — for rendering, not data."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/fuel-cities": {
            "get": {
                "tags": [
                    "fuel-cities"
                ],
                "summary": "Fuel Prices by City API",
                "description": "Per-city fuel price summary for a country: cheapest station price and average across the top 5 stations in each major city. City-level data today: AT, DE, ES, FR, HR, IT, LU, PT, SI, DK — RO is accepted but has no priced stations yet and returns no cities. Which grades a country can answer differs sharply (SI, IT and PT carry diesel only; HR diesel and lpg; DE, AT, FR and LU carry most of the range), so every response reports `available_fuel_types` derived from the station data actually reachable from that country's cities — read it before choosing `fuel_type`. Asking for a grade the country has no price for returns `cities: []` and a `note` naming what is available; it is never silently answered with a different grade.\n\nExample: `/api/v1/data/fuel-cities?country=hr&fuel_type=diesel&lang=en`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/fuel-cities",
                "operationId": "fuelCitiesV1",
                "parameters": [
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code (required). Accepted: at, de, fr, es, it, pt, si, lu, ro, dk, hr — ro currently answers with no cities (no priced stations recorded)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "fuel_type",
                        "in": "query",
                        "required": false,
                        "description": "diesel (default) | e5 | e10 | petrol95_premium | superplus | super100 | premdiesel | truckdiesel | hvo | lpg | cng | biocng | adblue | e85 | lng | biolng (prices per litre; per kg for cng, biocng, lng and biolng) — availability is per country, not per platform. Read `available_fuel_types` in the response and pick from it; a grade absent from that list returns an empty `cities` array with a `note`, not a fallback grade. Local pump names are accepted as well — ON, Olej napędowy, Pb95, Nafta, Dizel, Gázolaj, Motorină, Benzină 95, ДП, А-95, Motorin, Gasóleo, Sans plomb 95, Bleifrei … — resolved against `country` (or, for coordinate products, the country the point falls in), because the same wording is not the same grade everywhere: “95” is E10 at a Danish, Finnish, French, British, Belgian or Dutch pump and E5 at a Polish or German one. The response echoes `fuel_type` (canonical), `fuel_type_requested` (as you typed it) and `fuel_type_local`. A name we cannot place is never swapped for a default grade — the answer comes back empty and says so. Full table of names per country: /api/v2/data/fuel-grades.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language code for city names (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "country": {
                                                            "description": "ISO-2 country, with country_name in the requested language."
                                                        },
                                                        "fuel_type": {
                                                            "description": "The canonical grade the prices are for. fuel_type_requested is what you sent, fuel_type_local the name a driver there uses."
                                                        },
                                                        "available_fuel_types": {
                                                            "description": "Grades this country actually has priced stations for — derived from the data, not a menu. Pick fuel_type from it."
                                                        },
                                                        "available_fuel_types_local": {
                                                            "description": "The same list keyed by grade, valued with the local pump name."
                                                        },
                                                        "cities": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "city_name": {
                                                                        "description": "City, with city_key, lat and lng."
                                                                    },
                                                                    "cheapest": {
                                                                        "description": "Lowest station price in that city, with avg_price across the top stations, both in data.currency."
                                                                    },
                                                                    "stations": {
                                                                        "type": "array",
                                                                        "description": "The stations behind those numbers: name, brand, price, lat, lng."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "count": {
                                                            "description": "Cities returned. An empty cities list with a note means the country has no price for that grade — it is never answered with a different grade."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/pois": {
            "get": {
                "tags": [
                    "pois"
                ],
                "summary": "Driver POIs API",
                "description": "Truck parkings (14k+), free showers, services and supermarkets across Europe with coordinates. Results are sorted closest-first with distance_km. Locate by lat/lon or by city (+country).\n\nExample: `/api/v1/data/pois?type=parking&lat=50.7&lon=23.9&radius=50`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/pois",
                "operationId": "poisV1",
                "parameters": [
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "description": "parking|autohof|truck_stop|shower|restaurant|supermarket|industrial (comma-separable)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lat",
                        "in": "query",
                        "required": true,
                        "description": "Latitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lon",
                        "in": "query",
                        "required": true,
                        "description": "Longitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "city",
                        "in": "query",
                        "required": false,
                        "description": "City name — alternative to lat/lon, resolved to coordinates",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code, disambiguates city (e.g. city=Brest needs FR vs BY)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "radius",
                        "in": "query",
                        "required": false,
                        "description": "Radius km (default 25, max 150)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max results (default 50, max 500)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for country names (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "pois": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "id": {
                                                                        "description": "POI ID, with type — which of the requested types this one is."
                                                                    },
                                                                    "name": {
                                                                        "description": "Name, with address."
                                                                    },
                                                                    "lat": {
                                                                        "description": "Coordinates, with lng and distance_km from the search point."
                                                                    },
                                                                    "country": {
                                                                        "description": "ISO-2 country, with country_code and country_name."
                                                                    },
                                                                    "amenities": {
                                                                        "description": "v2: array of amenity tokens: only facilities we hold as PRESENT (a facility a feed lists as absent is never included). The key is absent when we hold none. Same vocabulary as truck-parkings, e.g. toilets, shower, washing, restaurant, food, shop, fuel, diesel, adblue, lpg, ev_charging, wifi, atm, security, cctv, fenced, lighting, parking, truck_access, open_24h, accessible. v1 keeps its frozen list unchanged."
                                                                    },
                                                                    "details": {
                                                                        "description": "v2 only. Object with only the facts we hold: capacity (int), fee (bool), opening_hours (OSM-style string, \"24/7\" when always open), surface, lit (bool), phone, brand, services (English labels, e.g. \"Truck wash\"), parking_booking (\"none\" | \"possible\" | \"required\"). Omitted when we hold none."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "total_found": {
                                                            "description": "Matches inside the radius; limit is how many were returned. search_location echoes the point searched."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/truck-parkings": {
            "get": {
                "tags": [
                    "truck-parkings"
                ],
                "summary": "Truck Parking API",
                "description": "The closest truck parkings, Autohöfe and truck stops to a point or city — sorted by distance with distance_km, name, coordinates, country and amenities. 118,000+ named locations in 62 countries, the same parking data our TruckTurn truck navigation uses.\n\nExample: `/api/v2/data/truck-parkings?city=Katowice&country=PL&radius=40`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/truck-parkings",
                "operationId": "truckParkingsV2",
                "parameters": [
                    {
                        "name": "lat",
                        "in": "query",
                        "required": true,
                        "description": "Latitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lon",
                        "in": "query",
                        "required": true,
                        "description": "Longitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "city",
                        "in": "query",
                        "required": false,
                        "description": "City name — alternative to lat/lon, resolved to coordinates",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code, disambiguates city",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "radius",
                        "in": "query",
                        "required": false,
                        "description": "Radius km (default 25, max 150)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max results (default 50, max 500)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for country names (default en)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "dataset",
                        "in": "query",
                        "required": false,
                        "description": "Optional. legacy = the previous dataset (before 2026-11-11: about 22k locations, old ids) for the transition; available until 2026-12-31. Omit for the current dataset.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "pois": {
                                                            "type": "array",
                                                            "description": "Truck parkings, autohofs and truck stops near the point: id, type, name, address, lat, lng, country, country_code, country_name, distance_km, amenities, details. address is often empty in the current dataset.",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "id": {
                                                                        "description": "Stable integer id. A place that was in the previous dataset (within 50 m) keeps its old id; other places have ids from 2^47 up (below 2^53, safe as a JSON number). The same place keeps its id across our data refreshes. Ids of ?dataset=legacy are the old ids."
                                                                    },
                                                                    "amenities": {
                                                                        "description": "Array of amenity tokens we hold for the place (empty when none), e.g. toilets, shower, washing, restaurant, food, shop, fuel, diesel, adblue, ev_charging, wifi, security, cctv, fenced, lighting, parking, booking_possible, booking_required, adr_allowed, adr_not_allowed."
                                                                    },
                                                                    "details": {
                                                                        "description": "Object with only the facts we hold: capacity (int), fee (bool), opening_hours (OSM-style string, \"24/7\" when always open), surface, lit (bool), phone, brand, services (English labels, e.g. \"Truck wash\"), parking_booking (\"none\" | \"possible\" | \"required\"). Omitted when we hold none."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "total_found": {
                                                            "description": "Matches inside the radius, with limit and search_location."
                                                        }
                                                    }
                                                },
                                                "resolved_location": {
                                                    "description": "Envelope level: when you passed a city, the coordinates it resolved to — query, lat, lon, label."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/shade-route": {
            "get": {
                "tags": [
                    "shade-route"
                ],
                "summary": "Shade Walking Route API",
                "description": "Pedestrian routes ranked by how much of the way lies in building and tree shade at the time of the walk (heat) or in sun (cold). Each route comes with distance, duration, shade share, an asphalt surface temperature estimate and per-segment shade as GeoJSON, plus the best departure window in the next 6 hours. Pilot coverage: Poznan (PL); elsewhere plain routes with shade_routing=unavailable.\n\nExample: `/api/v2/data/shade-route?from=52.4013,16.9115&to=52.4084,16.9336&depart=2026-07-15T12:00`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/shade-route",
                "operationId": "shadeRouteV2",
                "parameters": [
                    {
                        "name": "from",
                        "in": "query",
                        "required": true,
                        "description": "Start as lat,lon (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "required": false,
                        "description": "Destination as lat,lon — omit and pass loop_km for a round walk",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "loop_km",
                        "in": "query",
                        "required": false,
                        "description": "Round-walk length in km (1-15) when to is omitted",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "depart",
                        "in": "query",
                        "required": false,
                        "description": "Local ISO time of the walk, e.g. 2026-07-15T12:00 (default now)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "mode",
                        "in": "query",
                        "required": false,
                        "description": "auto | heat | cold (default auto)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "alternatives",
                        "in": "query",
                        "required": false,
                        "description": "Extra routes beyond the best and the direct one, 0-4 (default 2)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "segments",
                        "in": "query",
                        "required": false,
                        "description": "0 to omit per-segment GeoJSON (summary only)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "context": {
                                                    "type": "object",
                                                    "properties": {
                                                        "shade_routing": {
                                                            "description": "active | suspended (cloud >= 70 %, ranked by length only) | night (sun below 3 deg) | unavailable (outside the covered cities or no data for that date)."
                                                        },
                                                        "mode_resolved": {
                                                            "description": "heat (prefer shade) | cold (prefer sun) | neutral, resolved from mode=auto by temperature and UV."
                                                        },
                                                        "sun": {
                                                            "description": "Sun azimuth and elevation in degrees at the requested time."
                                                        },
                                                        "weather": {
                                                            "description": "temp_c, uv_index, cloud_pct for the hour of the walk."
                                                        }
                                                    }
                                                },
                                                "routes": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "description": "cool (most shade for its length) / sunny (cold mode) / direct / alt1.."
                                                            },
                                                            "summary": {
                                                                "description": "km, min, shade_pct, sun_exposure_pct, peak_pavement_c (estimate), shade_confidence 0..1."
                                                            },
                                                            "readiness": {
                                                                "description": "go | caution | wait."
                                                            },
                                                            "segments": {
                                                                "description": "GeoJSON FeatureCollection of ~50 m LineStrings with shade, sun_exposure, pavement_c. Not on the Explorer plan (summary only)."
                                                            }
                                                        }
                                                    }
                                                },
                                                "best_window": {
                                                    "description": "Best 15-min departure in the next 6 h for the first route: time_local, shade_pct, peak_pavement_c, readiness."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/shade-grid": {
            "get": {
                "tags": [
                    "shade-grid"
                ],
                "summary": "Shade Grid API",
                "description": "Shade per H3 resolution-11 hex (about 25 m) for a small bounding box at a given time: share of open ground in building shade and in tree shade, and the combined value. Max 4 km2 / 3000 hexes per call. Pilot coverage: Poznan (PL).\n\nExample: `/api/v2/data/shade-grid?bbox=16.918,52.405,16.928,52.410&t=2026-07-15T12:00`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/shade-grid",
                "operationId": "shadeGridV2",
                "parameters": [
                    {
                        "name": "bbox",
                        "in": "query",
                        "required": true,
                        "description": "west,south,east,north (required, max 4 km2)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "t",
                        "in": "query",
                        "required": false,
                        "description": "Local ISO time (default now)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "mode",
                        "in": "query",
                        "required": false,
                        "description": "auto | heat | cold",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "context": {
                                                    "type": "object",
                                                    "properties": {
                                                        "shade_routing": {
                                                            "description": "active | suspended (cloud >= 70 %, ranked by length only) | night (sun below 3 deg) | unavailable (outside the covered cities or no data for that date)."
                                                        },
                                                        "mode_resolved": {
                                                            "description": "heat (prefer shade) | cold (prefer sun) | neutral, resolved from mode=auto by temperature and UV."
                                                        },
                                                        "sun": {
                                                            "description": "Sun azimuth and elevation in degrees at the requested time."
                                                        },
                                                        "weather": {
                                                            "description": "temp_c, uv_index, cloud_pct for the hour of the walk."
                                                        }
                                                    }
                                                },
                                                "summary": {
                                                    "description": "hexes, mean_shade, shaded_share (hexes with shade >= 0.5), mean_sun_exposure."
                                                },
                                                "grid": {
                                                    "description": "GeoJSON FeatureCollection of hex polygons: h3, shade, building, tree, sun_exposure (0..1), open_ground, height_confidence. Not on the Explorer plan (summary only)."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/shade-windows": {
            "get": {
                "tags": [
                    "shade-windows"
                ],
                "summary": "Shade Walk Windows API",
                "description": "Shade share and pavement temperature estimate of one walk for every 15-minute departure in the next hours, and the best window. Pass the walk as an encoded polyline (precision 6) or as from + to / loop_km. Pilot coverage: Poznan (PL).\n\nExample: `/api/v2/data/shade-windows?from=52.3995,16.9019&loop_km=3`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/shade-windows",
                "operationId": "shadeWindowsV2",
                "parameters": [
                    {
                        "name": "polyline6",
                        "in": "query",
                        "required": false,
                        "description": "Walk geometry, encoded polyline precision 6",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "Start lat,lon (when no polyline6)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "required": false,
                        "description": "Destination lat,lon",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "loop_km",
                        "in": "query",
                        "required": false,
                        "description": "Round-walk length in km",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "depart",
                        "in": "query",
                        "required": false,
                        "description": "First departure, local ISO time (default now)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "hours",
                        "in": "query",
                        "required": false,
                        "description": "Hours to scan, 1-12 (default 6)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "mode",
                        "in": "query",
                        "required": false,
                        "description": "auto | heat | cold",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "shade_routing": {
                                                    "description": "active | unavailable."
                                                },
                                                "windows": {
                                                    "type": "array",
                                                    "description": "time_local, shade_routing, sun_elevation, shade_pct, sun_exposure_pct, temp_c, peak_pavement_c, readiness."
                                                },
                                                "best_window": {
                                                    "description": "The best entry of windows[]."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/dog-cool-spots": {
            "get": {
                "tags": [
                    "dog-cool-spots"
                ],
                "summary": "Cool Spots for Dogs API",
                "description": "Places to cool a dog down near a point: safe water access on lake and river shores, bathing places, drinking water, forests, all-day shaded patches of grass or footway, dog parks and dog-friendly indoor places. Each spot comes with walking distance, shade now and over the next 2 hours, nearby water, surface and a score. Shade coverage: Poznan (PL); elsewhere in the covered OSM region spots come without shade (shade_unavailable).\n\nExample: `/api/v2/data/dog-cool-spots?lat=52.4083&lon=16.9335&t=2026-07-15T13:00`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/dog-cool-spots",
                "operationId": "dogCoolSpotsV2",
                "parameters": [
                    {
                        "name": "lat",
                        "in": "query",
                        "required": true,
                        "description": "Latitude (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lon",
                        "in": "query",
                        "required": true,
                        "description": "Longitude (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "radius_m",
                        "in": "query",
                        "required": false,
                        "description": "Search radius in metres, 100-5000 (default 1500)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "types",
                        "in": "query",
                        "required": false,
                        "description": "Comma list of water_access, drinking_water, forest, shade_allday, dog_park, indoor (default all)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "t",
                        "in": "query",
                        "required": false,
                        "description": "Local ISO time (default now)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "required": false,
                        "description": "distance (default) | score",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max spots, 1-60 (default 25)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "coverage": {
                                                    "description": "shade active | unavailable, city and OSM region used."
                                                },
                                                "context": {
                                                    "description": "Local time, sun position, weather (temp_c, cloud_pct, heat level)."
                                                },
                                                "spots": {
                                                    "type": "array",
                                                    "description": "type, name, lat, lon, distance_m, walk_m, walk_min, shade_now (0..1), has_water, water_m, surface (grass, forest, paved, unpaved, sand, indoor), details.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "shade_next": {
                                                                "description": "Shade every 30 min for the next 2 hours. Not on the Explorer plan."
                                                            },
                                                            "score": {
                                                                "description": "0-100 cool-spot score. Not on the Explorer plan."
                                                            },
                                                            "reasons": {
                                                                "description": "Reason keys (shaded_now, water_nearby, all_day_shade, ...). Not on the Explorer plan."
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/dog-cool-spots-route": {
            "get": {
                "tags": [
                    "dog-cool-spots-route"
                ],
                "summary": "Cool Spots for Dogs Along a Walk API",
                "description": "Cool spots for dogs along a walking route: every spot within the corridor with its position along the walk and the shade at the time you reach it, plus the best cool stop around the middle of the walk. Pass the route as an encoded polyline (precision 6). Shade coverage: Poznan (PL).\n\nExample: `/api/v2/data/dog-cool-spots-route?polyline6=...&depart=2026-07-15T13:00`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/dog-cool-spots-route",
                "operationId": "dogCoolSpotsRouteV2",
                "parameters": [
                    {
                        "name": "polyline6",
                        "in": "query",
                        "required": true,
                        "description": "Walk geometry, encoded polyline precision 6 (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "depart",
                        "in": "query",
                        "required": false,
                        "description": "Departure, local ISO time (default now)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "speed_kmh",
                        "in": "query",
                        "required": false,
                        "description": "Walking speed 2-8 km/h (default 4.5)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "corridor_m",
                        "in": "query",
                        "required": false,
                        "description": "Corridor half-width in metres, 20-300 (default 150)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "types",
                        "in": "query",
                        "required": false,
                        "description": "Comma list of spot types (default all)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "route_m": {
                                                    "description": "Walk length in metres."
                                                },
                                                "best_stop": {
                                                    "description": "Best spot in the middle 40 % of the walk (up to 300 m off the line): distance_from_route_m, at_m, eta_local, shade_now, has_water."
                                                },
                                                "corridor_spots": {
                                                    "type": "array",
                                                    "description": "Up to 30 spots within corridor_m: distance_from_route_m, at_m, eta_local, type, name, shade_now, has_water, surface."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/route-cool-spots": {
            "get": {
                "tags": [
                    "route-cool-spots"
                ],
                "summary": "Cool Spots Along a Route API",
                "description": "Truck-accessible stops within 2 km of a route you already have: truck parkings shaded by trees (canopy share within 100 m), rest areas with restaurant, motel or showers, and drinking water. Each spot comes with its position along the route, ETA, detour estimate, weather and sun at the ETA and a heat-aware score. Europe-wide.\n\nExample: `/api/v2/data/route-cool-spots?polyline6=<encoded>&depart=2026-07-15T13:00:00%2B02:00&types=parking_shade,rest_ac`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/route-cool-spots",
                "operationId": "routeCoolSpotsV2",
                "parameters": [
                    {
                        "name": "polyline6",
                        "in": "query",
                        "required": true,
                        "description": "Route geometry, encoded polyline precision 6 (required). Simplify to ~100 m first so the URL stays under 8 KB (about 2.5 KB for 800 km)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "depart",
                        "in": "query",
                        "required": false,
                        "description": "Departure, ISO 8601 with offset or unix (default now)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "avg_speed_kmh",
                        "in": "query",
                        "required": false,
                        "description": "Average speed for the ETA (default 70)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "types",
                        "in": "query",
                        "required": false,
                        "description": "Comma list of parking_shade, rest_ac, drinking_water (default all)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "from_km",
                        "in": "query",
                        "required": false,
                        "description": "Only spots at or beyond this distance along the route (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "corridor_km",
                        "in": "query",
                        "required": false,
                        "description": "Max distance off the route, 0.2-2 (default 2)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max spots, 1-200 (default 60)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "summary": {
                                                    "description": "route_km, from_km, corridor_km, types, spots_total, returned, by_type, depart, arrive, data_built; best (not on Explorer)."
                                                },
                                                "spots": {
                                                    "type": "array",
                                                    "description": "type, types, kind, name, country, lat, lon, at_km, eta, off_route_m, detour_km, canopy_pct, amenities, water_m, capacity; weather (temp_c, cloud_pct, rain, sun_elevation at ETA), score 0-100 and reasons — not on the Explorer plan."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/shops": {
            "get": {
                "tags": [
                    "shops"
                ],
                "summary": "Nearby Shops API",
                "description": "The closest supermarkets and grocery shops to a point or city — sorted by distance with distance_km, name, coordinates and country.\n\nExample: `/api/v2/data/shops?city=Przemysl&country=PL&radius=20`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/shops",
                "operationId": "shopsV2",
                "parameters": [
                    {
                        "name": "lat",
                        "in": "query",
                        "required": true,
                        "description": "Latitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lon",
                        "in": "query",
                        "required": true,
                        "description": "Longitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "city",
                        "in": "query",
                        "required": false,
                        "description": "City name — alternative to lat/lon, resolved to coordinates",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code, disambiguates city",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "radius",
                        "in": "query",
                        "required": false,
                        "description": "Radius km (default 25, max 150)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max results (default 50, max 500)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for country names (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "pois": {
                                                            "type": "array",
                                                            "description": "Shops near the point: id, type, name, address, lat, lng, country, country_code, country_name, distance_km, amenities, details. An empty list means nothing mapped inside the radius, not an error.",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "amenities": {
                                                                        "description": "Array of amenity tokens: only facilities we hold as PRESENT (a facility a feed lists as absent is never included). The key is absent when we hold none. Same vocabulary as truck-parkings, e.g. toilets, shower, washing, restaurant, food, shop, fuel, diesel, adblue, lpg, ev_charging, wifi, atm, security, cctv, fenced, lighting, parking, truck_access, open_24h, accessible."
                                                                    },
                                                                    "details": {
                                                                        "description": "Object with only the facts we hold: capacity (int), fee (bool), opening_hours (OSM-style string, \"24/7\" when always open), surface, lit (bool), phone, brand, services (English labels, e.g. \"Truck wash\"), parking_booking (\"none\" | \"possible\" | \"required\"). Omitted when we hold none."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "total_found": {
                                                            "description": "Matches inside the radius, with limit and search_location."
                                                        }
                                                    }
                                                },
                                                "resolved_location": {
                                                    "description": "Envelope level: the coordinates a city query resolved to."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/showers": {
            "get": {
                "tags": [
                    "showers"
                ],
                "summary": "Free Showers API",
                "description": "The closest free showers for drivers to a point or city — sorted by distance with distance_km, name, coordinates and country.\n\nExample: `/api/v2/data/showers?lat=50.7&lon=23.9&radius=50`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/showers",
                "operationId": "showersV2",
                "parameters": [
                    {
                        "name": "lat",
                        "in": "query",
                        "required": true,
                        "description": "Latitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lon",
                        "in": "query",
                        "required": true,
                        "description": "Longitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "city",
                        "in": "query",
                        "required": false,
                        "description": "City name — alternative to lat/lon, resolved to coordinates",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code, disambiguates city",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "radius",
                        "in": "query",
                        "required": false,
                        "description": "Radius km (default 25, max 150)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max results (default 50, max 500)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for country names (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "pois": {
                                                            "type": "array",
                                                            "description": "Free shower points near the coordinates: id, type, name, address, lat, lng, country, country_code, country_name, distance_km, amenities, details.",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "amenities": {
                                                                        "description": "Array of amenity tokens: only facilities we hold as PRESENT (a facility a feed lists as absent is never included). The key is absent when we hold none. Same vocabulary as truck-parkings, e.g. toilets, shower, washing, restaurant, food, shop, fuel, diesel, adblue, lpg, ev_charging, wifi, atm, security, cctv, fenced, lighting, parking, truck_access, open_24h, accessible."
                                                                    },
                                                                    "details": {
                                                                        "description": "Object with only the facts we hold: capacity (int), fee (bool), opening_hours (OSM-style string, \"24/7\" when always open), surface, lit (bool), phone, brand, services (English labels, e.g. \"Truck wash\"), parking_booking (\"none\" | \"possible\" | \"required\"). Omitted when we hold none."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "total_found": {
                                                            "description": "Matches inside the radius, with limit and search_location."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/restaurants": {
            "get": {
                "tags": [
                    "restaurants"
                ],
                "summary": "Driver Restaurants API",
                "description": "The closest driver-friendly restaurants to a point or city — sorted by distance with distance_km, name, coordinates and country.\n\nExample: `/api/v2/data/restaurants?city=Lublin&country=PL&radius=30`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/restaurants",
                "operationId": "restaurantsV2",
                "parameters": [
                    {
                        "name": "lat",
                        "in": "query",
                        "required": true,
                        "description": "Latitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lon",
                        "in": "query",
                        "required": true,
                        "description": "Longitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "city",
                        "in": "query",
                        "required": false,
                        "description": "City name — alternative to lat/lon, resolved to coordinates",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code, disambiguates city",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "radius",
                        "in": "query",
                        "required": false,
                        "description": "Radius km (default 25, max 150)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max results (default 50, max 500)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for country names (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "pois": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "name": {
                                                                        "description": "Restaurant, with brand, address and type."
                                                                    },
                                                                    "amenities": {
                                                                        "description": "Array of amenity tokens: only facilities we hold as PRESENT (a facility a feed lists as absent is never included). The key is absent when we hold none. Same vocabulary as truck-parkings, e.g. toilets, shower, washing, restaurant, food, shop, fuel, diesel, adblue, lpg, ev_charging, wifi, atm, security, cctv, fenced, lighting, parking, truck_access, open_24h, accessible. Mapped facilities, where held, stay in facilities."
                                                                    },
                                                                    "details": {
                                                                        "description": "Object with only the facts we hold: capacity (int), fee (bool), opening_hours (OSM-style string, \"24/7\" when always open), surface, lit (bool), phone, brand, services (English labels, e.g. \"Truck wash\"), parking_booking (\"none\" | \"possible\" | \"required\"). Omitted when we hold none."
                                                                    },
                                                                    "distance_km": {
                                                                        "description": "Distance from the search point, with lat, lng, country, country_code, country_name."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "total_found": {
                                                            "description": "Matches inside the radius, with limit and search_location."
                                                        }
                                                    }
                                                },
                                                "resolved_location": {
                                                    "description": "Envelope level: the coordinates a city query resolved to."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/industrial": {
            "get": {
                "tags": [
                    "industrial"
                ],
                "summary": "Industrial Zones API",
                "description": "The closest industrial and logistics zones to a point or city (3k+ across Europe) — sorted by distance with distance_km, name, coordinates and country.\n\nExample: `/api/v2/data/industrial?city=Duisburg&country=DE&radius=40`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/industrial",
                "operationId": "industrialV2",
                "parameters": [
                    {
                        "name": "lat",
                        "in": "query",
                        "required": true,
                        "description": "Latitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lon",
                        "in": "query",
                        "required": true,
                        "description": "Longitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "city",
                        "in": "query",
                        "required": false,
                        "description": "City name — alternative to lat/lon, resolved to coordinates",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code, disambiguates city",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "radius",
                        "in": "query",
                        "required": false,
                        "description": "Radius km (default 25, max 150)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max results (default 50, max 500)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for country names (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "pois": {
                                                            "type": "array",
                                                            "description": "Industrial and logistics zones near the point: id, type, name, address, lat, lng, country, country_code, country_name, distance_km, amenities, details.",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "amenities": {
                                                                        "description": "Array of amenity tokens: only facilities we hold as PRESENT (a facility a feed lists as absent is never included). The key is absent when we hold none. Same vocabulary as truck-parkings, e.g. toilets, shower, washing, restaurant, food, shop, fuel, diesel, adblue, lpg, ev_charging, wifi, atm, security, cctv, fenced, lighting, parking, truck_access, open_24h, accessible."
                                                                    },
                                                                    "details": {
                                                                        "description": "Object with only the facts we hold: capacity (int), fee (bool), opening_hours (OSM-style string, \"24/7\" when always open), surface, lit (bool), phone, brand, services (English labels, e.g. \"Truck wash\"), parking_booking (\"none\" | \"possible\" | \"required\"). Omitted when we hold none."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "total_found": {
                                                            "description": "Matches inside the radius, with limit and search_location."
                                                        }
                                                    }
                                                },
                                                "resolved_location": {
                                                    "description": "Envelope level: the coordinates a city query resolved to."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/fuel-stations": {
            "get": {
                "tags": [
                    "fuel-stations"
                ],
                "summary": "Nearby Fuel Stations API",
                "description": "The closest petrol stations to a point or city with current prices per fuel type, sorted by distance. Station-level coverage spans 39 European countries and is MEASURED, not fixed: every empty answer returns the current country list with per-country station counts in its coverage object, scoped to the grade you asked for, so read that rather than a list in this description — same data as the nakordoni.eu fuel pages; use the fuel API country mode for national averages elsewhere. Prices are returned in each station's own currency (PLN for Polish stations, EUR elsewhere) — read the per-station currency field, never compare the raw numbers. When no stations match, the response includes a coverage object instead of a silent empty list: station_countries and station_counts measured from the live index (scoped to `grade` when you named a fuel_type), sparse_coverage for the countries holding 25 priced stations or fewer, measured_at, and a fuel_type_note that separates the two reasons an answer can be empty — a grade name we could not place, versus a grade we recognise but do not price in that country.\n\nExample: `/api/v2/data/fuel-stations?city=Munich&country=DE&radius_km=20&fuel_type=diesel`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/fuel-stations",
                "operationId": "fuelStationsV2",
                "parameters": [
                    {
                        "name": "lat",
                        "in": "query",
                        "required": true,
                        "description": "Latitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lon",
                        "in": "query",
                        "required": true,
                        "description": "Longitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "city",
                        "in": "query",
                        "required": false,
                        "description": "City name — alternative to lat/lon, resolved to coordinates",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code, disambiguates city",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "radius_km",
                        "in": "query",
                        "required": false,
                        "description": "Search radius km (default 25, max 25; alias: radius)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "fuel_type",
                        "in": "query",
                        "required": false,
                        "description": "Optional filter: diesel | e5 | e10 | petrol95_premium | superplus | super100 | premdiesel | truckdiesel | hvo | lpg | cng | biocng | adblue | e85 | lng | biolng (prices per litre; per kg for cng, biocng, lng and biolng; availability varies by station/region; Polish stations report Pb95 as e5, Pb98 as superplus and ON as diesel). Local pump names are accepted as well — ON, Olej napędowy, Pb95, Nafta, Dizel, Gázolaj, Motorină, Benzină 95, ДП, А-95, Motorin, Gasóleo, Sans plomb 95, Bleifrei … — resolved against `country` (or, for coordinate products, the country the point falls in), because the same wording is not the same grade everywhere: “95” is E10 at a Danish, Finnish, French, British, Belgian or Dutch pump and E5 at a Polish or German one. The response echoes `fuel_type` (canonical), `fuel_type_requested` (as you typed it) and `fuel_type_local`. A name we cannot place is never swapped for a default grade — the answer comes back empty and says so. Full table of names per country: /api/v2/data/fuel-grades.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max stations (default 5, max 20)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "truck_friendly",
                        "in": "query",
                        "required": false,
                        "description": "Optional filter: 1 = only stations flagged as usable by trucks (truck_friendly true). Any other value is ignored.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for labels (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "anchor": {
                                                            "type": "object",
                                                            "properties": {
                                                                "lat": {
                                                                    "description": "The point actually searched (after city geocoding), with lng, ppid and radius_km."
                                                                },
                                                                "fuel_type": {
                                                                    "description": "The canonical grade the list was filtered to; fuel_type_requested is what you sent, fuel_type_local the local pump name and fuel_type_country the country the name was read in."
                                                                }
                                                            }
                                                        },
                                                        "stations": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "name": {
                                                                        "description": "Station, with brand and address. Each physical station appears ONCE: its grades are nested under prices, not spread over repeated rows. `brand` is the chain when we know it and null when we do not — never a placeholder token, so treat null as \"independent or unknown\" and fall back to `name`. Address detail varies by national feed: some report a full street address, others only the town; where we hold only the town and a matched operator site record carries the street address, that street address is given."
                                                                    },
                                                                    "station_ref": {
                                                                        "description": "Stable key for the station (name + position). Key your records on it whenever id is null — id is set only for rows that come from our station directory."
                                                                    },
                                                                    "prices": {
                                                                        "description": "Object keyed by grade (diesel, e5, e10, lpg …): price, currency and currency_symbol, local_name (the pump name used in that country), label, updated_at, confirmed_at, age_hours and stale. Each station carries its own currency, so never compare the raw numbers across countries. Prices are always given in the currency of the station's country (PLN in Poland, CZK in Czechia, NOK in Norway, EUR in euro countries) — a border station that posts its price in a neighbour's currency is converted with the daily ECB rate. A station with no quote at all carries an empty object here. TWO CLOCKS, and they answer different questions — do not derive one from the other: `updated_at` is when this price last MOVED, so a forecourt that has held the same price for ten days keeps a ten-day-old stamp and that is correct, not stale data; `confirmed_at` is when we last CONFIRMED the quote against its feed, and it is the clock `age_hours` and `stale` are measured on (age_hours = now − confirmed_at). Read `confirmed_at`/`stale` for freshness and `updated_at` for price history. Both are floored to the hour, so `now − confirmed_at` can sit up to an hour above `age_hours`, which is measured before the floor; `confirmed_at` is never earlier than `updated_at`, because a price change is itself a confirmation."
                                                                    },
                                                                    "grades": {
                                                                        "description": "The grade keys present in prices, alongside freshest_age_hours and a station-level stale flag (true only when NO quote of that station is current)."
                                                                    },
                                                                    "truck_friendly": {
                                                                        "description": "true when the station is flagged as usable by trucks, false when it is flagged as not usable, null when we hold no truck information for it (a matched operator site record that marks the site as truck-suitable, with truck parking or truck diesel fills a null with true). Filter with truck_friendly=1; combine with fuel_type=lng for truck LNG stations."
                                                                    },
                                                                    "details": {
                                                                        "description": "Object, only on stations we could match to an operator site record (omitted otherwise, never empty): amenities (array of tokens for facilities held as PRESENT, never one listed as absent; same vocabulary as truck-parkings, e.g. toilets, shower, shop, food, restaurant, wifi, car_wash, washing, parking, truck_access, adblue, lpg, ev_charging, atm, accessible, open_24h), opening_hours (\"24/7\" when the site is open round the clock; absent otherwise) and services (English labels, e.g. \"Truck parking\"). The station-level `amenities` object (is_24h, has_shop, has_car_wash ...) is unchanged and stays where it was."
                                                                    },
                                                                    "distance_km": {
                                                                        "description": "Distance from the anchor, with lat and lng of the station itself."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "count": {
                                                            "description": "Stations returned; data.total_found is how many matched inside the radius before limit was applied."
                                                        },
                                                        "notices": {
                                                            "description": "Present whenever we adjusted a parameter you sent: each entry names the param, the requested and the applied value, and the reason."
                                                        },
                                                        "coverage": {
                                                            "description": "Only when nothing matched. grade (the fuel_type your wording resolved to, or null), station_countries and station_counts measured from the live station index and scoped to that grade, sparse_coverage for countries with 25 priced stations or fewer, measured_at, a note explaining all of it, and fuel_type_note when the grade name could not be placed OR when we recognise the grade but price it nowhere in this country."
                                                        },
                                                        "empty_reason": {
                                                            "description": "Only when nothing matched — machine-readable why: no_station_in_radius (try a wider radius_km; see nearest_station_km) | no_price_for_fuel_type (stations in the radius, none quoting this grade) | fuel_type_not_priced_in_country (no feed prices this grade in `country`) | unknown_fuel_type | no_fresh_price_in_radius. The radius is never widened for you."
                                                        },
                                                        "suggestion": {
                                                            "description": "Only when nothing matched — one short sentence in your `lang` that turns empty_reason into advice, e.g. \"No station within 5 km — the nearest is 6.4 km away; try radius_km=10.\" (the advised radius is rounded up to a 5 km step and never above the 25 km maximum), \"We have no hvo prices in DE; try diesel, truckdiesel.\", or the list of valid fuel_type values. Advice for people, not a contract: branch on empty_reason / nearest_station_km, show suggestion to users."
                                                        },
                                                        "nearest_station_km": {
                                                            "description": "Only when nothing matched — distance to the nearest station quoting the requested grade (any grade when none was named), searched up to data.nearest_search_km (50); null = none that close."
                                                        },
                                                        "country": {
                                                            "description": "Only when nothing matched — ISO-2 country of the point (your ?country= wins)."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/internet-points": {
            "get": {
                "tags": [
                    "internet-points"
                ],
                "summary": "Internet Points API",
                "description": "Mobile-operator shops and WiFi points useful to drivers on the road, nearest-first from a point or city with distance_km.\n\nExample: `/api/v2/data/internet-points?lat=52.2&lon=21.0`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/internet-points",
                "operationId": "internetPointsV2",
                "parameters": [
                    {
                        "name": "lat",
                        "in": "query",
                        "required": true,
                        "description": "Latitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lon",
                        "in": "query",
                        "required": true,
                        "description": "Longitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "city",
                        "in": "query",
                        "required": false,
                        "description": "City name — alternative to lat/lon, resolved to coordinates",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code, disambiguates city",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max results (default 20, max 50)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for country names (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "points": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "name": {
                                                                        "description": "Public internet point, with description and id."
                                                                    },
                                                                    "lat": {
                                                                        "description": "Coordinates, with lng, distance_km, country and country_name."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "total_found": {
                                                            "description": "Matches inside the radius; search_location echoes the point searched."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/vignettes": {
            "get": {
                "tags": [
                    "vignettes"
                ],
                "summary": "Vignettes & Road Tolls API",
                "description": "Whether a country requires a vignette for highway travel, current prices per duration and where to read more — per country or for a whole trip.\n\nExample: `/api/v2/data/vignettes?country=AT`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/vignettes",
                "operationId": "vignettesV2",
                "parameters": [
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code (e.g. AT, CH, SI)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language code (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "country": {
                                                            "description": "Country name, with country_code (ISO-2)."
                                                        },
                                                        "required": {
                                                            "description": "false = no vignette is needed to drive there; info and prices then explain what applies instead (tolls, none at all)."
                                                        },
                                                        "info": {
                                                            "description": "What the vignette covers and who needs it, in the requested language."
                                                        },
                                                        "prices": {
                                                            "description": "Current price tiers as published by the operator."
                                                        },
                                                        "note": {
                                                            "description": "Extra caveat when one applies, otherwise null."
                                                        },
                                                        "more_info_url": {
                                                            "description": "Official source page — link it when you display the prices."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/fuel-cheapest": {
            "get": {
                "tags": [
                    "fuel-cheapest"
                ],
                "summary": "Cheapest Fuel Nearby API",
                "description": "The cheapest petrol stations around a point or city, ranked by price for the chosen fuel type (closest wins a tie). Station-level coverage spans 39 European countries and is MEASURED, not fixed: every empty answer returns the current country list with per-country station counts in its coverage object, scoped to the grade you asked for, so read that rather than a list in this description. Ranking is per fuel type within one search area, and prices carry each station's own currency (PLN in Poland, EUR elsewhere). When no stations match, the response includes a coverage object instead of a silent empty list: station_countries and station_counts measured from the live index (scoped to `grade` when you named a fuel_type), sparse_coverage for the countries holding 25 priced stations or fewer, measured_at, and a fuel_type_note that separates the two reasons an answer can be empty — a grade name we could not place, versus a grade we recognise but do not price in that country.\n\nExample: `/api/v2/data/fuel-cheapest?city=Munich&country=DE&radius_km=25`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/fuel-cheapest",
                "operationId": "fuelCheapestV2",
                "parameters": [
                    {
                        "name": "lat",
                        "in": "query",
                        "required": true,
                        "description": "Latitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lon",
                        "in": "query",
                        "required": true,
                        "description": "Longitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "city",
                        "in": "query",
                        "required": false,
                        "description": "City name — alternative to lat/lon, resolved to coordinates",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code, disambiguates city",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "radius_km",
                        "in": "query",
                        "required": false,
                        "description": "Search radius km (default 25, max 25; alias: radius)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "fuel_type",
                        "in": "query",
                        "required": false,
                        "description": "diesel (default) | e5 | e10 | petrol95_premium | superplus | super100 | premdiesel | truckdiesel | hvo | lpg | cng | biocng | adblue | e85 | lng | biolng (prices per litre; per kg for cng, biocng, lng and biolng) — price ranking is per fuel type. Local pump names are accepted as well — ON, Olej napędowy, Pb95, Nafta, Dizel, Gázolaj, Motorină, Benzină 95, ДП, А-95, Motorin, Gasóleo, Sans plomb 95, Bleifrei … — resolved against `country` (or, for coordinate products, the country the point falls in), because the same wording is not the same grade everywhere: “95” is E10 at a Danish, Finnish, French, British, Belgian or Dutch pump and E5 at a Polish or German one. The response echoes `fuel_type` (canonical), `fuel_type_requested` (as you typed it) and `fuel_type_local`. A name we cannot place is never swapped for a default grade — the answer comes back empty and says so. Full table of names per country: /api/v2/data/fuel-grades.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max stations (default 5, max 20)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "truck_friendly",
                        "in": "query",
                        "required": false,
                        "description": "Optional filter: 1 = only stations flagged as usable by trucks (truck_friendly true). Any other value is ignored.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for labels (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "stations": {
                                                            "type": "array",
                                                            "description": "The same station objects as fuel-stations (grades nested under prices, one entry per physical station), ranked cheapest first for the chosen grade — closest wins a tie, and a station without a quote for that grade ranks last. Each carries truck_friendly (true, false or null); truck_friendly=1 keeps only truck-usable stations. Matched stations also carry details (amenities tokens, opening_hours, services), exactly as in fuel-stations."
                                                        },
                                                        "anchor": {
                                                            "description": "The point searched and the resolved grade: lat, lng, radius_km, fuel_type, fuel_type_requested, fuel_type_local, fuel_type_country."
                                                        },
                                                        "count": {
                                                            "description": "Stations returned; data.total_found is how many matched inside the radius before limit was applied."
                                                        },
                                                        "coverage": {
                                                            "description": "Only when nothing matched — grade, station_countries + station_counts measured from the live index (scoped to that grade), sparse_coverage, measured_at, and fuel_type_note for both an unplaceable grade name and a recognised grade we do not price in this country."
                                                        },
                                                        "empty_reason": {
                                                            "description": "Only when nothing matched — machine-readable why: no_station_in_radius (try a wider radius_km; see nearest_station_km) | no_price_for_fuel_type (stations in the radius, none quoting this grade) | fuel_type_not_priced_in_country (no feed prices this grade in `country`) | unknown_fuel_type | no_fresh_price_in_radius. The radius is never widened for you."
                                                        },
                                                        "suggestion": {
                                                            "description": "Only when nothing matched — one short sentence in your `lang` that turns empty_reason into advice, e.g. \"No station within 5 km — the nearest is 6.4 km away; try radius_km=10.\" (the advised radius is rounded up to a 5 km step and never above the 25 km maximum), \"We have no hvo prices in DE; try diesel, truckdiesel.\", or the list of valid fuel_type values. Advice for people, not a contract: branch on empty_reason / nearest_station_km, show suggestion to users."
                                                        },
                                                        "nearest_station_km": {
                                                            "description": "Only when nothing matched — distance to the nearest station quoting the requested grade (any grade when none was named), searched up to data.nearest_search_km (50); null = none that close."
                                                        },
                                                        "country": {
                                                            "description": "Only when nothing matched — ISO-2 country of the point (your ?country= wins)."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/fuel-grades": {
            "get": {
                "tags": [
                    "fuel-grades"
                ],
                "summary": "Fuel Grade Names API",
                "description": "The naming table behind every fuel product: our canonical grade vocabulary of 17 grades (diesel, premdiesel, truckdiesel, hvo, petrol92, e5, e10, petrol95_premium, superplus, super100, e85, lpg, cng, biocng, lng, biolng, adblue; prices are per litre, per kg for cng, biocng, lng and biolng) and what each grade is called at a pump in 41 European countries — ON and Olej napędowy in Poland, Nafta in Czechia, Gázolaj in Hungary, Motorină in Romania and Moldova, ДП in Ukraine, Motorin in Turkey, Gasóleo in Portugal and Spain. Every name listed here is accepted by the fuel_type parameter of the fuel, fuel-local, fuel-stations, fuel-cheapest and fuel-cities products, so you can pass a driver's own wording straight through. Resolution is country-first because the same word is not the same grade everywhere: “95” is E10 at a Danish, Finnish, French, British, Belgian or Dutch pump and E5 at a Polish or German one — send `country` together with a local name. This is a NAMING table and is deliberately wider than our price coverage: it answers what a grade is called in a country whether or not we quote a price there (we hold no station prices for TR or MD at all), and `station_level` on each grade says only which grades station feeds report anywhere. Pass `fuel_type` to probe one name and get back the canonical grade it resolves to, or null when we cannot place it — we never guess a default grade. Each grade also carries priced_countries and priced_station_counts, measured from the live station index rather than written down, so you can tell a name we ACCEPT in a country (the `countries` table) from a grade we actually QUOTE there; with ?country= each grade additionally carries priced_here, and 0 is a real answer meaning the pump word exists locally but no feed prices it.\n\nExample: `/api/v2/data/fuel-grades?country=PL&fuel_type=ON`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/fuel-grades",
                "operationId": "fuelGradesV2",
                "parameters": [
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "Optional ISO-2 filter — return just that country's local names instead of all 41 (PL, DE, UA, TR, MD, …). 404 when the country is not in the table.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "fuel_type",
                        "in": "query",
                        "required": false,
                        "description": "Optional probe: resolve one name in the context of `country` and report the canonical grade under `resolved` (e.g. country=PL&fuel_type=ON → diesel; country=DK&fuel_type=95 → e10; country=PL&fuel_type=95 → e5). null means we could not place it.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "grades": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "code": {
                                                                        "description": "Canonical grade code — the value fuel_type takes in every fuel product."
                                                                    },
                                                                    "label": {
                                                                        "description": "Plain-English description of the grade."
                                                                    },
                                                                    "family": {
                                                                        "description": "diesel | petrol | gas | other."
                                                                    },
                                                                    "station_level": {
                                                                        "description": "true when station feeds report this grade anywhere; false means it only ever appears in national averages."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "countries": {
                                                            "description": "Keyed by ISO-2 country, then by grade code, valued with that country's names for it. The first name in each list is the one to show a driver."
                                                        },
                                                        "count": {
                                                            "description": "How many countries the answer covers (41 unfiltered, 1 with ?country=)."
                                                        },
                                                        "resolved": {
                                                            "description": "Only with ?fuel_type=: requested, country, grade (null when we cannot place the name), label and local_name."
                                                        },
                                                        "note": {
                                                            "description": "How resolution works, in one paragraph — safe to show to your users."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/fuel-local": {
            "get": {
                "tags": [
                    "fuel-local"
                ],
                "summary": "Local Fuel Price API",
                "description": "Best available fuel price for ANY point in Europe, resolved down a three-tier fallback ladder so a coordinate never comes back empty where we have data at all: pump prices from the nearest stations when the point is inside station-level coverage (39 countries today; the exact list with per-country counts comes back in the coverage object of any empty fuel-stations answer, never from a list written down here), else the regional average for the administrative region the point falls in (Ukraine only today — the UA oblast feed, in UAH), else the national average for the country. Every response carries a `resolution` field naming the tier that answered — `station` (data is a list of stations with distance_km, each in its own currency), `region` (one oblast-average object plus `region`, an ISO 3166-2 code such as UA-46, `region_name` and `region_center_dist_km`) or `country` (one national-average object). The region and country tiers return the same price keys: petrol/petrol95plus/petrol92/diesel/lpg + currency + updated date. Branch on `resolution`, never on the shape. Ukraine has no per-station prices anywhere, so a UA point answers at `region` where the oblast is quoted and falls back to `country` otherwise. 404 when the point is outside every covered country (mid-ocean, outside Europe). The region and country tiers also carry a `grades` object mapping each price key to its canonical grade and to the name a driver in that country would use at the pump (UA `diesel` → ДП, PL `petrol` → Pb95). For a plain national average without coordinates use the `fuel` product, for a pure station search `fuel-stations`, for price ranking `fuel-cheapest`.\n\nExample: `/api/v2/data/fuel-local?lat=50.45&lon=30.52&lang=uk`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/fuel-local",
                "operationId": "fuelLocalV2",
                "parameters": [
                    {
                        "name": "lat",
                        "in": "query",
                        "required": true,
                        "description": "Latitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lon",
                        "in": "query",
                        "required": true,
                        "description": "Longitude",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "city",
                        "in": "query",
                        "required": false,
                        "description": "City name — alternative to lat/lon, resolved to coordinates",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code, disambiguates city",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "radius_km",
                        "in": "query",
                        "required": false,
                        "description": "Station-tier search radius km (default 25, max 25; alias: radius). No station inside it means the answer falls through to the country tier — it never widens the search on its own.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "fuel_type",
                        "in": "query",
                        "required": false,
                        "description": "Optional station-tier filter: diesel | e5 | e10 | petrol95_premium | superplus | super100 | premdiesel | truckdiesel | hvo | lpg | cng | biocng | adblue | e85 | lng | biolng (prices per litre; per kg for cng, biocng, lng and biolng). Ignored at country tier, which always returns every grade the country reports. Local pump names are accepted as well — ON, Olej napędowy, Pb95, Nafta, Dizel, Gázolaj, Motorină, Benzină 95, ДП, А-95, Motorin, Gasóleo, Sans plomb 95, Bleifrei … — resolved against `country` (or, for coordinate products, the country the point falls in), because the same wording is not the same grade everywhere: “95” is E10 at a Danish, Finnish, French, British, Belgian or Dutch pump and E5 at a Polish or German one. The response echoes `fuel_type` (canonical), `fuel_type_requested` (as you typed it) and `fuel_type_local`. A name we cannot place is never swapped for a default grade — the answer comes back empty and says so. Full table of names per country: /api/v2/data/fuel-grades.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max stations at station tier (default 5, max 20)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for labels and the country name (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "resolution": {
                                                            "description": "Which tier answered: station | region | country. Branch on this, never on the shape."
                                                        },
                                                        "anchor": {
                                                            "description": "The point the answer was resolved for: lat, lng, ppid, radius_km and the fuel_type fields."
                                                        },
                                                        "country": {
                                                            "description": "ISO-2 country the point fell in; region is its ISO 3166-2 code at the region tier."
                                                        },
                                                        "data": {
                                                            "description": "At station tier a list of stations (see fuel-stations). At region and country tier one averages object: petrol, petrol95plus, petrol92, petrol98, diesel, lpg, lpg_eur, currency, updated, trend_petrol, trend_diesel, country_name.",
                                                            "type": "object",
                                                            "properties": {
                                                                "region_name": {
                                                                    "description": "Region tier only: the region's name, with region_center_dist_km — how far its centre sits from your point."
                                                                }
                                                            }
                                                        },
                                                        "grades": {
                                                            "description": "Region and country tier only: each price key mapped to its canonical grade and the local pump name."
                                                        },
                                                        "labels": {
                                                            "description": "Localised UI strings — for rendering, not data."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/currency": {
            "get": {
                "tags": [
                    "currency"
                ],
                "summary": "Currency Exchange Rates API",
                "description": "EUR-based exchange rates for PLN, CZK, HUF, USD, GBP, CHF, NOK and UAH — sourced from Frankfurter (ECB), cached 6h. No parameters; always returns the full rate table. Powers the nakordoni.eu currency calculator and fuel-cost pages.\n\nExample: `/api/v1/data/currency`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/currency",
                "operationId": "currencyV1",
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "rates": {
                                                            "description": "Rate per currency against data.base (EUR = 1): CHF, CZK, GBP, HUF, NOK, PLN, RON, USD, UAH."
                                                        },
                                                        "base": {
                                                            "description": "The currency every rate is quoted against."
                                                        },
                                                        "date": {
                                                            "description": "Date of the quoted rates, with source (ECB via Frankfurter). Cached 6 h — not intraday."
                                                        },
                                                        "success": {
                                                            "description": "false = the upstream rate table could not be refreshed and nothing is returned."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/exchange-cities": {
            "get": {
                "tags": [
                    "exchange-cities"
                ],
                "summary": "Exchange Office Cities API",
                "description": "Polish cities where we list currency exchange offices (kantors), with how many offices each has and how many currently publish rates. Use the city id with the other exchange products.\n\nExample: `/api/v2/data/exchange-cities?lang=en`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/exchange-cities",
                "operationId": "exchangeCitiesV2",
                "parameters": [
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for city names (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "cities": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "id": {
                                                                        "description": "City id — the value the city parameter of the other exchange products takes."
                                                                    },
                                                                    "name": {
                                                                        "description": "City name in the requested language, with country (always PL), lat and lon."
                                                                    },
                                                                    "type": {
                                                                        "description": "border = a border town, hub = a large city."
                                                                    },
                                                                    "offices": {
                                                                        "description": "Listed exchange offices in the city."
                                                                    },
                                                                    "offices_with_current_rates": {
                                                                        "description": "Offices whose rates were updated in the last 72 hours."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "quote_currency": {
                                                            "description": "Currency every rate is quoted in (PLN)."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/exchange-offices": {
            "get": {
                "tags": [
                    "exchange-offices"
                ],
                "summary": "Exchange Offices API",
                "description": "Directory of currency exchange offices (kantors) in Poland: name, address, coordinates, opening hours, phone, website and whether the office also quotes wholesale rates. Filter by city, by a currency the office quotes, or to offices open right now (Polish local time).\n\nExample: `/api/v2/data/exchange-offices?city=krakow&currency=EUR&open_now=1`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/exchange-offices",
                "operationId": "exchangeOfficesV2",
                "parameters": [
                    {
                        "name": "city",
                        "in": "query",
                        "required": false,
                        "description": "City id from exchange-cities, e.g. warszawa (optional; omit for every city)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "currency",
                        "in": "query",
                        "required": false,
                        "description": "Only offices that quote this currency, ISO 4217 code such as EUR (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "open_now",
                        "in": "query",
                        "required": false,
                        "description": "1 = only offices open right now, by their published hours in Polish local time (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max offices returned, 1-300 (default 100)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for city names and page links (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "offices": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "id": {
                                                                        "description": "Office id — the value exchange-office and exchange-history take."
                                                                    },
                                                                    "name": {
                                                                        "description": "Office name, with address, postal_code, city and city_name."
                                                                    },
                                                                    "lat": {
                                                                        "description": "Coordinates (lat, lon); null when unknown."
                                                                    },
                                                                    "hours": {
                                                                        "type": "array",
                                                                        "description": "Opening hours, one row per opening: day (mo..su), open, close (HH:MM, Polish local time). A day with no row is closed."
                                                                    },
                                                                    "open_now": {
                                                                        "description": "Whether the office is open now by its published hours; null when no hours are known."
                                                                    },
                                                                    "phones": {
                                                                        "type": "array",
                                                                        "description": "Phone numbers as published, with website."
                                                                    },
                                                                    "has_wholesale": {
                                                                        "description": "true = the office also quotes wholesale rates, which apply from a minimum amount (see exchange-office)."
                                                                    },
                                                                    "has_current_rates": {
                                                                        "description": "true = at least one rate was updated in the last 72 hours."
                                                                    },
                                                                    "currencies": {
                                                                        "type": "array",
                                                                        "description": "Currencies the office quotes at retail."
                                                                    },
                                                                    "url": {
                                                                        "description": "The office page on nakordoni.eu — link it where you show the data."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "count": {
                                                            "description": "Offices returned; total is the number matching the filters and truncated is true when limit cut the list."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/exchange-office": {
            "get": {
                "tags": [
                    "exchange-office"
                ],
                "summary": "Exchange Office Rates API",
                "description": "One exchange office with its current buy and sell rates against PLN. Retail and wholesale rates are returned separately: wholesale applies only from min_amount_pln and must not be compared with retail. Every rate carries its own time, so an old quote is never presented as today's.\n\nExample: `/api/v2/data/exchange-office?id=3`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/exchange-office",
                "operationId": "exchangeOfficeV2",
                "parameters": [
                    {
                        "name": "id",
                        "in": "query",
                        "required": false,
                        "description": "Office id from exchange-offices (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for city name and page link (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "office": {
                                                            "description": "Every field of an exchange-offices row, plus rates.",
                                                            "type": "object",
                                                            "properties": {
                                                                "lat": {
                                                                    "description": "Office latitude, WGS84 decimal degrees; null when unknown."
                                                                },
                                                                "lon": {
                                                                    "description": "Office longitude, WGS84 decimal degrees; null when unknown."
                                                                },
                                                                "rates": {
                                                                    "type": "object",
                                                                    "properties": {
                                                                        "retail": {
                                                                            "type": "array",
                                                                            "items": {
                                                                                "type": "object",
                                                                                "properties": {
                                                                                    "currency": {
                                                                                        "description": "ISO 4217 code; buy and sell are PLN per 1 unit (buy = what the office pays you, sell = what you pay the office)."
                                                                                    },
                                                                                    "rate_time": {
                                                                                        "description": "When this rate was valid, ISO 8601 with the Polish UTC offset (e.g. 2026-10-14T15:47:00+02:00)."
                                                                                    },
                                                                                    "is_current": {
                                                                                        "description": "false = the rate is older than 72 hours; show it only together with rate_time."
                                                                                    }
                                                                                }
                                                                            }
                                                                        },
                                                                        "wholesale": {
                                                                            "type": "array",
                                                                            "items": {
                                                                                "type": "object",
                                                                                "properties": {
                                                                                    "min_amount_pln": {
                                                                                        "description": "Smallest transaction (in PLN) the wholesale rate applies to; null when the office does not state one. Other fields as in retail."
                                                                                    }
                                                                                }
                                                                            }
                                                                        },
                                                                        "quote_currency": {
                                                                            "description": "Currency every rate is quoted in (PLN)."
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/exchange-best-rates": {
            "get": {
                "tags": [
                    "exchange-best-rates"
                ],
                "summary": "Best Exchange Rates API",
                "description": "Where to buy or sell one currency for PLN in one city right now: the offices with the best RETAIL rates, ranked, next to the official NBP reference rate. Only rates no older than 6 hours compete, and quotes far off the city median are left out as likely errors. Wholesale rates never enter the ranking.\n\nExample: `/api/v2/data/exchange-best-rates?city=warszawa&currency=EUR&limit=5`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/exchange-best-rates",
                "operationId": "exchangeBestRatesV2",
                "parameters": [
                    {
                        "name": "city",
                        "in": "query",
                        "required": false,
                        "description": "City id from exchange-cities, e.g. warszawa (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "currency",
                        "in": "query",
                        "required": false,
                        "description": "Currency to compare against PLN, ISO 4217 code such as EUR (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Offices per list, 1-20 (default 5)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for city name and page links (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "best_to_buy_currency": {
                                                            "type": "array",
                                                            "description": "Offices with the LOWEST sell rate — where you buy the currency cheapest. rate is that sell rate in PLN per 1 unit.",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "vs_nbp_pct": {
                                                                        "description": "Difference between rate and the NBP mid rate, in percent."
                                                                    },
                                                                    "rate_time": {
                                                                        "description": "When the rate was valid, ISO 8601 with the Polish UTC offset; also office_id, name, address, lat, lon, buy, sell, spread_pct and url."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "best_to_sell_currency": {
                                                            "type": "array",
                                                            "description": "Offices with the HIGHEST buy rate — where you get the most PLN for the currency."
                                                        },
                                                        "candidates": {
                                                            "description": "Offices with a recent enough rate; fewer than 2 means both lists are empty — there is nothing to compare."
                                                        },
                                                        "nbp": {
                                                            "description": "National Bank of Poland reference rate: mid (table A), bid/ask (table C) where published, table and effective_date; null for a currency NBP does not publish."
                                                        },
                                                        "max_rate_age_minutes": {
                                                            "description": "Oldest rate allowed into the ranking (360)."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/exchange-history": {
            "get": {
                "tags": [
                    "exchange-history"
                ],
                "summary": "Exchange Rate History API",
                "description": "Retail rate history for one currency against PLN, either for one office or for a whole city (average and best rate across its offices), hourly or as daily averages, with the NBP reference rate for the same days. History is kept for the last 92 days; office series start on 2026-10-14, city series on 2026-08-01.\n\nExample: `/api/v2/data/exchange-history?city=krakow&currency=EUR&days=30&interval=day`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/exchange-history",
                "operationId": "exchangeHistoryV2",
                "parameters": [
                    {
                        "name": "id",
                        "in": "query",
                        "required": false,
                        "description": "Office id from exchange-offices — office history (give id or city)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "city",
                        "in": "query",
                        "required": false,
                        "description": "City id from exchange-cities — city history (give id or city)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "currency",
                        "in": "query",
                        "required": false,
                        "description": "ISO 4217 code such as EUR (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "days",
                        "in": "query",
                        "required": false,
                        "description": "Days back from now, 1-92 (default 7)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "interval",
                        "in": "query",
                        "required": false,
                        "description": "hour (default) or day — day averages each Polish calendar day",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language code (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "points": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "time": {
                                                                        "description": "Start of the hour (or day) the point covers, ISO 8601 with the Polish UTC offset."
                                                                    },
                                                                    "buy": {
                                                                        "description": "Office history: the office's buy and sell rate in PLN per 1 unit."
                                                                    },
                                                                    "avg_buy": {
                                                                        "description": "City history: average buy and sell across offices (avg_buy, avg_sell), best buy and sell (best_buy, best_sell) and how many offices were counted (offices)."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "nbp": {
                                                            "type": "array",
                                                            "description": "NBP mid rate per business day in the window (date, mid)."
                                                        },
                                                        "history_since": {
                                                            "description": "Oldest point held for this series; retention_days is how far back the API serves."
                                                        },
                                                        "scope": {
                                                            "description": "office or city, with id and city."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/truck-bans": {
            "get": {
                "tags": [
                    "truck-bans"
                ],
                "summary": "Truck Driving Bans API",
                "description": "European truck driving restrictions for one or more countries, including seasonal and holiday bans. Each ban carries its restriction type (General / Local / Sunday / Holiday / Seasonal), the exact scope or roads affected and the minimum weight, and each country a live status computed in its own timezone (active_window / next_window), plus a covered_countries list. ?country= accepts a comma-separated list of up to 3 codes; it is optional in v1 and required in v2. The response also reports `returned`, `total_available` and `truncated` so a capped answer is never mistaken for a complete one, plus `window` {from,to,days} naming the exact date range it covers. v1 always covers the next 7 days; v2 additionally accepts ?date= / ?date_from= + ?date_to= for any window up to 92 days, beginning at most 7 days in the past (this is a forward-looking calendar — older history is refused with 400 date_too_old) and running forward to 2028-12-31.\n\nExample: `/api/v1/data/truck-bans?country=PL`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/truck-bans",
                "operationId": "truckBansV1",
                "parameters": [
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code, or a comma-separated list of up to 3, e.g. RO or DE,RO. More than 3 is refused with 400 too_many_countries — split the request. Optional in v1, where an unscoped call returns a capped slice — check truncated. Required in v2.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language code for country names and summary (default en)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "include_ua_heat",
                        "in": "query",
                        "required": false,
                        "description": "1 = also return Ukraine's computed summer heat ban (trucks >24 t banned 10:00-22:00 when forecast temp >+28 °C), per oblast. Included automatically when Ukraine is in scope (country=UA) — this flag only adds it to a request scoped to some other country",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "current_bans": {
                                                            "type": "array",
                                                            "description": "Bans in force right now, same fields as upcoming_bans. is_ban_active is the quick boolean for 'may a truck drive at this moment'."
                                                        },
                                                        "upcoming_bans": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "date": {
                                                                        "description": "Ban day, with time_from and time_until in local time."
                                                                    },
                                                                    "country_code": {
                                                                        "description": "Country the ban applies in, with country_name."
                                                                    },
                                                                    "restriction_type": {
                                                                        "description": "What kind of ban it is (weekend, holiday, heat…), with restriction_details in the requested language."
                                                                    },
                                                                    "min_weight_tons": {
                                                                        "description": "Weight from which the ban bites — a lighter truck is unaffected."
                                                                    },
                                                                    "details_url": {
                                                                        "description": "Official source page for that ban."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "bans_by_country": {
                                                            "description": "The same bans grouped by ISO-2 country, for rendering per country."
                                                        },
                                                        "window": {
                                                            "description": "The period covered: from, to, days and whether you requested it."
                                                        },
                                                        "total_bans": {
                                                            "description": "Bans in the window, with returned, total_available and truncated — true means narrow the window or page."
                                                        },
                                                        "covered_countries": {
                                                            "description": "Countries we track bans for; countries_not_covered names the ones you asked about that we do not."
                                                        },
                                                        "empty_reason": {
                                                            "description": "v2 only, present only on an empty answer for countries we cover: no_bans_in_window = we track these countries and none has a ban in your window (a correct \"no ban\", not missing data)."
                                                        },
                                                        "summary": {
                                                            "description": "One-sentence plain-language summary, ready to show a driver. as_of is when it was assembled."
                                                        },
                                                        "ua_heat_ban": {
                                                            "description": "Ukraine's computed heat ban (see include_ua_heat): per-oblast status plus forecast_horizon, the last date the underlying weather forecast reaches. Heat rows are never returned past that date, so compare it with data.window before reading an empty answer as 'no ban'."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/trading-sundays": {
            "get": {
                "tags": [
                    "trading-sundays"
                ],
                "summary": "Trading Sundays API",
                "description": "Sunday retail-opening regulations and upcoming trading Sundays per regulated EU country.\n\nExample: `/api/v1/data/trading-sundays?country=PL`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/trading-sundays",
                "operationId": "tradingSundaysV1",
                "parameters": [
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO country code (optional)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "countries": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "country": {
                                                                        "description": "ISO-2 country, with regulated — whether Sunday trading is restricted there at all."
                                                                    },
                                                                    "regulation_type": {
                                                                        "description": "How it is regulated (nationwide ban with exceptions, regional rules, none)."
                                                                    },
                                                                    "count": {
                                                                        "description": "Trading Sundays in data.year for that country."
                                                                    },
                                                                    "next": {
                                                                        "description": "The next trading Sunday from today, null when the year holds no more."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "mode": {
                                                            "description": "What the answer covers — one country or the whole set; regulated_only echoes the filter."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/holiday-calendar": {
            "get": {
                "tags": [
                    "holiday-calendar"
                ],
                "summary": "Holiday Calendar API",
                "description": "Official public holidays per European country — dates, local names and type, each country's full holiday list included. Backed by the same Nager.Date / OpenHolidaysAPI service (7-day cache, locally-computed Kosovo calendar) that powers the nakordoni.eu holiday calendar page and the prediction system's calendar factors. One country -> a flat object; several -> the same shape wrapped in a list. upcoming=1 switches to a flat, date-sorted cross-country feed; compare_to switches to a same-vs-different comparison across countries — useful for checking whether a date is a holiday on both sides of a border crossing or just one.\n\nExample: `/api/v1/data/holiday-calendar?country=PL&compare_to=UA&year=2026&lang=en`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/holiday-calendar",
                "operationId": "holidayCalendarV1",
                "parameters": [
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code, or comma-separated list of up to 15, e.g. PL or PL,DE,UA. Omit for the default core set (UA,PL,SK,HU,RO,MD,DE,CZ,BG,AT). One resolved country returns a flat object; several return a list.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "compare_to",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code, or comma-separated list, to compare against `country`. Switches to compare mode: returns which holiday dates are shared by ALL selected countries (`same`) vs only some of them (`different`, with per-date in/not_in lists)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "year",
                        "in": "query",
                        "required": false,
                        "description": "YYYY (default: current year)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "upcoming",
                        "in": "query",
                        "required": false,
                        "description": "1 = switch to a flat, date-sorted list of upcoming holidays across the selected countries within `days` (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "days",
                        "in": "query",
                        "required": false,
                        "description": "Horizon in days for upcoming mode, 1-180. Omitted or 0 = no limit (everything the underlying service can see: this year + next)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language(s) for the localized `name` field (default en) — same translator as the nakordoni.eu holiday calendar page (25 site languages plus hr, nl, pt). Falls back to the local/English name for anything not yet cached; for hr, nl, pt a foreign holiday falls back to English. Comma-separated for several, up to 10, e.g. lang=en,uk,pl — `name` stays the first requested language; every holiday also gets a `names` object keyed by language code with all of them.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "countries": {
                                                            "description": "The countries compared — the one you asked about and compare_to."
                                                        },
                                                        "same": {
                                                            "type": "array",
                                                            "description": "Days that are a public holiday in BOTH countries: date, weekday, names (one per country)."
                                                        },
                                                        "different": {
                                                            "type": "array",
                                                            "description": "Days that are a holiday in one country only: date, weekday, in (where it applies), not_in, names. These are the border-traffic days that catch drivers out."
                                                        },
                                                        "same_count": {
                                                            "description": "Size of same, with different_count for different."
                                                        },
                                                        "window": {
                                                            "description": "Period covered, inside data.year."
                                                        },
                                                        "mode": {
                                                            "description": "Single-country listing or two-country comparison."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/holiday-calendar/holidays": {
            "get": {
                "tags": [
                    "holiday-calendar-holidays"
                ],
                "summary": "Holiday Calendar — Holidays API",
                "description": "Public, bank, regional, religious and observance holidays for 51 countries (Europe + Gulf) and their regions, 2020-2035, from our own holiday rule engine. Every holiday says whether it is a day off, a bank holiday or inside school holidays, whether a weekend holiday moved to another day, whether its date is still estimated (Islamic calendar), and whether a truck driving ban applies that day and when. Covers Ukraine's martial-law rule (holidays listed, not days off) and decree day transfers (transfers[]). Up to 10 countries per call; a year or any range up to 731 days.\n\nExample: `/api/v2/data/holiday-calendar/holidays?country=DE&year=2026&region=DE-BY&lang=en,de`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/holiday-calendar-holidays",
                "operationId": "holidayCalendarHolidaysV2",
                "parameters": [
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code, or comma-separated list of up to 10 (required), e.g. DE or DE,PL,UA",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "year",
                        "in": "query",
                        "required": false,
                        "description": "YYYY, 2020-2035 (default: current year). Ignored when from/to is sent",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "Range start YYYY-MM-DD (with to; at most 731 days)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "required": false,
                        "description": "Range end YYYY-MM-DD",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "region",
                        "in": "query",
                        "required": false,
                        "description": "ISO 3166-2 region, e.g. DE-BY (or BY with one country): national holidays + that region's only. Omit for every region",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "description": "Comma-separated filter: PUBLIC, BANK, REGIONAL, RELIGIOUS, OBSERVANCE, SCHOOL, OPTIONAL, HALF_DAY, BRIDGE, or all. Default: everything except BRIDGE",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Comma-separated language codes for name.translations (default: every language we hold), e.g. en,uk,pl",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "required": false,
                        "description": "Search in holiday names (any language), e.g. christmas",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "id",
                        "in": "query",
                        "required": false,
                        "description": "One holiday by id (other filters ignored)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "school",
                        "in": "query",
                        "required": false,
                        "description": "1 = also list school-holiday periods (school_holidays[]) for countries that publish them",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "include",
                        "in": "query",
                        "required": false,
                        "description": "impact = add business_intelligence to each holiday (Pro and higher)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "min_impact",
                        "in": "query",
                        "required": false,
                        "description": "Only holidays with an impact_score of at least this (0-100); implies include=impact",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "holidays": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "id": {
                                                                        "description": "Stable holiday id, e.g. hol_de_christmas_day_2026 — the value ?id= takes. Observed (moved) days end in _obs."
                                                                    },
                                                                    "date": {
                                                                        "description": "iso (YYYY-MM-DD), year, month, day, day_of_week (ISO 1=Monday..7=Sunday), day_name, is_weekend (country weekend)."
                                                                    },
                                                                    "name": {
                                                                        "description": "en, local (in local_lang) and translations {lang: name}."
                                                                    },
                                                                    "location": {
                                                                        "description": "country_code, scope NATIONAL or REGIONAL, regions_affected (ISO 3166-2 codes)."
                                                                    },
                                                                    "classification": {
                                                                        "description": "type, is_day_off, is_bank_holiday, is_school_holiday, is_bridge, estimated (computed Islamic-calendar date), note (suspended_martial_law, transferred_by_decree or null)."
                                                                    },
                                                                    "floating_logic": {
                                                                        "description": "is_floating, rule (plain-language date rule), shifted_from (original date when a weekend holiday moved)."
                                                                    },
                                                                    "truck_ban": {
                                                                        "description": "Holiday truck driving ban in that country: applies, time_from, time_until (local time), min_weight_tons, eve_rule {date,time_from,time_until} for a ban on the eve, scope_note."
                                                                    },
                                                                    "business_intelligence": {
                                                                        "description": "With include=impact on Pro and higher: the same model-estimated block the impact product returns."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "transfers": {
                                                            "type": "array",
                                                            "description": "Decree day transfers in the window: date, country_code, kind (day_off | working_day), region, note."
                                                        },
                                                        "school_holidays": {
                                                            "type": "array",
                                                            "description": "With school=1: id, start_date, end_date, name, location."
                                                        },
                                                        "count": {
                                                            "description": "Holidays returned; countries and window {from,to} echo the request."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/holiday-calendar/business-days": {
            "get": {
                "tags": [
                    "holiday-calendar-business-days"
                ],
                "summary": "Holiday Calendar — Business Days API",
                "description": "Business-day arithmetic for one country, optionally one region: count working days between two dates, add or subtract working days, test a date, or find the next / previous working day. Honours the country's own weekend, national and regional day-off holidays, decree transfers (a Saturday that is worked) and Ukraine's martial-law rule. Dates 2020-01-01 to 2035-12-31. Answers from a precomputed calendar in a few milliseconds.\n\nExample: `/api/v2/data/holiday-calendar/business-days?op=count&country=DE&region=DE-BY&start_date=2026-01-01&end_date=2026-12-31`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/holiday-calendar-business-days",
                "operationId": "holidayCalendarBusinessDaysV2",
                "parameters": [
                    {
                        "name": "op",
                        "in": "query",
                        "required": false,
                        "description": "count (default) | add | subtract | is | next | prev",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code (required, one)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "region",
                        "in": "query",
                        "required": false,
                        "description": "ISO 3166-2 region, e.g. DE-BY (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "start_date",
                        "in": "query",
                        "required": false,
                        "description": "YYYY-MM-DD (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "end_date",
                        "in": "query",
                        "required": false,
                        "description": "YYYY-MM-DD (op=count)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "days",
                        "in": "query",
                        "required": false,
                        "description": "Working days to add or subtract, 0-3650 (op=add|subtract); 0 = start_date if it is a working day, else the next (add) or previous (subtract) one",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "inclusive",
                        "in": "query",
                        "required": false,
                        "description": "op=count: true (default) counts start_date and end_date; false leaves start_date out",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "weekend",
                        "in": "query",
                        "required": false,
                        "description": "Optional weekend override, e.g. fri,sat or 5,6 (ISO weekdays); none = no weekend days",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "business_days": {
                                                            "description": "op=count: working days in the range, with calendar_days and non_business_days."
                                                        },
                                                        "result_date": {
                                                            "description": "op=add|subtract|next|prev: the resulting date."
                                                        },
                                                        "is_business_day": {
                                                            "description": "op=is: true or false, with reasons[] (weekend, holiday: <name>, day off by decree transfer) when false."
                                                        },
                                                        "weekend_days": {
                                                            "description": "Present when ?weekend= overrode the country weekend."
                                                        },
                                                        "calendar_window": {
                                                            "description": "First and last date the calendar covers."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/holiday-calendar/countries": {
            "get": {
                "tags": [
                    "holiday-calendar-countries"
                ],
                "summary": "Holiday Calendar — Countries API",
                "description": "The 51 countries (Europe + Gulf) the holiday calendar covers, each with its weekend days, time zone, regions, holiday types and whether school holidays are included. With ?country= one country in detail: working days per year 2020-2035, holidays and days off per year, decree day transfers and the next five holidays.\n\nExample: `/api/v2/data/holiday-calendar/countries?country=DE`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/holiday-calendar-countries",
                "operationId": "holidayCalendarCountriesV2",
                "parameters": [
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code for the detail view (optional; omit for the list)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language codes for next_holidays names (detail view; default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "countries": {
                                                            "type": "array",
                                                            "description": "List view: country_code, name, timezone, local_lang, weekend_days[{iso,name}], regions[{code,name,type}], holiday_types, has_school_holidays, has_estimated_dates, day_off_suspensions, coverage."
                                                        },
                                                        "country": {
                                                            "description": "Detail view: the same fields for one country, plus the ones below.",
                                                            "type": "object",
                                                            "properties": {
                                                                "business_days_by_year": {
                                                                    "description": "Working days per year (national calendar)."
                                                                },
                                                                "holidays_by_year": {
                                                                    "description": "Per year: holidays listed and days off."
                                                                },
                                                                "next_holidays": {
                                                                    "type": "array",
                                                                    "description": "The next five holidays from today, in the holidays product shape."
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/holiday-calendar/impact": {
            "get": {
                "tags": [
                    "holiday-calendar-impact"
                ],
                "summary": "Holiday Calendar — Business Impact API",
                "description": "Model-estimated business impact of holidays for retail, logistics and demand planning (Pro and higher). insights scores every holiday 0-100 with the probability that shops are closed, the demand categories that rise before it, long-weekend and bridge position and our border-traffic multiplier, plus a per-country summary. demand-surge returns the dated windows around day-off holidays (pre-holiday, holiday, post-holiday) with an intensity each. Scores are estimates from holiday type, day-off status, scope, calendar position, truck bans and our traffic multipliers — not observed sales data.\n\nExample: `/api/v2/data/holiday-calendar/impact?op=insights&country=DE,PL&year=2026`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/holiday-calendar-impact",
                "operationId": "holidayCalendarImpactV2",
                "parameters": [
                    {
                        "name": "op",
                        "in": "query",
                        "required": false,
                        "description": "insights (default) | demand-surge",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code, or comma-separated list of up to 10 (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "year",
                        "in": "query",
                        "required": false,
                        "description": "YYYY, 2020-2035 (default: current year)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "Range start YYYY-MM-DD (with to; at most 731 days)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "required": false,
                        "description": "Range end YYYY-MM-DD",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "region",
                        "in": "query",
                        "required": false,
                        "description": "ISO 3166-2 region, e.g. DE-BY (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language codes for names (default: all held)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "min_impact",
                        "in": "query",
                        "required": false,
                        "description": "Only holidays with an impact_score of at least this (0-100)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "holidays": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "id": {
                                                                        "description": "Stable holiday id, e.g. hol_de_christmas_day_2026 — the value ?id= takes. Observed (moved) days end in _obs."
                                                                    },
                                                                    "date": {
                                                                        "description": "iso (YYYY-MM-DD), year, month, day, day_of_week (ISO 1=Monday..7=Sunday), day_name, is_weekend (country weekend)."
                                                                    },
                                                                    "name": {
                                                                        "description": "en, local (in local_lang) and translations {lang: name}."
                                                                    },
                                                                    "location": {
                                                                        "description": "country_code, scope NATIONAL or REGIONAL, regions_affected (ISO 3166-2 codes)."
                                                                    },
                                                                    "classification": {
                                                                        "description": "type, is_day_off, is_bank_holiday, is_school_holiday, is_bridge, estimated (computed Islamic-calendar date), note (suspended_martial_law, transferred_by_decree or null)."
                                                                    },
                                                                    "floating_logic": {
                                                                        "description": "is_floating, rule (plain-language date rule), shifted_from (original date when a weekend holiday moved)."
                                                                    },
                                                                    "truck_ban": {
                                                                        "description": "Holiday truck driving ban in that country: applies, time_from, time_until (local time), min_weight_tons, eve_rule {date,time_from,time_until} for a ban on the eve, scope_note."
                                                                    },
                                                                    "business_intelligence": {
                                                                        "description": "impact_score 0-100, retail_closure_probability 0-1, demand_surge_categories[], long_weekend, bridge_opportunity, holiday_family, border_traffic_multiplier (null when none), basis model_estimated, model."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "summary": {
                                                            "type": "array",
                                                            "description": "op=insights, per country: holidays, weekday_days_off, long_weekends, average_impact_score, top_holidays[3]."
                                                        },
                                                        "windows": {
                                                            "type": "array",
                                                            "description": "op=demand-surge: date, phase (pre_holiday | holiday | post_holiday), intensity 0-100, demand_surge_categories, retail_closure_probability (holiday phase), holiday_id, holiday_name, country_code, regions_affected."
                                                        },
                                                        "impact_model": {
                                                            "description": "Model id and the note that these are estimates."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/weather": {
            "get": {
                "tags": [
                    "weather"
                ],
                "summary": "Border Weather Condition API",
                "description": "The road-hazard condition at a border checkpoint on a single 0..5 scale: 0 clear road, 1 fog, 2 snow, 3 rain, 4 ice, 5 strong wind, named in the requested language and graded by severity. This is our own classification, not a meteorological feed — no temperature, pressure or wind readings are served, and none are needed to decide whether the approach is safe. Two writers feed the same scale: what drivers themselves report from the queue, and our weather models mapped onto it; ?sources= keeps only one of them. Every answer carries observed_at, data_age_minutes and is_fresh, and says no_data outright rather than implying a clear road when nothing was reported inside the window.\n\nExample: `/api/v1/data/weather?ppid=id_13&lang=en`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/weather",
                "operationId": "weatherV1",
                "parameters": [
                    {
                        "name": "ppid",
                        "in": "query",
                        "required": false,
                        "description": "Checkpoint ID, e.g. id_13 (see /api/v1/data/checkpoints)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for condition and severity names (any of the 25 site languages plus hr, nl, pt; default en)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "sources",
                        "in": "query",
                        "required": false,
                        "description": "all (default) | community — only what drivers reported | model — only our weather-model classification",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "max_age_minutes",
                        "in": "query",
                        "required": false,
                        "description": "How far back a marker may be and still count (default 180, min 15, max 1440). Markers are written roughly hourly per checkpoint; driver reports arrive irregularly",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "condition": {
                                                            "type": "object",
                                                            "properties": {
                                                                "code": {
                                                                    "description": "The marker, 0..5, with key the stable machine name (good, fog, snow, rain, ice, wind) and name the same thing in the requested language, worded for a driver (\"Slippery!\", not \"freezing precipitation\"). null when nothing was reported inside the window — see data.no_data."
                                                                },
                                                                "severity": {
                                                                    "description": "none | low | moderate | major, the same severity vocabulary road-conditions uses, with severity_name in the requested language."
                                                                },
                                                                "severity_rank": {
                                                                    "description": "Danger order when you sort several checkpoints: 1 ice, 2 fog, 3 snow, 4 rain, 5 wind, 6 clear. Lower is worse — the codes themselves are NOT an order."
                                                                },
                                                                "hazard": {
                                                                    "description": "true for anything but a clear road, so a client can gate an alert on one field."
                                                                }
                                                            }
                                                        },
                                                        "observed_at": {
                                                            "description": "When the marker was written (Europe/Kyiv), with observed_ts as a Unix timestamp."
                                                        },
                                                        "data_age_minutes": {
                                                            "description": "Age of that marker in minutes, with is_fresh true when it is under 3 hours old. Read it before treating the answer as current."
                                                        },
                                                        "source_type": {
                                                            "description": "community when a driver reported it, model when our weather model classified it. null when there is no marker."
                                                        },
                                                        "no_data": {
                                                            "description": "true when no marker exists for this checkpoint inside the window — an honest gap, not a clear road. Widen max_age_minutes or drop the sources filter."
                                                        },
                                                        "scale": {
                                                            "description": "The whole 0..5 vocabulary as an array indexed by code, so you can label a value without hardcoding our wording."
                                                        },
                                                        "sources": {
                                                            "description": "The filters actually applied, with window_minutes — both echoed back after clamping."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/bus-carriers": {
            "get": {
                "tags": [
                    "bus-carriers"
                ],
                "summary": "Bus Carrier Border Stats API",
                "description": "Border-crossing performance per bus carrier: crossings, average/median/min/max wait minutes — built from our own plate-matched crossing records.\n\nExample: `/api/v1/data/bus-carriers?ppid=id_13&days=30`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/bus-carriers",
                "operationId": "busCarriersV1",
                "parameters": [
                    {
                        "name": "ppid",
                        "in": "query",
                        "required": false,
                        "description": "Checkpoint ID, e.g. id_13 — or \"all\" for the aggregated roster",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "days",
                        "in": "query",
                        "required": false,
                        "description": "Period 1-90 (default 30)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "min_crossings",
                        "in": "query",
                        "required": false,
                        "description": "Minimum crossings to include a carrier (default 3)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max carriers returned (default 20)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "companies": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "name": {
                                                                        "description": "Carrier, as matched from plates seen at the border."
                                                                    },
                                                                    "crossings": {
                                                                        "description": "How many crossings of theirs we matched in the period."
                                                                    },
                                                                    "avg_wait_min": {
                                                                        "description": "Their average border wait, with median_wait_min, min_wait_min and max_wait_min."
                                                                    },
                                                                    "max_wait_days_ago": {
                                                                        "description": "How long ago the worst wait happened — an old outlier is not today's carrier."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "total_crossings": {
                                                            "description": "Crossings observed in period_days, with matched_crossings — the subset a carrier could be identified for."
                                                        },
                                                        "data_available": {
                                                            "description": "false = too little matched data for the checkpoint/period to report anything."
                                                        },
                                                        "ppid": {
                                                            "description": "Checkpoint the stats are for ('all' when aggregated), with mode and generated_at."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/road-conditions": {
            "get": {
                "tags": [
                    "road-conditions"
                ],
                "summary": "Road Conditions API",
                "description": "Live road conditions on the approaches to a border crossing: accidents, roadworks, closures, congestion, weather hazards, potholes and ice. Merges our own driver reports with the incident feeds our navigator runs on, deduplicated across feeds, each row carrying a stable opaque id. Send ppid for one crossing, lat and lng for a radius search of up to 50 km, or country for the corridors of all its checkpoints. A corridor is the last 50 km of the main road to the crossing, on both sides of the border. Nothing farther than 100 km from a land border is returned.\n\nExample: `/api/v1/data/road-conditions?ppid=id_13&lang=en`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/road-conditions",
                "operationId": "roadConditionsV1",
                "parameters": [
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code. Use it if you send neither ppid nor lat+lng. Returns the corridors of all checkpoints on that country's side, not the whole country. A country with no checkpoints returns no items",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "ppid",
                        "in": "query",
                        "required": false,
                        "description": "Checkpoint ID, e.g. id_13. Send ppid or lat+lng, or country for all its checkpoints; a call with none of them gets 400. Scopes the answer to that crossing's corridor: the last 50 km of the main road to it on BOTH sides of the border",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "condition_type",
                        "in": "query",
                        "required": false,
                        "description": "accident|roadwork|closure|congestion|weather|hazard|pothole|speed_bump|object|stopped|ice|other (optional). In v1 anything an upstream feed reports outside this list is mapped to `other`; v2 returns the raw value",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "severity",
                        "in": "query",
                        "required": false,
                        "description": "low|moderate|major|critical (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lat",
                        "in": "query",
                        "required": false,
                        "description": "Latitude (optional) — with lng, switches to a radius search. Only conditions within 100 km of a land border are returned",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lng",
                        "in": "query",
                        "required": false,
                        "description": "Longitude (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "radius",
                        "in": "query",
                        "required": false,
                        "description": "Radius km (default 50, maximum 50; a larger value is treated as 50). Applies ONLY with lat+lng; on the corridor path the road itself is the filter, not a circle",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "sources",
                        "in": "query",
                        "required": false,
                        "description": "all (default) | user (our own driver reports only) | external (road-authority and provider feeds only)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max results (default 100, cap 500)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "offset",
                        "in": "query",
                        "required": false,
                        "description": "Pagination offset (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "include_expired",
                        "in": "query",
                        "required": false,
                        "description": "1 = also return conditions whose expiry has passed (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language for condition_type_name / severity_name labels — all 25 site languages plus hr, nl, pt (default uk)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "conditions": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "condition_type": {
                                                                        "description": "What it is (roadworks, closure, accident, weather…), with condition_type_name in the requested language."
                                                                    },
                                                                    "severity": {
                                                                        "description": "How bad it is, with severity_name."
                                                                    },
                                                                    "description": {
                                                                        "description": "Free-text detail as published, with road_name and direction."
                                                                    },
                                                                    "latitude": {
                                                                        "description": "Where it is, with longitude and country_code."
                                                                    },
                                                                    "corridor_ppid": {
                                                                        "description": "The border crossing whose approach corridor this sits on, when it is on one."
                                                                    },
                                                                    "estimated_duration": {
                                                                        "description": "How long it is expected to last, with expires_at and created_at."
                                                                    },
                                                                    "remaining_minutes": {
                                                                        "description": "Minutes until expires_at. Present only when the condition has an expiry."
                                                                    },
                                                                    "description_lang": {
                                                                        "description": "v2 only: the language of description. It can differ from lang until a new text is translated, and it is null when the feed has mixed languages."
                                                                    },
                                                                    "description_original": {
                                                                        "description": "v2 only: the source text. Present only when description is a translation."
                                                                    },
                                                                    "external_id": {
                                                                        "description": "Opaque stable id of a feed incident (\"rc_\" + 16 hex, null for our own driver reports) — the same incident keeps it across polls, use it to deduplicate. id is a stable int."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "total": {
                                                            "description": "Matches for the query, with limit and offset for paging."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/assistant": {
            "get": {
                "tags": [
                    "assistant"
                ],
                "summary": "Border AI Assistant API",
                "description": "Ask our production AI assistant any border-crossing question (queues, forecasts, rules, fuel, routes) and get the same grounded answer that powers the nakordoni.eu widget — in 24 languages. Already used in production by yaknakordoni.com.ua.\n\nExample: `/api/v1/data/assistant?q=How long is the queue at Krakovets now?&lang=en&ppid=id_13`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/assistant",
                "operationId": "assistantV1",
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": false,
                        "description": "The question (plain text)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Answer language (default en)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "ppid",
                        "in": "query",
                        "required": false,
                        "description": "Checkpoint context, e.g. id_13 (optional)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "question": {
                                                            "description": "The question as asked, with lang and ppid — the checkpoint context the answer was grounded on."
                                                        },
                                                        "answer_text": {
                                                            "description": "The answer, in the requested language. Structured answers add their own fields beside it (summary, figures, sources) depending on the question type."
                                                        }
                                                    }
                                                },
                                                "usage": {
                                                    "description": "Envelope level: limit, used, reset — this product is metered like any other."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/assistant-custom": {
            "get": {
                "tags": [
                    "assistant-custom"
                ],
                "summary": "Personalised AI Assistant API",
                "description": "Your own AI assistant, grounded on YOUR content plus OUR live border data. Point it at your markdown files or let us fetch the pages you name — we index them and answer from them. Choose which of our data feeds it may use (queue, forecast, alternatives, fuel, truck bans, holidays, road conditions…), choose the model tier (that is what sets the price), write your own instructions with {{feed.slug}} placeholders saying exactly where our data goes in the answer, and add a closing sentence of your own that is appended to every reply. Build it and test it at /{lang}/developers/studio, then call it here. Price per answer = model tier units + 1 unit per enabled feed (shown in the studio and in X-Devapi-Units).\n\nExample: `/api/v2/data/assistant-custom?assistant_id=1&q=Should I cross tonight or in the morning?&ppid=id_13&lang=uk`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/assistant-custom",
                "operationId": "assistantCustomV2",
                "parameters": [
                    {
                        "name": "assistant_id",
                        "in": "query",
                        "required": false,
                        "description": "Your assistant id from Developers → AI Studio (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "required": false,
                        "description": "The end-user question, plain text, max 1000 chars (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Answer language code — overrides the assistant default (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "ppid",
                        "in": "query",
                        "required": false,
                        "description": "Checkpoint context for queue/forecast/alternatives feeds, e.g. id_13 (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "origin",
                        "in": "query",
                        "required": false,
                        "description": "Origin country code for the border feed (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "destination",
                        "in": "query",
                        "required": false,
                        "description": "Destination country code for the border feed (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "crossing_type",
                        "in": "query",
                        "required": false,
                        "description": "Vehicle type for border/alternatives feeds: 4=car, 6=bus, 8=truck (Freight Transport), 9=truck up to 7.5 t (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "Country context for fuel / truck-bans / holidays / road-conditions feeds (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lat",
                        "in": "query",
                        "required": false,
                        "description": "Latitude for the POI feed (optional)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lon",
                        "in": "query",
                        "required": false,
                        "description": "Longitude for the POI feed (optional)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "assistant_id": {
                                                            "description": "Which of your assistants answered, with assistant — its name."
                                                        },
                                                        "question": {
                                                            "description": "The question as asked, with lang."
                                                        },
                                                        "answer": {
                                                            "description": "The answer, grounded on your indexed content plus the feeds you enabled."
                                                        },
                                                        "model_tier": {
                                                            "description": "Model tier that ran — this is what sets the price, together with the feed count."
                                                        },
                                                        "sources": {
                                                            "description": "Your content chunks the answer drew on, so you can cite them."
                                                        },
                                                        "feeds": {
                                                            "description": "Our live feeds that were actually used in this answer."
                                                        },
                                                        "feeds_skipped": {
                                                            "description": "Feeds enabled on the assistant but skipped because the request lacked their context — each value names the parameters to pass next time."
                                                        },
                                                        "ms": {
                                                            "description": "How long the answer took to generate."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v1/data/travel-matrix": {
            "get": {
                "tags": [
                    "travel-matrix"
                ],
                "summary": "Border Travel Matrix API",
                "description": "Travel time + border queue data for all checkpoints from a given origin. Returns drive time, current queue, total estimated journey time, and distance for every relevant crossing — sorted from fastest. Supports multi-leg routes (e.g. Germany → Poland → Ukraine border). Powers the nakordoni.eu navigator \"Choose a crossing\" feature.\n\nExample: `/api/v1/data/travel-matrix?origin_lat=50.06&origin_lon=19.94&type=4&dest=1&lang=en`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/travel-matrix",
                "operationId": "travelMatrixV1",
                "parameters": [
                    {
                        "name": "origin_lat",
                        "in": "query",
                        "required": false,
                        "description": "Origin latitude (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "origin_lon",
                        "in": "query",
                        "required": false,
                        "description": "Origin longitude (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "description": "Crossing type: 4=car UA→EU (default), 5=car EU→UA, 6=bus, 7=pedestrian, 8=truck (Freight Transport), 9=truck up to 7.5 t",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "dest",
                        "in": "query",
                        "required": false,
                        "description": "Destination country code (1=UA, 2=PL, 3=SK, 4=HU, 5=RO, 6=MD) or \"all\" (default)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "origin_country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 origin country (e.g. DE, PL, CZ). Enables multi-leg route calculation for non-border countries",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language code for checkpoint names (default uk)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "results": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "ppid": {
                                                                        "description": "Crossing, with checkpoint_name, country, country_id, lat and lon."
                                                                    },
                                                                    "distance_km": {
                                                                        "description": "Road distance from your origin, with drive_minutes."
                                                                    },
                                                                    "queue_minutes": {
                                                                        "description": "Current border wait, with queue_cars behind it."
                                                                    },
                                                                    "total_minutes": {
                                                                        "description": "drive_minutes + queue_minutes — the ranking figure."
                                                                    },
                                                                    "avg_crossing_minutes": {
                                                                        "description": "Typical time inside the crossing itself, with total_with_avg_crossing for a door-to-door estimate."
                                                                    },
                                                                    "status": {
                                                                        "description": "Checkpoint status — a closed crossing still appears, so filter on it."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "origin": {
                                                            "description": "The origin the matrix was computed from; count is the number of crossings, updated_at when the queues were read."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/air-alerts": {
            "get": {
                "tags": [
                    "air-alerts"
                ],
                "summary": "Air Alert Proximity API",
                "description": "Air-raid alerts and airborne objects near ONE border crossing. Anchor on a checkpoint (ppid), a coordinate pair or a city and get back only what is inside your radius (default 100 km): which regions are under alert, how far each is, and how close any tracked object currently is on a 1-5 proximity band. Regions are returned as ISO 3166-2 region_code, the same classifier the regional fuel data uses. DELIBERATELY NOT REAL-TIME: every response is a snapshot 1-3 minutes old with the lag re-randomised per request and stated in as_of/lag_min, and object coordinates are never returned - only distance, bearing and speed relative to your anchor. Source data is crowd/OSINT-derived and partly hand-moderated: a signal, never ground truth, and never a substitute for official air-raid warnings.\n\nExample: `/api/v2/data/air-alerts?ppid=id_94&radius_km=100`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/air-alerts",
                "operationId": "airAlertsV2",
                "parameters": [
                    {
                        "name": "ppid",
                        "in": "query",
                        "required": false,
                        "description": "Checkpoint ID to anchor on, e.g. id_94 — use the Checkpoints Directory API to discover it. Alternative to lat/lon.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lat",
                        "in": "query",
                        "required": false,
                        "description": "Latitude of the anchor point (alternative to ppid)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lon",
                        "in": "query",
                        "required": false,
                        "description": "Longitude of the anchor point (alternative to ppid)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "city",
                        "in": "query",
                        "required": false,
                        "description": "City name — alternative to lat/lon, resolved to coordinates",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "country",
                        "in": "query",
                        "required": false,
                        "description": "ISO-2 country code, disambiguates city",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "radius_km",
                        "in": "query",
                        "required": false,
                        "description": "Search radius in km around the anchor (default 100, min 10, max 300). The 1-5 proximity band is scaled to this radius: 5 = nearest fifth, 1 = outermost fifth.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language code (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "anchor": {
                                                            "description": "What the radius was measured from: ppid, lat, lng, radius_km."
                                                        },
                                                        "as_of": {
                                                            "description": "Snapshot time — DELIBERATELY not real-time. lag_min states the delay, re-randomised per request, and lag_note explains it."
                                                        },
                                                        "alerts": {
                                                            "type": "object",
                                                            "properties": {
                                                                "count": {
                                                                    "description": "Regions under alert inside the radius, with region_codes (ISO 3166-2) and items — each with its distance from the anchor."
                                                                },
                                                                "unresolved": {
                                                                    "description": "Alerts that could not be placed on a region, with merged — how many overlapping ones were combined."
                                                                }
                                                            }
                                                        },
                                                        "targets": {
                                                            "type": "object",
                                                            "properties": {
                                                                "count": {
                                                                    "description": "Tracked objects inside the radius, with items — distance, bearing, speed and a 1-5 proximity band ONLY. Coordinates are never returned."
                                                                },
                                                                "by_type": {
                                                                    "description": "Counts per object type, with tracked_total across the whole feed."
                                                                }
                                                            }
                                                        },
                                                        "attribution": {
                                                            "description": "Source labels you must display, with a note per source."
                                                        },
                                                        "labels": {
                                                            "description": "Localised UI strings, including the disclaimer — crowd/OSINT data, never a substitute for official air-raid warnings."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/route-plan": {
            "get": {
                "tags": [
                    "route-plan"
                ],
                "summary": "Route Planner API",
                "description": "A door-to-door plan for a border trip, not just a driving time. Returns the route, the crossings actually on it with their live or arrival-time-forecast queue, and the stops a driver really makes — rest breaks, a meal, refuelling — laid out on one timeline. The border is part of that timeline: a long queue satisfies the break that was coming up and resets the driving clock, so a 3-hour wait is never reported as 3 hours PLUS a full set of breaks nobody took. Car stops follow a driving-hygiene model; bus and truck stops respect the mandatory EU 561/2006 rest, and the bus service overhead is calibrated on 1000+ licensed international coach schedules. Set stop_places=1 to name a real rest area or fuel station for each stop. Each border also reports wait_basis: vehicle_lane when your vehicle class has its own measured queue, car_lane when the car-lane queue is the best available signal for that crossing.\n\nExample: `/api/v2/data/route-plan?origin_lat=50.4501&origin_lon=30.5234&dest_lat=52.2297&dest_lon=21.0122&vehicle=car&stop_places=1&lang=en`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/route-plan",
                "operationId": "routePlanV2",
                "parameters": [
                    {
                        "name": "origin_lat",
                        "in": "query",
                        "required": false,
                        "description": "Origin latitude (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "origin_lon",
                        "in": "query",
                        "required": false,
                        "description": "Origin longitude (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "dest_lat",
                        "in": "query",
                        "required": false,
                        "description": "Destination latitude (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "dest_lon",
                        "in": "query",
                        "required": false,
                        "description": "Destination longitude (required)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "vehicle",
                        "in": "query",
                        "required": false,
                        "description": "car (default), bus or truck — picks both the routing profile and the stop model",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "depart",
                        "in": "query",
                        "required": false,
                        "description": "ISO-8601 departure time, up to 14 days ahead (default: now). Drives the arrival-time queue forecast",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "via",
                        "in": "query",
                        "required": false,
                        "description": "Optional waypoints as lat,lon;lat,lon (max 3) — e.g. to route through a different crossing",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "forecast",
                        "in": "query",
                        "required": false,
                        "description": "1 (default) = forecast the queue for your arrival time at each crossing; 0 = use the current queue",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "stop_places",
                        "in": "query",
                        "required": false,
                        "description": "1 = name a real rest area / fuel station for each stop (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "overnight",
                        "in": "query",
                        "required": false,
                        "description": "1 = add an advisory overnight stop when the drive exceeds 11 h (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "rest_rules",
                        "in": "query",
                        "required": false,
                        "description": "legacy (default in v2) or eu561 — with overnight=1 and vehicle=truck|bus: 9 h driving per day, 11 h daily rest (type overnight, minutes 660), 45 min break after 4 h 30. eu561 is the default from v3",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "driven_since_break_min",
                        "in": "query",
                        "required": false,
                        "description": "eu561 driver state: minutes driven since the last 45 min break (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "driven_today_min",
                        "in": "query",
                        "required": false,
                        "description": "eu561: minutes driven since the last daily rest (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "duty_started_min_ago",
                        "in": "query",
                        "required": false,
                        "description": "eu561: minutes elapsed since the last daily rest ended; the next daily rest must start within 13 h (15 h after a reduced rest) of that (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "driven_week_min",
                        "in": "query",
                        "required": false,
                        "description": "eu561: minutes driven this week; at 56 h a weekly_rest stop (45 h) is added (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "driven_fortnight_min",
                        "in": "query",
                        "required": false,
                        "description": "eu561: minutes driven in the fortnight; cap 90 h (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "extended_days_used",
                        "in": "query",
                        "required": false,
                        "description": "eu561: 10 h driving days already used this week, max 2 (default 0). A 10 h day is planned only when it lets the trip end without another daily rest",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "reduced_rests_used",
                        "in": "query",
                        "required": false,
                        "description": "eu561: reduced 9 h daily rests used since the last weekly rest, max 3 (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "allow_reduced",
                        "in": "query",
                        "required": false,
                        "description": "eu561: 1 = may use a 9 h reduced daily rest when it lets the trip end next day (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "places_before_min",
                        "in": "query",
                        "required": false,
                        "description": "With stop_places=1: minutes of driving before each break or rest in which to look for places, 0–120 (default 45)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "places_after_min",
                        "in": "query",
                        "required": false,
                        "description": "With stop_places=1: minutes of driving after each break or rest in which to look for places, 0–120 (default 15)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "places_radius_km",
                        "in": "query",
                        "required": false,
                        "description": "With stop_places=1: max distance off the route for break and meal places, 0.5–25 km (default 5; above 25 it is clamped and warning radius_clamped is returned)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "rest_radius_km",
                        "in": "query",
                        "required": false,
                        "description": "With stop_places=1: max distance off the route for overnight and weekly-rest places, 0.5–25 km (default 5; above 25 it is clamped with radius_clamped)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "geometry",
                        "in": "query",
                        "required": false,
                        "description": "1 = include the full route geometry (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "alternatives",
                        "in": "query",
                        "required": false,
                        "description": "1 (default) = include nearby alternative crossings with their queues",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "preference",
                        "in": "query",
                        "required": false,
                        "description": "recommended (default), fastest or shortest",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language code for checkpoint names (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "route": {
                                                            "description": "The drive itself: distance_km, drive_seconds, vehicle, toll_distance_km."
                                                        },
                                                        "borders": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "ppid": {
                                                                        "description": "A crossing on the route, with name, from, to and crossing_type."
                                                                    },
                                                                    "wait": {
                                                                        "description": "Its live or arrival-time-forecast wait, with wait_basis — vehicle_lane when your vehicle class has its own measured queue, car_lane when the car queue is the best available signal."
                                                                    },
                                                                    "registration_required": {
                                                                        "description": "true on a Ukraine-exit truck lane with an electronic queue (eCherha): register before arriving."
                                                                    },
                                                                    "registration_wait_minutes": {
                                                                        "description": "eCherha published wait in minutes for that lane (fresh data only, never capped), else null. With rest_rules=eu561 (default from v3) it is used as the border wait (wait.source echerha_registration) and as a rest; with legacy it is reported only. Warning echerha_registration when above 0."
                                                                    },
                                                                    "registration_wait_source": {
                                                                        "description": "echerha when registration_wait_minutes is set, else null."
                                                                    },
                                                                    "registration_wait_at": {
                                                                        "description": "ISO 8601 UTC time of the eCherha reading."
                                                                    },
                                                                    "registration_note": {
                                                                        "description": "Localized (lang) note about registering on eCherha; registration_url is https://echerha.gov.ua. Both only on registration_required crossings."
                                                                    },
                                                                    "at_km": {
                                                                        "description": "Where it falls on the route, with at_drive_seconds and distance_from_route_km."
                                                                    },
                                                                    "alternatives": {
                                                                        "type": "array",
                                                                        "description": "Other crossings worth switching to: ppid, name, wait_minutes, queue_cars, detour_km."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "stops": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "type": {
                                                                        "description": "break, meal, fuel, overnight, weekly_rest (45 h, eu561), border_wait or ban_wait, with reason, at_km, at_drive_s, minutes, starts_at and ends_at."
                                                                    },
                                                                    "counts_as": {
                                                                        "description": "On a border_wait or ban_wait stop: what the wait satisfies — none, break, meal, overnight or weekly_rest — so it is not planned twice."
                                                                    },
                                                                    "ban": {
                                                                        "description": "On a ban_wait stop: the driving ban being waited out — name, country, from, until."
                                                                    },
                                                                    "places": {
                                                                        "type": "array",
                                                                        "description": "With stop_places=1, on break, meal, overnight and weekly_rest stops: candidate parkings inside the pause window, best first — name, type (truck_stop, autohof, rest_area, parking), country, lat, lon, at_km, at_drive_s, offset_min (minutes from the planned stop, negative = before it), off_route_km, detour_km (same value), exceeds_4h30 (continuous driving since the last break would pass 4 h 30), type_rank (1 truck_stop … 4 parking). Tune with places_before_min, places_after_min, places_radius_km, rest_radius_km."
                                                                    },
                                                                    "in_vehicle_allowed": {
                                                                        "description": "v3, on daily and weekly rest stops: false for a regular weekly rest (45 h or more) and for any weekly rest of more than 45 h; true for a reduced weekly rest (24 h to less than 45 h) and for daily rests. accommodation_required has the opposite value. rule = EU 561/2006 Art. 8(8) as amended by 2020/1054."
                                                                    },
                                                                    "accommodation": {
                                                                        "type": "array",
                                                                        "description": "v3, on weekly rest stops: parkings with rooms on site near the stop (route-plan: the driving window of places[]; truck-route: 45 min of driving before to 15 min after) — name, type, country, lat, lon, at_km, offset_min, off_route_km, rooms_on_site. Information only: the stop and its truck parking do not change."
                                                                    },
                                                                    "place": {
                                                                        "type": "object",
                                                                        "properties": {
                                                                            "has_accommodation": {
                                                                                "description": "v3, on weekly rest stops: true when this parking (in route-plan also each places[] row) has rooms on site, i.e. a site with rooms within 300 m. nearest_accommodation_km = distance in km to the nearest accommodation[] site, or null."
                                                                            }
                                                                        }
                                                                    },
                                                                    "warning": {
                                                                        "description": "v3: no_accommodation_found when accommodation_required is true and accommodation[] is empty. Information only; the stop stays in the plan."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "summary": {
                                                            "description": "The timeline totals: drive_seconds, stop_seconds, border_wait_seconds, total_seconds, arrival_at, stop_count, border_count and borders_absorbed_breaks — long waits that satisfied a due break instead of adding to it."
                                                        },
                                                        "model": {
                                                            "description": "Rules the plan was built on: vehicle, basis (driving-hygiene or EU 561/2006), break_after_drive_min, meal_after_drive_min, fuel_every_km."
                                                        },
                                                        "warnings": {
                                                            "type": "array",
                                                            "description": "Things to tell the driver: code, ppid, name, status, message, suggested_alternative — e.g. checkpoint_closed, wait_capped (a queue over 48 h is planned at 48 h; the eCherha wait is not capped), radius_clamped (places_radius_km or rest_radius_km above 25 km; with param, requested, used), echerha_registration (registration needed, with registration_wait_minutes), echerha_wait_unverified (eCherha wait missing or older than 3 h; check https://echerha.gov.ua)."
                                                        }
                                                    }
                                                },
                                                "api_version": {
                                                    "description": "v2 is additive only: the places[], ban_wait, weekly_rest, counts_as, registration_* and driver-state parameters above are opt-in or extra fields; rest_rules defaults to legacy and place names use the original filter. v3 (/api/v3/data/route-plan) changes defaults: rest_rules=eu561, strict place names (real parkings and rest areas only), the eCherha published wait (uncapped) used as the border wait, and a border wait counts as the break or rest that was due. Pass rest_rules=legacy to keep the old model on v3."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/truck-route": {
            "get": {
                "tags": [
                    "truck-route"
                ],
                "summary": "Truck Route API",
                "description": "Truck routing API with fuel stations and truck parking along the route, plus weigh stations and a driver rest plan. Send origin, destination and your vehicle (height, weight, length, width, axle load, hazmat) and get an HGV-legal route with the restrictions and dated truck driving bans it meets, the border crossings on it with their live wait, priced fuel stations, truck parkings (secure flag, capacity, amenities) and weighbridges within a corridor of the line. With include=rest the EU 561/2006 rules are applied to your driver state: 45-minute breaks at most 4 h 30 apart, daily rests before the 9 h / 10 h limit, each placed at a real parking before the limit is reached, weekend and holiday bans waited out, border waits on the timeline, single or double crew — and the ETA includes all of it. The rest plan is a planning aid, not a tachograph record. include=fuel_plan plans where to refuel and how many litres for your tank.\n\nExample: `/api/v2/data/truck-route?from=52.2297,21.0122&to=52.52,13.405&weight=40&height=4&axles=5&emission_class=euro6&crew=1`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/truck-route",
                "operationId": "truckRouteV2",
                "parameters": [
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "Origin as lat,lon (required unless from_city is given), e.g. 52.2297,21.0122",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "required": false,
                        "description": "Destination as lat,lon (required unless to_city is given)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "from_city",
                        "in": "query",
                        "required": false,
                        "description": "Origin city name instead of coordinates (add from_country for accuracy)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "from_country",
                        "in": "query",
                        "required": false,
                        "description": "ISO 3166-1 alpha-2 country of from_city, e.g. PL",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to_city",
                        "in": "query",
                        "required": false,
                        "description": "Destination city name instead of coordinates",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to_country",
                        "in": "query",
                        "required": false,
                        "description": "ISO 3166-1 alpha-2 country of to_city",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "via",
                        "in": "query",
                        "required": false,
                        "description": "Up to 5 waypoints as lat,lon|lat,lon",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "vehicle_type",
                        "in": "query",
                        "required": false,
                        "description": "truck (default). Deprecated value: motorhome, still accepted for existing integrations; new integrations use the Motorhome Route API (GET /api/v2/data/motorhome-route).",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "truck",
                                "motorhome"
                            ],
                            "default": "truck"
                        }
                    },
                    {
                        "name": "height",
                        "in": "query",
                        "required": false,
                        "description": "Vehicle height in metres (1.0–5.0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "weight",
                        "in": "query",
                        "required": false,
                        "description": "Gross vehicle weight in tonnes (1–60); drives weight-limited restrictions and bans",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "length",
                        "in": "query",
                        "required": false,
                        "description": "Vehicle length in metres (2–30)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "width",
                        "in": "query",
                        "required": false,
                        "description": "Vehicle width in metres (1.0–3.5)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "axle_load",
                        "in": "query",
                        "required": false,
                        "description": "Axle load in tonnes (1–20)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "axles",
                        "in": "query",
                        "required": false,
                        "description": "Number of axles, tractor plus trailer (2–12); used for routing and for toll classes (default for tolls: 5 from 18 t, 3 from 12 t, else 2)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "trailers",
                        "in": "query",
                        "required": false,
                        "description": "Number of trailers (0–3); reported back, no routing effect yet",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "hazmat",
                        "in": "query",
                        "required": false,
                        "description": "Dangerous goods: 0 (default), 1 = ADR load with class not given, or a comma list of ADR classes 1–9 and/or explosive, gas, flammable, flammable_solid, oxidizing, poison, radioactive, corrosive, harmful_to_water",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "adr_tunnel",
                        "in": "query",
                        "required": false,
                        "description": "ADR tunnel restriction code of the load: B, C, D or E. Tunnels whose category forbids it are avoided (implies hazmat)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "avoid",
                        "in": "query",
                        "required": false,
                        "description": "Comma list of tolls, ferries, motorways, borders, tunnels, unpaved, low_emission_zones",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "emission_class",
                        "in": "query",
                        "required": false,
                        "description": "Vehicle emission class euro0 … euro6; used for low-emission-zone checks and toll notes (tolls are priced at Euro VI rates)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "alternatives",
                        "in": "query",
                        "required": false,
                        "description": "Number of alternative routes, 0–2 (default 0; routes without via points only)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "geometry",
                        "in": "query",
                        "required": false,
                        "description": "polyline5 (default), polyline6 or geojson",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "arrive_at",
                        "in": "query",
                        "required": false,
                        "description": "Wanted arrival as RFC 3339; the departure is planned backwards including breaks and rests (instead of depart_at)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "route_type",
                        "in": "query",
                        "required": false,
                        "description": "fastest (default) or eco",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "include",
                        "in": "query",
                        "required": false,
                        "description": "Comma list of fuel, parking, weigh, rest (default: all four); add fuel_plan (never in the default, needs tank_l) for refuelling stops",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "corridor_km",
                        "in": "query",
                        "required": false,
                        "description": "Max distance from the route for fuel, parking and weigh stations, 0.2–5 km (default 2)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "fuel",
                        "in": "query",
                        "required": false,
                        "description": "Fuel grades to price, comma list (default diesel)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "tank_l",
                        "in": "query",
                        "required": false,
                        "description": "include=fuel_plan: usable tank size in litres, 20–1500 (required with fuel_plan)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "consumption_l100",
                        "in": "query",
                        "required": false,
                        "description": "include=fuel_plan: consumption in litres per 100 km, 3–60 (default 30)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "start_fuel_pct",
                        "in": "query",
                        "required": false,
                        "description": "include=fuel_plan: tank level at departure in %, 5–100 (default 100)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "reserve_pct",
                        "in": "query",
                        "required": false,
                        "description": "include=fuel_plan: the plan never lets the tank drop below this %, 5–50 (default 15). The grade planned is the first one in fuel",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "rest_every_min",
                        "in": "query",
                        "required": false,
                        "description": "Deprecated: only with vehicle_type=motorhome and include=rest (legacy). Documented in the Motorhome Route API (motorhome-route).",
                        "schema": {
                            "type": "string"
                        },
                        "deprecated": true
                    },
                    {
                        "name": "break_min",
                        "in": "query",
                        "required": false,
                        "description": "Deprecated: only with vehicle_type=motorhome and include=rest (legacy). Documented in the Motorhome Route API (motorhome-route).",
                        "schema": {
                            "type": "string"
                        },
                        "deprecated": true
                    },
                    {
                        "name": "day_drive_max_min",
                        "in": "query",
                        "required": false,
                        "description": "Deprecated: only with vehicle_type=motorhome and include=rest (legacy). Documented in the Motorhome Route API (motorhome-route).",
                        "schema": {
                            "type": "string"
                        },
                        "deprecated": true
                    },
                    {
                        "name": "night_min",
                        "in": "query",
                        "required": false,
                        "description": "Deprecated: only with vehicle_type=motorhome and include=rest (legacy). Documented in the Motorhome Route API (motorhome-route).",
                        "schema": {
                            "type": "string"
                        },
                        "deprecated": true
                    },
                    {
                        "name": "night_start_after",
                        "in": "query",
                        "required": false,
                        "description": "Deprecated: only with vehicle_type=motorhome and include=rest (legacy). Documented in the Motorhome Route API (motorhome-route).",
                        "schema": {
                            "type": "string"
                        },
                        "deprecated": true
                    },
                    {
                        "name": "night_end_not_before",
                        "in": "query",
                        "required": false,
                        "description": "Deprecated: only with vehicle_type=motorhome and include=rest (legacy). Documented in the Motorhome Route API (motorhome-route).",
                        "schema": {
                            "type": "string"
                        },
                        "deprecated": true
                    },
                    {
                        "name": "goods_or_towing",
                        "in": "query",
                        "required": false,
                        "description": "Deprecated: only with vehicle_type=motorhome and include=rest (legacy). Documented in the Motorhome Route API (motorhome-route).",
                        "schema": {
                            "type": "string"
                        },
                        "deprecated": true
                    },
                    {
                        "name": "depart_at",
                        "in": "query",
                        "required": false,
                        "description": "Departure as ISO 8601 with time zone, up to 14 days ahead (default: now)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "aliases",
                        "in": "query",
                        "required": false,
                        "description": "Accepted for easy switching: depart → depart_at, departAt, arriveAt, vehicleHeight, vehicleWidth, vehicleLength, vehicleWeight (kg or t), vehicleAxleWeight / axleWeight → axle_load, vehicleNumberOfAxles / axleCount → axles, vehicleTrailers → trailers, vehicleAdrTunnelRestrictionCode → adr_tunnel, vehicleEmissionClass → emission_class, maxAlternatives → alternatives, waypoints → via",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "crew",
                        "in": "query",
                        "required": false,
                        "description": "1 (default) or 2 drivers — double crew uses the 30-hour daily rest window and 9 h rests",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "traffic",
                        "in": "query",
                        "required": false,
                        "description": "forecast (default), live or off. forecast = learned recurring congestion + live traffic near the departure + roadworks, closures and weather at the passing time; live = current traffic without the learned pattern; off = no traffic layer (free-flow drive time)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "driven_since_break_min",
                        "in": "query",
                        "required": false,
                        "description": "Driver state: minutes driven since the last 45-minute break (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "driven_today_min",
                        "in": "query",
                        "required": false,
                        "description": "Driver state: minutes driven since the last daily rest (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "driven_week_min",
                        "in": "query",
                        "required": false,
                        "description": "Driver state: minutes driven this calendar week (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "driven_last_week_min",
                        "in": "query",
                        "required": false,
                        "description": "Driver state: minutes driven last week, for the 90 h fortnight limit (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "reduced_daily_rests_used",
                        "in": "query",
                        "required": false,
                        "description": "Reduced (9 h) daily rests already taken since the last weekly rest, 0–3 (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "extended_days_used",
                        "in": "query",
                        "required": false,
                        "description": "10-hour driving days already used this week, 0–2 (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "last_weekly_rest_end",
                        "in": "query",
                        "required": false,
                        "description": "ISO 8601 end of the last weekly rest (default: assumed just before departure)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "reduced_weekly_ok",
                        "in": "query",
                        "required": false,
                        "description": "1 = a reduced (24 h) weekly rest may be planned (default 0 = regular 45 h)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language code for names and messages (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "route": {
                                                            "description": "distance_m, duration_s (pure driving), geometry (format in geometry_format), bbox, countries (ISO codes in order), departure_at, toll_distance_m, fuel_l, ascent_m, descent_m, legal, avoid; with arrive_at also arrive_at_requested.",
                                                            "type": "object",
                                                            "properties": {
                                                                "country_split": {
                                                                    "type": "array",
                                                                    "description": "Per country in route order: country, km, duration_min."
                                                                },
                                                                "adr": {
                                                                    "description": "Only with adr_tunnel: tunnel_code, tunnels_avoided[] and tunnels_on_route[] (name, category, lat, lon)."
                                                                },
                                                                "low_emission_zones_avoided": {
                                                                    "type": "array",
                                                                    "description": "Only with avoid=low_emission_zones: zones the route was moved out of (name, country); low_emission_zones_on_route[] lists any that could not be avoided."
                                                                },
                                                                "restriction_hits": {
                                                                    "type": "array",
                                                                    "description": "Restrictions for this vehicle still on the line: kind, name, country, at_km. A zone that holds one of your via points is entered only on the legs into and out of that via: it is listed with exempt=true and reason=via_inside_zone and does not make route.legal false."
                                                                },
                                                                "truck_bans": {
                                                                    "type": "array",
                                                                    "description": "Dated truck driving bans on the route: name, kind, country, details, min_weight_t, window_from, window_to, eta_at_ban (on the traffic forecast timeline), eta_at_ban_free (free-flow timeline), km_from_start, applies, active, avoided."
                                                                },
                                                                "border_crossings": {
                                                                    "type": "array",
                                                                    "description": "Crossings on the route: name, ppid, from_country, to_country, lat, lon, km_from_start, status; wait_min = time on the exit side + the entry side at the planned arrival (wait_at), null when neither side is measured (wait_minutes = same value, legacy name); wait_sides[] (side country, role exit|entry, ppid, min, basis live|forecast, note when not measured); wait_notes[]; wait_capped (a side over 48 h is planned at 48 h); registration_required = an electronic-queue lane: register before arriving. v2: the time to get a slot is not included in the wait. v3: Ukraine-exit truck lanes use the eCherha published wait as wait_min (fresh data only, never capped; entry side included; stale = wait_min null + warning echerha_wait_unverified) and add registration_wait_minutes, registration_wait_source (echerha), registration_wait_at, registration_note (localized) and registration_url."
                                                                },
                                                                "warnings": {
                                                                    "type": "array",
                                                                    "description": "code and message, e.g. ban_avoidance_skipped, restrictions_on_route, adr_tunnel_on_route, adr_tunnel_not_checked, low_emission_zone_on_route, closure_on_route (a full motorway closure overlaps the passing time), tolls_not_fully_avoided, arrive_at_not_reachable."
                                                                },
                                                                "closures_on_route": {
                                                                    "type": "array",
                                                                    "description": "German motorways: closures, roadworks and traffic warnings within 150 m of the line whose time window overlaps the moment the truck passes: type (closure, roadwork, warning), road, title, km_from_start, eta, from, to, full_closure, lorry_specific (text names lorries or a weight limit), lat, lon. The route is not changed around them."
                                                                }
                                                            }
                                                        },
                                                        "tolls": {
                                                            "description": "Estimated truck tolls: currency (EUR), total_eur, complete, by_country[] (country, km_toll, cost_eur, basis), objects[] (priced tunnels and bridges: name, type, country, lat, lon, cost_eur, basis), estimate, coverage_note. A country we cannot price has cost_eur null and is named in coverage_note."
                                                        },
                                                        "vehicle": {
                                                            "description": "The vehicle as understood: height_m, weight_t, length_m, width_m, axle_load_t, hazmat, axles, trailers, adr_classes, adr_tunnel, emission_class, type (truck)."
                                                        },
                                                        "alternatives": {
                                                            "type": "array",
                                                            "description": "Only with alternatives: distance_m, duration_s, forecast_duration_s (with traffic), tolls (currency, total_eur, complete, by_country) and geometry for each alternative route. Alternatives are planned without time-dependent restrictions and are not ban-checked; the main route is. Empty when no reasonable alternative exists."
                                                        },
                                                        "traffic_forecast": {
                                                            "description": "Unless traffic=off: model, mode, duration_base, duration_s_free, duration_s_forecast, delay_s (recurring, live, roadworks, weather, total), hotspots[] (km_from_start, km_to, eta, delay_s, reason recurring|live|roadworks|lane_closure|closure|weather, label, road, confidence low|medium|high, dow_hour, delay_by_reason, country; jam_frequency and road_condition where known), weather_on_route[], closures_avoided[], recommended_alternative (a forecast-faster alternative is only recommended — the primary route is never swapped), coverage (how much data backed the plan, with a note), calc_ms. The forecast timeline drives the ETA, rest plan, ban timing and border-wait timing. A planning estimate; data collection started in September 2026."
                                                        },
                                                        "rest_plan": {
                                                            "type": "array",
                                                            "description": "EU 561/2006 stops in order: type (break, daily_rest, weekly_rest), start_at, end_at, duration_min, km_from_start, parking (a parkings[] row or null), reason, overlaps_ban, counts_as.",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "in_vehicle_allowed": {
                                                                        "description": "v3, on daily and weekly rest stops: false for a regular weekly rest (45 h or more) and for any weekly rest of more than 45 h; true for a reduced weekly rest (24 h to less than 45 h) and for daily rests. accommodation_required has the opposite value. rule = EU 561/2006 Art. 8(8) as amended by 2020/1054."
                                                                    },
                                                                    "accommodation": {
                                                                        "type": "array",
                                                                        "description": "v3, on weekly rest stops: parkings with rooms on site near the stop (route-plan: the driving window of places[]; truck-route: 45 min of driving before to 15 min after) — name, type, country, lat, lon, at_km, offset_min, off_route_km, rooms_on_site. Information only: the stop and its truck parking do not change."
                                                                    },
                                                                    "parking": {
                                                                        "type": "object",
                                                                        "properties": {
                                                                            "has_accommodation": {
                                                                                "description": "v3, on weekly rest stops: true when this parking (in route-plan also each places[] row) has rooms on site, i.e. a site with rooms within 300 m. nearest_accommodation_km = distance in km to the nearest accommodation[] site, or null."
                                                                            }
                                                                        }
                                                                    },
                                                                    "warning": {
                                                                        "description": "v3: no_accommodation_found when accommodation_required is true and accommodation[] is empty. Information only; the stop stays in the plan."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "fuel_plan": {
                                                            "description": "Only with include=fuel_plan: grade, tank_l, consumption_l100, start_fuel_pct, reserve_pct, stops[] (km_from_start, station = a fuel_stations[] row, litres, est_price_per_l, est_cost and currency in the station currency, est_cost_eur, price_updated_at, fuel_left_on_arrival_pct, below_reserve when no station was in range), total_litres, total_est_cost (EUR, priced stops only), total_currency, fuel_left_at_destination_pct, warnings[] (code, km_from_start, message: fuel_gap, no_station_to_destination, price_unknown). Each stop is the cheapest station per litre within range that keeps the reserve; it buys enough to reach a cheaper station further on, or the destination, else a full tank. stops is empty when the tank covers the trip."
                                                        },
                                                        "rest_warnings[] / data": {
                                                            "type": "object",
                                                            "properties": {
                                                                "route": {
                                                                    "type": "object",
                                                                    "properties": {
                                                                        "warnings[] (v3)": {
                                                                            "description": "echerha_registration (registration needed, with registration_wait_minutes) and echerha_wait_unverified (eCherha wait missing or older than 3 h)."
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "waits": {
                                                            "type": "array",
                                                            "description": "Forced waits on the timeline: ban_wait (a driving ban) and border_wait, same shape as rest_plan."
                                                        },
                                                        "eta": {
                                                            "description": "Arrival time including driving, breaks, rests, ban waits and border waits; with driving_time_min, total_time_min and crew."
                                                        },
                                                        "weekly_rest_check": {
                                                            "description": "next_weekly_rest_due_by, weekly_rest_on_trip, driven_week_min_at_arrival, driven_fortnight_min_at_arrival, weekly and fortnight limits, reduced rests and 10 h days used at arrival."
                                                        },
                                                        "assumptions": {
                                                            "type": "array",
                                                            "description": "Defaults applied to driver state you did not send, and country rules not planned for."
                                                        },
                                                        "rest_warnings": {
                                                            "type": "array",
                                                            "description": "code, km_from_start, message — e.g. no_parking_in_window when a stop had to be placed at the legal limit."
                                                        },
                                                        "fuel_stations": {
                                                            "type": "array",
                                                            "description": "name, brand, lat, lon, country, km_from_start, distance_from_route_km, detour_km, prices[] (fuel_type, price, currency, stale), price_updated_at. A fuel price last confirmed more than 90 days ago is not returned (the same rule as the fuel products; see Price age on the fuel-stations page)."
                                                        },
                                                        "parkings": {
                                                            "type": "array",
                                                            "description": "name, type (parking, rest_area, truck_stop, autohof), lat, lon, country, km_from_start, distance_from_route_km, detour_km, capacity, capacity_trucks (official truck spaces where known, e.g. German motorway rest areas), secure, amenities[], opening_hours."
                                                        },
                                                        "weigh_stations": {
                                                            "type": "array",
                                                            "description": "name, lat, lon, country, km_from_start, distance_from_route_km, detour_km, type and side (null when not known)."
                                                        },
                                                        "coverage": {
                                                            "description": "corridor_km, countries_on_route, fuel_grades, fuel countries with sparse or no price data, truncated lists, measured_at."
                                                        },
                                                        "resolved_locations": {
                                                            "description": "Only with from_city/to_city: query, lat, lon, label of the geocoded point."
                                                        },
                                                        "disclaimer": {
                                                            "description": "The rest plan is a planning aid, not a tachograph record or legal advice."
                                                        },
                                                        "attribution": {
                                                            "description": "List of credits to display: always \"Data by nakordoni.eu\"; plus \"Weigh stations: © OpenStreetMap contributors (ODbL)\" whenever weigh_stations is non-empty."
                                                        }
                                                    }
                                                },
                                                "api_version": {
                                                    "description": "v2 is unchanged. v3 (/api/v3/data/truck-route) adds the eCherha border wait and registration_* fields above, and the rest planner treats a border wait as time spent at the border: a long queue counts as the break, daily rest or weekly rest that was due (counts_as on the waits[] row) instead of being added on top."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v3/data/truck-route": {
            "get": {
                "tags": [
                    "truck-route"
                ],
                "summary": "Truck Route API",
                "description": "Truck routing API with fuel stations and truck parking along the route, plus weigh stations and a driver rest plan. Send origin, destination and your vehicle (height, weight, length, width, axle load, hazmat) and get an HGV-legal route with the restrictions and dated truck driving bans it meets, the border crossings on it with their live wait, priced fuel stations, truck parkings (secure flag, capacity, amenities) and weighbridges within a corridor of the line. With include=rest the EU 561/2006 rules are applied to your driver state: 45-minute breaks at most 4 h 30 apart, daily rests before the 9 h / 10 h limit, each placed at a real parking before the limit is reached, weekend and holiday bans waited out, border waits on the timeline, single or double crew — and the ETA includes all of it. The rest plan is a planning aid, not a tachograph record. include=fuel_plan plans where to refuel and how many litres for your tank.\n\nExample: `/api/v3/data/truck-route?from=52.2297,21.0122&to=52.52,13.405&weight=40&height=4&axles=5&emission_class=euro6&crew=1`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/truck-route",
                "operationId": "truckRouteV3",
                "parameters": [
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "Origin as lat,lon (required unless from_city is given), e.g. 52.2297,21.0122",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "required": false,
                        "description": "Destination as lat,lon (required unless to_city is given)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "from_city",
                        "in": "query",
                        "required": false,
                        "description": "Origin city name instead of coordinates (add from_country for accuracy)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "from_country",
                        "in": "query",
                        "required": false,
                        "description": "ISO 3166-1 alpha-2 country of from_city, e.g. PL",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to_city",
                        "in": "query",
                        "required": false,
                        "description": "Destination city name instead of coordinates",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to_country",
                        "in": "query",
                        "required": false,
                        "description": "ISO 3166-1 alpha-2 country of to_city",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "via",
                        "in": "query",
                        "required": false,
                        "description": "Up to 5 waypoints as lat,lon|lat,lon",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "vehicle_type",
                        "in": "query",
                        "required": false,
                        "description": "truck (default). Deprecated value: motorhome, still accepted for existing integrations; new integrations use the Motorhome Route API (GET /api/v2/data/motorhome-route).",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "truck",
                                "motorhome"
                            ],
                            "default": "truck"
                        }
                    },
                    {
                        "name": "height",
                        "in": "query",
                        "required": false,
                        "description": "Vehicle height in metres (1.0–5.0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "weight",
                        "in": "query",
                        "required": false,
                        "description": "Gross vehicle weight in tonnes (1–60); drives weight-limited restrictions and bans",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "length",
                        "in": "query",
                        "required": false,
                        "description": "Vehicle length in metres (2–30)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "width",
                        "in": "query",
                        "required": false,
                        "description": "Vehicle width in metres (1.0–3.5)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "axle_load",
                        "in": "query",
                        "required": false,
                        "description": "Axle load in tonnes (1–20)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "axles",
                        "in": "query",
                        "required": false,
                        "description": "Number of axles, tractor plus trailer (2–12); used for routing and for toll classes (default for tolls: 5 from 18 t, 3 from 12 t, else 2)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "trailers",
                        "in": "query",
                        "required": false,
                        "description": "Number of trailers (0–3); reported back, no routing effect yet",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "hazmat",
                        "in": "query",
                        "required": false,
                        "description": "Dangerous goods: 0 (default), 1 = ADR load with class not given, or a comma list of ADR classes 1–9 and/or explosive, gas, flammable, flammable_solid, oxidizing, poison, radioactive, corrosive, harmful_to_water",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "adr_tunnel",
                        "in": "query",
                        "required": false,
                        "description": "ADR tunnel restriction code of the load: B, C, D or E. Tunnels whose category forbids it are avoided (implies hazmat)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "avoid",
                        "in": "query",
                        "required": false,
                        "description": "Comma list of tolls, ferries, motorways, borders, tunnels, unpaved, low_emission_zones",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "emission_class",
                        "in": "query",
                        "required": false,
                        "description": "Vehicle emission class euro0 … euro6; used for low-emission-zone checks and toll notes (tolls are priced at Euro VI rates)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "alternatives",
                        "in": "query",
                        "required": false,
                        "description": "Number of alternative routes, 0–2 (default 0; routes without via points only)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "geometry",
                        "in": "query",
                        "required": false,
                        "description": "polyline5 (default), polyline6 or geojson",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "arrive_at",
                        "in": "query",
                        "required": false,
                        "description": "Wanted arrival as RFC 3339; the departure is planned backwards including breaks and rests (instead of depart_at)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "route_type",
                        "in": "query",
                        "required": false,
                        "description": "fastest (default) or eco",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "include",
                        "in": "query",
                        "required": false,
                        "description": "Comma list of fuel, parking, weigh, rest (default: all four); add fuel_plan (never in the default, needs tank_l) for refuelling stops",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "corridor_km",
                        "in": "query",
                        "required": false,
                        "description": "Max distance from the route for fuel, parking and weigh stations, 0.2–5 km (default 2)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "fuel",
                        "in": "query",
                        "required": false,
                        "description": "Fuel grades to price, comma list (default diesel)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "tank_l",
                        "in": "query",
                        "required": false,
                        "description": "include=fuel_plan: usable tank size in litres, 20–1500 (required with fuel_plan)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "consumption_l100",
                        "in": "query",
                        "required": false,
                        "description": "include=fuel_plan: consumption in litres per 100 km, 3–60 (default 30)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "start_fuel_pct",
                        "in": "query",
                        "required": false,
                        "description": "include=fuel_plan: tank level at departure in %, 5–100 (default 100)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "reserve_pct",
                        "in": "query",
                        "required": false,
                        "description": "include=fuel_plan: the plan never lets the tank drop below this %, 5–50 (default 15). The grade planned is the first one in fuel",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "rest_every_min",
                        "in": "query",
                        "required": false,
                        "description": "Deprecated: only with vehicle_type=motorhome and include=rest (legacy). Documented in the Motorhome Route API (motorhome-route).",
                        "schema": {
                            "type": "string"
                        },
                        "deprecated": true
                    },
                    {
                        "name": "break_min",
                        "in": "query",
                        "required": false,
                        "description": "Deprecated: only with vehicle_type=motorhome and include=rest (legacy). Documented in the Motorhome Route API (motorhome-route).",
                        "schema": {
                            "type": "string"
                        },
                        "deprecated": true
                    },
                    {
                        "name": "day_drive_max_min",
                        "in": "query",
                        "required": false,
                        "description": "Deprecated: only with vehicle_type=motorhome and include=rest (legacy). Documented in the Motorhome Route API (motorhome-route).",
                        "schema": {
                            "type": "string"
                        },
                        "deprecated": true
                    },
                    {
                        "name": "night_min",
                        "in": "query",
                        "required": false,
                        "description": "Deprecated: only with vehicle_type=motorhome and include=rest (legacy). Documented in the Motorhome Route API (motorhome-route).",
                        "schema": {
                            "type": "string"
                        },
                        "deprecated": true
                    },
                    {
                        "name": "night_start_after",
                        "in": "query",
                        "required": false,
                        "description": "Deprecated: only with vehicle_type=motorhome and include=rest (legacy). Documented in the Motorhome Route API (motorhome-route).",
                        "schema": {
                            "type": "string"
                        },
                        "deprecated": true
                    },
                    {
                        "name": "night_end_not_before",
                        "in": "query",
                        "required": false,
                        "description": "Deprecated: only with vehicle_type=motorhome and include=rest (legacy). Documented in the Motorhome Route API (motorhome-route).",
                        "schema": {
                            "type": "string"
                        },
                        "deprecated": true
                    },
                    {
                        "name": "goods_or_towing",
                        "in": "query",
                        "required": false,
                        "description": "Deprecated: only with vehicle_type=motorhome and include=rest (legacy). Documented in the Motorhome Route API (motorhome-route).",
                        "schema": {
                            "type": "string"
                        },
                        "deprecated": true
                    },
                    {
                        "name": "depart_at",
                        "in": "query",
                        "required": false,
                        "description": "Departure as ISO 8601 with time zone, up to 14 days ahead (default: now)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "aliases",
                        "in": "query",
                        "required": false,
                        "description": "Accepted for easy switching: depart → depart_at, departAt, arriveAt, vehicleHeight, vehicleWidth, vehicleLength, vehicleWeight (kg or t), vehicleAxleWeight / axleWeight → axle_load, vehicleNumberOfAxles / axleCount → axles, vehicleTrailers → trailers, vehicleAdrTunnelRestrictionCode → adr_tunnel, vehicleEmissionClass → emission_class, maxAlternatives → alternatives, waypoints → via",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "crew",
                        "in": "query",
                        "required": false,
                        "description": "1 (default) or 2 drivers — double crew uses the 30-hour daily rest window and 9 h rests",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "traffic",
                        "in": "query",
                        "required": false,
                        "description": "forecast (default), live or off. forecast = learned recurring congestion + live traffic near the departure + roadworks, closures and weather at the passing time; live = current traffic without the learned pattern; off = no traffic layer (free-flow drive time)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "driven_since_break_min",
                        "in": "query",
                        "required": false,
                        "description": "Driver state: minutes driven since the last 45-minute break (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "driven_today_min",
                        "in": "query",
                        "required": false,
                        "description": "Driver state: minutes driven since the last daily rest (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "driven_week_min",
                        "in": "query",
                        "required": false,
                        "description": "Driver state: minutes driven this calendar week (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "driven_last_week_min",
                        "in": "query",
                        "required": false,
                        "description": "Driver state: minutes driven last week, for the 90 h fortnight limit (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "reduced_daily_rests_used",
                        "in": "query",
                        "required": false,
                        "description": "Reduced (9 h) daily rests already taken since the last weekly rest, 0–3 (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "extended_days_used",
                        "in": "query",
                        "required": false,
                        "description": "10-hour driving days already used this week, 0–2 (default 0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "last_weekly_rest_end",
                        "in": "query",
                        "required": false,
                        "description": "ISO 8601 end of the last weekly rest (default: assumed just before departure)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "reduced_weekly_ok",
                        "in": "query",
                        "required": false,
                        "description": "1 = a reduced (24 h) weekly rest may be planned (default 0 = regular 45 h)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language code for names and messages (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "route": {
                                                            "description": "distance_m, duration_s (pure driving), geometry (format in geometry_format), bbox, countries (ISO codes in order), departure_at, toll_distance_m, fuel_l, ascent_m, descent_m, legal, avoid; with arrive_at also arrive_at_requested.",
                                                            "type": "object",
                                                            "properties": {
                                                                "country_split": {
                                                                    "type": "array",
                                                                    "description": "Per country in route order: country, km, duration_min."
                                                                },
                                                                "adr": {
                                                                    "description": "Only with adr_tunnel: tunnel_code, tunnels_avoided[] and tunnels_on_route[] (name, category, lat, lon)."
                                                                },
                                                                "low_emission_zones_avoided": {
                                                                    "type": "array",
                                                                    "description": "Only with avoid=low_emission_zones: zones the route was moved out of (name, country); low_emission_zones_on_route[] lists any that could not be avoided."
                                                                },
                                                                "restriction_hits": {
                                                                    "type": "array",
                                                                    "description": "Restrictions for this vehicle still on the line: kind, name, country, at_km. A zone that holds one of your via points is entered only on the legs into and out of that via: it is listed with exempt=true and reason=via_inside_zone and does not make route.legal false."
                                                                },
                                                                "truck_bans": {
                                                                    "type": "array",
                                                                    "description": "Dated truck driving bans on the route: name, kind, country, details, min_weight_t, window_from, window_to, eta_at_ban (on the traffic forecast timeline), eta_at_ban_free (free-flow timeline), km_from_start, applies, active, avoided."
                                                                },
                                                                "border_crossings": {
                                                                    "type": "array",
                                                                    "description": "Crossings on the route: name, ppid, from_country, to_country, lat, lon, km_from_start, status; wait_min = time on the exit side + the entry side at the planned arrival (wait_at), null when neither side is measured (wait_minutes = same value, legacy name); wait_sides[] (side country, role exit|entry, ppid, min, basis live|forecast, note when not measured); wait_notes[]; wait_capped (a side over 48 h is planned at 48 h); registration_required = an electronic-queue lane: register before arriving. v2: the time to get a slot is not included in the wait. v3: Ukraine-exit truck lanes use the eCherha published wait as wait_min (fresh data only, never capped; entry side included; stale = wait_min null + warning echerha_wait_unverified) and add registration_wait_minutes, registration_wait_source (echerha), registration_wait_at, registration_note (localized) and registration_url."
                                                                },
                                                                "warnings": {
                                                                    "type": "array",
                                                                    "description": "code and message, e.g. ban_avoidance_skipped, restrictions_on_route, adr_tunnel_on_route, adr_tunnel_not_checked, low_emission_zone_on_route, closure_on_route (a full motorway closure overlaps the passing time), tolls_not_fully_avoided, arrive_at_not_reachable."
                                                                },
                                                                "closures_on_route": {
                                                                    "type": "array",
                                                                    "description": "German motorways: closures, roadworks and traffic warnings within 150 m of the line whose time window overlaps the moment the truck passes: type (closure, roadwork, warning), road, title, km_from_start, eta, from, to, full_closure, lorry_specific (text names lorries or a weight limit), lat, lon. The route is not changed around them."
                                                                }
                                                            }
                                                        },
                                                        "tolls": {
                                                            "description": "Estimated truck tolls: currency (EUR), total_eur, complete, by_country[] (country, km_toll, cost_eur, basis), objects[] (priced tunnels and bridges: name, type, country, lat, lon, cost_eur, basis), estimate, coverage_note. A country we cannot price has cost_eur null and is named in coverage_note."
                                                        },
                                                        "vehicle": {
                                                            "description": "The vehicle as understood: height_m, weight_t, length_m, width_m, axle_load_t, hazmat, axles, trailers, adr_classes, adr_tunnel, emission_class, type (truck)."
                                                        },
                                                        "alternatives": {
                                                            "type": "array",
                                                            "description": "Only with alternatives: distance_m, duration_s, forecast_duration_s (with traffic), tolls (currency, total_eur, complete, by_country) and geometry for each alternative route. Alternatives are planned without time-dependent restrictions and are not ban-checked; the main route is. Empty when no reasonable alternative exists."
                                                        },
                                                        "traffic_forecast": {
                                                            "description": "Unless traffic=off: model, mode, duration_base, duration_s_free, duration_s_forecast, delay_s (recurring, live, roadworks, weather, total), hotspots[] (km_from_start, km_to, eta, delay_s, reason recurring|live|roadworks|lane_closure|closure|weather, label, road, confidence low|medium|high, dow_hour, delay_by_reason, country; jam_frequency and road_condition where known), weather_on_route[], closures_avoided[], recommended_alternative (a forecast-faster alternative is only recommended — the primary route is never swapped), coverage (how much data backed the plan, with a note), calc_ms. The forecast timeline drives the ETA, rest plan, ban timing and border-wait timing. A planning estimate; data collection started in September 2026."
                                                        },
                                                        "rest_plan": {
                                                            "type": "array",
                                                            "description": "EU 561/2006 stops in order: type (break, daily_rest, weekly_rest), start_at, end_at, duration_min, km_from_start, parking (a parkings[] row or null), reason, overlaps_ban, counts_as.",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "in_vehicle_allowed": {
                                                                        "description": "v3, on daily and weekly rest stops: false for a regular weekly rest (45 h or more) and for any weekly rest of more than 45 h; true for a reduced weekly rest (24 h to less than 45 h) and for daily rests. accommodation_required has the opposite value. rule = EU 561/2006 Art. 8(8) as amended by 2020/1054."
                                                                    },
                                                                    "accommodation": {
                                                                        "type": "array",
                                                                        "description": "v3, on weekly rest stops: parkings with rooms on site near the stop (route-plan: the driving window of places[]; truck-route: 45 min of driving before to 15 min after) — name, type, country, lat, lon, at_km, offset_min, off_route_km, rooms_on_site. Information only: the stop and its truck parking do not change."
                                                                    },
                                                                    "parking": {
                                                                        "type": "object",
                                                                        "properties": {
                                                                            "has_accommodation": {
                                                                                "description": "v3, on weekly rest stops: true when this parking (in route-plan also each places[] row) has rooms on site, i.e. a site with rooms within 300 m. nearest_accommodation_km = distance in km to the nearest accommodation[] site, or null."
                                                                            }
                                                                        }
                                                                    },
                                                                    "warning": {
                                                                        "description": "v3: no_accommodation_found when accommodation_required is true and accommodation[] is empty. Information only; the stop stays in the plan."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "fuel_plan": {
                                                            "description": "Only with include=fuel_plan: grade, tank_l, consumption_l100, start_fuel_pct, reserve_pct, stops[] (km_from_start, station = a fuel_stations[] row, litres, est_price_per_l, est_cost and currency in the station currency, est_cost_eur, price_updated_at, fuel_left_on_arrival_pct, below_reserve when no station was in range), total_litres, total_est_cost (EUR, priced stops only), total_currency, fuel_left_at_destination_pct, warnings[] (code, km_from_start, message: fuel_gap, no_station_to_destination, price_unknown). Each stop is the cheapest station per litre within range that keeps the reserve; it buys enough to reach a cheaper station further on, or the destination, else a full tank. stops is empty when the tank covers the trip."
                                                        },
                                                        "rest_warnings[] / data": {
                                                            "type": "object",
                                                            "properties": {
                                                                "route": {
                                                                    "type": "object",
                                                                    "properties": {
                                                                        "warnings[] (v3)": {
                                                                            "description": "echerha_registration (registration needed, with registration_wait_minutes) and echerha_wait_unverified (eCherha wait missing or older than 3 h)."
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "waits": {
                                                            "type": "array",
                                                            "description": "Forced waits on the timeline: ban_wait (a driving ban) and border_wait, same shape as rest_plan."
                                                        },
                                                        "eta": {
                                                            "description": "Arrival time including driving, breaks, rests, ban waits and border waits; with driving_time_min, total_time_min and crew."
                                                        },
                                                        "weekly_rest_check": {
                                                            "description": "next_weekly_rest_due_by, weekly_rest_on_trip, driven_week_min_at_arrival, driven_fortnight_min_at_arrival, weekly and fortnight limits, reduced rests and 10 h days used at arrival."
                                                        },
                                                        "assumptions": {
                                                            "type": "array",
                                                            "description": "Defaults applied to driver state you did not send, and country rules not planned for."
                                                        },
                                                        "rest_warnings": {
                                                            "type": "array",
                                                            "description": "code, km_from_start, message — e.g. no_parking_in_window when a stop had to be placed at the legal limit."
                                                        },
                                                        "fuel_stations": {
                                                            "type": "array",
                                                            "description": "name, brand, lat, lon, country, km_from_start, distance_from_route_km, detour_km, prices[] (fuel_type, price, currency, stale), price_updated_at. A fuel price last confirmed more than 90 days ago is not returned (the same rule as the fuel products; see Price age on the fuel-stations page)."
                                                        },
                                                        "parkings": {
                                                            "type": "array",
                                                            "description": "name, type (parking, rest_area, truck_stop, autohof), lat, lon, country, km_from_start, distance_from_route_km, detour_km, capacity, capacity_trucks (official truck spaces where known, e.g. German motorway rest areas), secure, amenities[], opening_hours."
                                                        },
                                                        "weigh_stations": {
                                                            "type": "array",
                                                            "description": "name, lat, lon, country, km_from_start, distance_from_route_km, detour_km, type and side (null when not known)."
                                                        },
                                                        "coverage": {
                                                            "description": "corridor_km, countries_on_route, fuel_grades, fuel countries with sparse or no price data, truncated lists, measured_at."
                                                        },
                                                        "resolved_locations": {
                                                            "description": "Only with from_city/to_city: query, lat, lon, label of the geocoded point."
                                                        },
                                                        "disclaimer": {
                                                            "description": "The rest plan is a planning aid, not a tachograph record or legal advice."
                                                        },
                                                        "attribution": {
                                                            "description": "List of credits to display: always \"Data by nakordoni.eu\"; plus \"Weigh stations: © OpenStreetMap contributors (ODbL)\" whenever weigh_stations is non-empty."
                                                        }
                                                    }
                                                },
                                                "api_version": {
                                                    "description": "v2 is unchanged. v3 (/api/v3/data/truck-route) adds the eCherha border wait and registration_* fields above, and the rest planner treats a border wait as time spent at the border: a long queue counts as the break, daily rest or weekly rest that was due (counts_as on the waits[] row) instead of being added on top."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/motorhome-route": {
            "get": {
                "tags": [
                    "motorhome-route"
                ],
                "summary": "Motorhome Route API",
                "description": "Motorhome routing API for private motorhomes (beta). Send origin, destination, weight and the size of your motorhome and get a route that keeps to every height, weight, width, length and axle-load limit and every \"no trucks\" / weight-category sign, with motorhome tolls priced per country (VAT included, truck rates never used), motorhome speed limits per country and weight class in the ETA, campsites, camper stops, parkings and priced fuel stations along the line, border crossings with their wait, and dated driving bans that still apply to your weight. include=rest gives a motorhome break and overnight plan (recommendations, not EU 561/2006); include=fuel_plan plans where to refuel. Same engine and same answer as the Truck Route API with vehicle_type=motorhome, with its own daily allowance.\n\nExample: `/api/v2/data/motorhome-route?from=47.8095,13.0550&to=46.0569,14.5058&weight=4.8&height=3.2&length=7.65&width=2.34&axles=2`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/motorhome-route",
                "operationId": "motorhomeRouteV2",
                "parameters": [
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "Origin as lat,lon (required unless from_city is given), e.g. 52.2297,21.0122",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "required": false,
                        "description": "Destination as lat,lon (required unless to_city is given)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "from_city",
                        "in": "query",
                        "required": false,
                        "description": "Origin city name instead of coordinates (add from_country for accuracy)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "from_country",
                        "in": "query",
                        "required": false,
                        "description": "ISO 3166-1 alpha-2 country of from_city, e.g. PL",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to_city",
                        "in": "query",
                        "required": false,
                        "description": "Destination city name instead of coordinates",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to_country",
                        "in": "query",
                        "required": false,
                        "description": "ISO 3166-1 alpha-2 country of to_city",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "via",
                        "in": "query",
                        "required": false,
                        "description": "Up to 5 waypoints as lat,lon|lat,lon",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "vehicle_type",
                        "in": "query",
                        "required": false,
                        "description": "Optional. motorhome (the default and only value). Any other value, e.g. truck, is rejected with 400; use truck-route for trucks.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "height",
                        "in": "query",
                        "required": false,
                        "description": "Vehicle height in metres (1.0–5.0)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "weight",
                        "in": "query",
                        "required": false,
                        "description": "Gross vehicle weight in tonnes (1–60), required: speed limits, signs, toll classes and bans depend on it",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "length",
                        "in": "query",
                        "required": false,
                        "description": "Vehicle length in metres (2–30)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "width",
                        "in": "query",
                        "required": false,
                        "description": "Vehicle width in metres (1.0–3.5)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "axle_load",
                        "in": "query",
                        "required": false,
                        "description": "Axle load in tonnes (1–20)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "axles",
                        "in": "query",
                        "required": false,
                        "description": "Number of axles (2–12); used for routing and for motorhome toll classes",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "trailers",
                        "in": "query",
                        "required": false,
                        "description": "Number of trailers (0–3); a trailer changes which bans apply (Austria and Slovakia) and toll classes",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "hazmat",
                        "in": "query",
                        "required": false,
                        "description": "Dangerous goods: 0 (default), 1 = ADR load with class not given, or a comma list of ADR classes 1–9 and/or explosive, gas, flammable, flammable_solid, oxidizing, poison, radioactive, corrosive, harmful_to_water",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "adr_tunnel",
                        "in": "query",
                        "required": false,
                        "description": "ADR tunnel restriction code of the load: B, C, D or E. Tunnels whose category forbids it are avoided (implies hazmat)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "avoid",
                        "in": "query",
                        "required": false,
                        "description": "Comma list of tolls, ferries, motorways, borders, tunnels, unpaved, low_emission_zones",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "emission_class",
                        "in": "query",
                        "required": false,
                        "description": "Vehicle emission class euro0 … euro6; used for low-emission-zone checks and distance-toll rates (AT, CZ, SI, BG; Euro 6 assumed when not sent)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "alternatives",
                        "in": "query",
                        "required": false,
                        "description": "Number of alternative routes, 0–2 (default 0; routes without via points only)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "geometry",
                        "in": "query",
                        "required": false,
                        "description": "polyline5 (default), polyline6 or geojson",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "arrive_at",
                        "in": "query",
                        "required": false,
                        "description": "Wanted arrival as RFC 3339; the departure is planned backwards including breaks and rests (instead of depart_at)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "route_type",
                        "in": "query",
                        "required": false,
                        "description": "fastest (default) or eco",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "include",
                        "in": "query",
                        "required": false,
                        "description": "Comma list of fuel, parking, rest (default: fuel, parking). rest = the motorhome break and overnight plan (only when sent). weigh is not offered (warning include_not_available). Add fuel_plan (needs tank_l) for refuelling stops",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "corridor_km",
                        "in": "query",
                        "required": false,
                        "description": "Max distance from the route for fuel, parking and weigh stations, 0.2–5 km (default 2)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "fuel",
                        "in": "query",
                        "required": false,
                        "description": "Fuel grades to price, comma list (default diesel)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "tank_l",
                        "in": "query",
                        "required": false,
                        "description": "include=fuel_plan: usable tank size in litres, 20–1500 (required with fuel_plan)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "consumption_l100",
                        "in": "query",
                        "required": false,
                        "description": "include=fuel_plan: consumption in litres per 100 km, 3–60 (default 13)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "start_fuel_pct",
                        "in": "query",
                        "required": false,
                        "description": "include=fuel_plan: tank level at departure in %, 5–100 (default 100)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "reserve_pct",
                        "in": "query",
                        "required": false,
                        "description": "include=fuel_plan: the plan never lets the tank drop below this %, 5–50 (default 15). The grade planned is the first one in fuel",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "rest_every_min",
                        "in": "query",
                        "required": false,
                        "description": "include=rest: a break after at most this many minutes of driving, 60–300 (default 150, a recommendation: private motorhomes up to 7.5 t have no binding driving-time law)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "break_min",
                        "in": "query",
                        "required": false,
                        "description": "include=rest: break length in minutes, 5–120 (default 20)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "day_drive_max_min",
                        "in": "query",
                        "required": false,
                        "description": "include=rest: overnight stop when the day's driving reaches this many minutes, 120–720 (default 540 = 9 h, a recommendation, not a legal limit)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "night_min",
                        "in": "query",
                        "required": false,
                        "description": "include=rest: minimum overnight stop length in minutes, 60–900 (default 600)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "night_start_after",
                        "in": "query",
                        "required": false,
                        "description": "include=rest: HH:MM local time, 12:00–21:30 (default 17:00). When the day would run past 22:00, the overnight stop is placed at a parking reached between this time and 22:00 (local time at the stop), within the break and daily-driving limits",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "night_end_not_before",
                        "in": "query",
                        "required": false,
                        "description": "include=rest: HH:MM local time, 04:00–11:00 (default 07:00, a recommendation). An overnight stop never ends before this time at the stop location; it is lengthened instead",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "goods_or_towing",
                        "in": "query",
                        "required": false,
                        "description": "include=rest: 0 or 1 (default 0). Send 1 when the motorhome carries goods or tows (own car, trailer, horse). With weight over 7.5 t, EU 561/2006 is then applied on the EU/EEA parts of the route: a 45-minute break after at most 4 h 30 of driving, at most 9 h driving per day (the 10 h extension is not planned), a daily rest of at least 11 h; those rows have rule eu561_motorhome. The 15 + 30 split break is not planned; weekly limits are not checked. Not applied in Switzerland (low to medium confidence) and outside EU/EEA. At or below 7.5 t, or with 0, the motorhome plan is unchanged",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "depart_at",
                        "in": "query",
                        "required": false,
                        "description": "Departure as ISO 8601 with time zone, up to 14 days ahead (default: now)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "aliases",
                        "in": "query",
                        "required": false,
                        "description": "Accepted for easy switching: depart → depart_at, departAt, arriveAt, vehicleHeight, vehicleWidth, vehicleLength, vehicleWeight (kg or t), vehicleAxleWeight / axleWeight → axle_load, vehicleNumberOfAxles / axleCount → axles, vehicleTrailers → trailers, vehicleAdrTunnelRestrictionCode → adr_tunnel, vehicleEmissionClass → emission_class, maxAlternatives → alternatives, waypoints → via",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "traffic",
                        "in": "query",
                        "required": false,
                        "description": "forecast (default), live or off. forecast = learned recurring congestion + live traffic near the departure + roadworks, closures and weather at the passing time; live = current traffic without the learned pattern; off = no traffic layer (free-flow drive time)",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language code for names and messages (default en)",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "route": {
                                                            "description": "distance_m, duration_s (pure driving), geometry (format in geometry_format), bbox, countries (ISO codes in order), departure_at, toll_distance_m, fuel_l, ascent_m, descent_m, legal, avoid; with arrive_at also arrive_at_requested.",
                                                            "type": "object",
                                                            "properties": {
                                                                "country_split": {
                                                                    "type": "array",
                                                                    "description": "Per country in route order: country, km, duration_min."
                                                                },
                                                                "low_emission_zones_avoided": {
                                                                    "type": "array",
                                                                    "description": "Only with avoid=low_emission_zones: zones the route was moved out of (name, country); low_emission_zones_on_route[] lists any that could not be avoided."
                                                                },
                                                                "restriction_hits": {
                                                                    "type": "array",
                                                                    "description": "Restrictions for this vehicle still on the line: kind, name, country, at_km. A zone that holds one of your via points is entered only on the legs into and out of that via: it is listed with exempt=true and reason=via_inside_zone and does not make route.legal false."
                                                                },
                                                                "truck_bans": {
                                                                    "type": "array",
                                                                    "description": "Dated driving bans on the route with applies (false where the ban does not apply to a motorhome of this weight) and motorhome_note: name, kind, country, details, min_weight_t, window_from, window_to, eta_at_ban, eta_at_ban_free, km_from_start, applies, active, avoided."
                                                                },
                                                                "border_crossings": {
                                                                    "type": "array",
                                                                    "description": "Crossings on the route: name, ppid, from_country, to_country, lat, lon, km_from_start, status; wait_min = time on the exit side + the entry side at the planned arrival (wait_at), null when neither side is measured (wait_minutes = same value, legacy name); wait_sides[] (side country, role exit|entry, ppid, min, basis live|forecast, note when not measured); wait_notes[]; wait_capped (a side over 48 h is planned at 48 h); registration_required = an electronic-queue lane: register before arriving. v2: the time to get a slot is not included in the wait. v3: Ukraine-exit truck lanes use the eCherha published wait as wait_min (fresh data only, never capped; entry side included; stale = wait_min null + warning echerha_wait_unverified) and add registration_wait_minutes, registration_wait_source (echerha), registration_wait_at, registration_note (localized) and registration_url."
                                                                },
                                                                "warnings": {
                                                                    "type": "array",
                                                                    "description": "code and message, e.g. motorhome_beta, include_not_available, restrictions_on_route, low_emission_zone_on_route, closure_on_route, tolls_not_fully_avoided, arrive_at_not_reachable."
                                                                },
                                                                "closures_on_route": {
                                                                    "type": "array",
                                                                    "description": "German motorways: closures, roadworks and traffic warnings within 150 m of the line whose time window overlaps the moment the truck passes: type (closure, roadwork, warning), road, title, km_from_start, eta, from, to, full_closure, lorry_specific (text names lorries or a weight limit), lat, lon. The route is not changed around them."
                                                                }
                                                            }
                                                        },
                                                        "tolls": {
                                                            "description": "Motorhome tolls: currency (EUR), priced true, vat included, total_eur, complete, by_country[] for every country on the line (country, system: none, exempt, vignette, distance, flat_daily or section; category, km_toll, amount in EUR incl. VAT or null when not priced yet, currency, priced, status confirmed or likely, tariff, period for vignettes, reference = official operator page, note), objects[] (bridges with their own toll, priced per crossing), coverage_note. complete is false when any country or crossing is not priced. Classes follow weight (up to / over 3.5 t), height and axles. Truck (HGV) rates are never used."
                                                        },
                                                        "vehicle": {
                                                            "description": "The vehicle as understood: height_m, weight_t, length_m, width_m, axle_load_t, axles, trailers, emission_class, type = motorhome, beta: true and beta_note."
                                                        },
                                                        "alternatives": {
                                                            "type": "array",
                                                            "description": "Only with alternatives: distance_m, duration_s, forecast_duration_s (with traffic), tolls (currency, total_eur, complete, by_country) and geometry for each alternative route. Alternatives are planned without time-dependent restrictions and are not ban-checked; the main route is. Empty when no reasonable alternative exists."
                                                        },
                                                        "traffic_forecast": {
                                                            "description": "Unless traffic=off: model, mode, duration_base, duration_s_free, duration_s_forecast, delay_s (recurring, live, roadworks, weather, total), hotspots[] (km_from_start, km_to, eta, delay_s, reason recurring|live|roadworks|lane_closure|closure|weather, label, road, confidence low|medium|high, dow_hour, delay_by_reason, country; jam_frequency and road_condition where known), weather_on_route[], closures_avoided[], recommended_alternative (a forecast-faster alternative is only recommended — the primary route is never swapped), coverage (how much data backed the plan, with a note), calc_ms. The forecast timeline drives the ETA, rest plan, ban timing and border-wait timing. A planning estimate; data collection started in September 2026."
                                                        },
                                                        "rest_plan": {
                                                            "type": "array",
                                                            "description": "Only with include=rest (motorhome recommendations, not EU 561/2006): type break or overnight, start_at, end_at, duration_min, km_from_start, parking (a parkings[] row or null), reason, rule (motorhome, or eu561_motorhome with goods_or_towing=1 over 7.5 t in EU/EEA), drive_before_min, tz (time zone of the stop), start_local and end_local (local time at the stop), warning (no_parking_in_window when no parking was found before the stop was due; the stop is then at the due point). Stops are placed at the most suitable parking before they are due, never later: rest areas, Autohof and truck stops with services first, lorry-only parkings last; overnight stops prefer toilets, showers, water, RV dump and electricity. Overnight rows also carry country (ISO 3166-1 alpha-2), hint (overnight-parking hint for that country in English, or null) and hint_confidence (high, medium, low or null). Hints are information from secondary sources, not legal advice and never a ban; local signs and municipal rules apply. Examples: PT 48 h in the same municipality, not in protected, Natura 2000 or coastal zones; NL municipal, usually up to 3 days; DE one night to restore fitness to drive; DE, ES, FR, IT, NL and DK no camping setup (awning, chairs, tables). In HR, SI, IS and ME (low confidence) campsites, aires and camper stops in our parking data rank first for the overnight stop; other parkings are still used when none is in reach. Default values (150 min, 9 h, 07:00) are recommendations, not legal limits."
                                                        },
                                                        "assumptions": {
                                                            "type": "array",
                                                            "description": "With include=rest: the break and overnight values used (sent or default) and how stops are placed, in plain text."
                                                        },
                                                        "rest_warnings": {
                                                            "type": "array",
                                                            "description": "With include=rest: code, km_from_start, message, e.g. no_parking_in_window when a stop had to be placed at the due point."
                                                        },
                                                        "fuel_plan": {
                                                            "description": "Only with include=fuel_plan: grade, tank_l, consumption_l100, start_fuel_pct, reserve_pct, stops[] (km_from_start, station = a fuel_stations[] row, litres, est_price_per_l, est_cost and currency in the station currency, est_cost_eur, price_updated_at, fuel_left_on_arrival_pct, below_reserve when no station was in range), total_litres, total_est_cost (EUR, priced stops only), total_currency, fuel_left_at_destination_pct, warnings[] (code, km_from_start, message: fuel_gap, no_station_to_destination, price_unknown). Each stop is the cheapest station per litre within range that keeps the reserve; it buys enough to reach a cheaper station further on, or the destination, else a full tank. stops is empty when the tank covers the trip."
                                                        },
                                                        "waits": {
                                                            "type": "array",
                                                            "description": "Forced waits on the timeline: ban_wait (a driving ban) and border_wait, same shape as rest_plan."
                                                        },
                                                        "eta": {
                                                            "description": "Arrival time including driving, the motorhome breaks and overnight stops (include=rest), ban waits and border waits; with driving_time_min and total_time_min."
                                                        },
                                                        "fuel_stations": {
                                                            "type": "array",
                                                            "description": "name, brand, lat, lon, country, km_from_start, distance_from_route_km, detour_km, prices[] (fuel_type, price, currency, stale), price_updated_at. A fuel price last confirmed more than 90 days ago is not returned (the same rule as the fuel products; see Price age on the fuel-stations page)."
                                                        },
                                                        "parkings": {
                                                            "type": "array",
                                                            "description": "name, type (parking, rest_area, truck_stop, autohof, campsite, camper_stop), lat, lon, country, km_from_start, distance_from_route_km, detour_km, capacity, secure, amenities[], opening_hours; id = the ext_id of this place for the POI Opinion API (ext_source parking: opinions with stars and recommend, overnight votes, photos, videos); user opinions, overnight_votes and photos where we hold them (approved content only); camper_summary on some rows = our summary of what users say about the place. Sending include replaces the default (fuel, parking): with include=rest also send parking (include=parking,rest) to keep parkings[]. rest_plan[].parking is the same row with the same id."
                                                        },
                                                        "coverage": {
                                                            "description": "corridor_km, countries_on_route, fuel_grades, fuel countries with sparse or no price data, truncated lists, measured_at."
                                                        },
                                                        "resolved_locations": {
                                                            "description": "Only with from_city/to_city: query, lat, lon, label of the geocoded point."
                                                        },
                                                        "disclaimer": {
                                                            "description": "The rest plan is a planning aid with recommended values, not legal advice."
                                                        },
                                                        "attribution": {
                                                            "description": "List of credits to display: always \"Data by nakordoni.eu\"."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/fleet/vehicles": {
            "get": {
                "tags": [
                    "fleet-vehicles"
                ],
                "summary": "Fleet Vehicles API",
                "description": "Your own NakBus Live fleet: every vehicle registered to your company with plate, label, assigned route, public-map flag, status, whether a driver device is currently on shift, and the last measured timetable delay. Owner-scoped — the key sees its own fleet only, including vehicles hidden from the public bus map. Activate fleet tracking at nakordoni.eu/en/developers/fleet (first bus free).\n\nExample: `/api/v2/data/fleet/vehicles`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/fleet-vehicles",
                "operationId": "fleetVehiclesV2",
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "company": {
                                                            "description": "Your fleet company: company_id, name, status, public_map."
                                                        },
                                                        "vehicles": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "id": {
                                                                        "description": "Vehicle ID — the value fleet-history's vehicle_id takes. plate and label identify it."
                                                                    },
                                                                    "route_id": {
                                                                        "description": "Route it is assigned to, with route_name."
                                                                    },
                                                                    "on_shift": {
                                                                        "description": "Whether it is currently in service, with status and public — whether it appears on your public map."
                                                                    },
                                                                    "last_delay_min": {
                                                                        "description": "Its last known delay, with last_delay_at."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "count": {
                                                            "description": "Vehicles returned."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/fleet/live": {
            "get": {
                "tags": [
                    "fleet-live"
                ],
                "summary": "Fleet Live Positions API",
                "description": "Where your buses are right now — one row per active vehicle with lat/lon, timestamp and age, speed, bearing and timetable delay, read from the same live store that powers the public bus map. Unlike the public feed this includes vehicles marked non-public and companies that opted out of the public map: it is your own data. Vehicles whose driver device is off shift (or silent for more than 10 minutes) are still listed, with live=false.\n\nExample: `/api/v2/data/fleet/live`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/fleet-live",
                "operationId": "fleetLiveV2",
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "vehicles": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "vehicle_id": {
                                                                        "description": "Vehicle, with plate and label."
                                                                    },
                                                                    "lat": {
                                                                        "description": "Last known position, with lon, ts, datetime and age_s — how old the fix is."
                                                                    },
                                                                    "live": {
                                                                        "description": "false = the position is stale, not moving; speed_ms and bearing_deg describe the fix itself."
                                                                    },
                                                                    "delay_min": {
                                                                        "description": "Current delay against the schedule, with route_id and public."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "count": {
                                                            "description": "Vehicles returned, with live_count — how many have a fresh fix. ts is the snapshot time and source names the feed."
                                                        },
                                                        "company": {
                                                            "description": "Your fleet company: company_id, name, status, public_map."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/fleet/history": {
            "get": {
                "tags": [
                    "fleet-history"
                ],
                "summary": "Fleet History API",
                "description": "Recorded GPS track of your own vehicles: every stored position point in a time window, in chronological order, with speed, bearing and accuracy. Filter to one vehicle or take the whole fleet. Window is limited to 31 days per call and 5000 points per response — page through longer periods by moving ?from= to the last returned timestamp.\n\nExample: `/api/v2/data/fleet/history?vehicle_id=1&from=2026-08-01T00:00:00Z&to=2026-08-02T00:00:00Z&limit=1000`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/fleet-history",
                "operationId": "fleetHistoryV2",
                "parameters": [
                    {
                        "name": "vehicle_id",
                        "in": "query",
                        "required": false,
                        "description": "Restrict to one of your vehicles (optional; ids come from fleet/vehicles). Omit for the whole fleet.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "Window start — unix timestamp or ISO-8601 datetime (default: 24 h before `to`). A datetime without an explicit offset is read as UTC.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "required": false,
                        "description": "Window end — unix timestamp or ISO-8601 datetime (default: now). The window may not exceed 31 days.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Max points returned, 1-5000 (default 1000, values above 5000 are clamped). `truncated: true` means more points exist in the window.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "points": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "vehicle_id": {
                                                                        "description": "Vehicle the fix belongs to, with plate."
                                                                    },
                                                                    "lat": {
                                                                        "description": "Position, with lon, ts, datetime (UTC) and accuracy_m."
                                                                    },
                                                                    "speed_ms": {
                                                                        "description": "Speed in m/s at the fix, with bearing_deg."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "from": {
                                                            "description": "Window actually queried, with to and limit."
                                                        },
                                                        "count": {
                                                            "description": "Points returned; truncated is true when count reached limit — continue from the last ts rather than widening the window."
                                                        },
                                                        "vehicle_id": {
                                                            "description": "The vehicle filtered to, null when the window covers the whole fleet."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/fleet/compliance/validate": {
            "post": {
                "tags": [
                    "fleet-compliance-validate"
                ],
                "summary": "Fleet Compliance — Validate API",
                "description": "Check a driver's recorded activity against EU 561/2006 (or AETR) driving and rest rules and Directive 2002/15/EC working time. Send the timeline as a JSON POST body — the current shift plus up to 28 days or more of tachograph-like history — and get every violation with its rule article, timestamp and seriousness (Regulation (EU) 2016/403 bands), warnings, and what the driver has left right now: daily driving, 56 h weekly and 90 h fortnight budgets, when the next break, daily rest and weekly rest are due, extended days and reduced rests used, and any reduced weekly rest compensation owed with its deadline. Covers 4 h 30 breaks (incl. 15 + 30 split), 9/10 h days, 11/9 h and 3 + 9 h daily rest, six 24-hour periods between weekly rests, reduced weekly rest sequences and compensation, double crew (9 h rest within 30 h), ferry/train interrupted rest, and 2002/15 48 h average, 60 h week, breaks after 6 h and the 10 h night-work cap. Since v1.1: the Art. 12 exception (up to 1 h, or 2 h after a 30 min break, past the daily and weekly limits to reach the operational centre or home for a weekly rest) with the compensation owed and its deadline, the Art. 8(8a) 4-week return to base or home, the Art. 8(6a) 12-day derogation for occasional international coach services, and national 2002/15 night windows by country. route_plan_state can be passed straight to route-plan.\n\nExample: `/api/v2/data/fleet/compliance/validate`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/fleet-compliance-validate",
                "operationId": "fleetComplianceValidateV2",
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "compliant": {
                                                            "description": "true when no violation was found; violation_count and by_severity (most_serious, very_serious, serious, minor) count them."
                                                        },
                                                        "violations": {
                                                            "type": "array",
                                                            "description": "code, ref (rule article, e.g. \"EU 561/2006 Art. 7\"), severity, at (when the limit was passed), value_min / limit_min / excess_min, period_start or week_start, open (still running at evaluation time), message. 2002/15 entries carry banded=false."
                                                        },
                                                        "warnings": {
                                                            "type": "array",
                                                            "description": "Things to act on that are not violations yet: code, message, optional ref and at (e.g. extended_day_in_use, weekly_drive_almost_used, history_short, gaps_counted_as_rest, four_week_rule_pending)."
                                                        },
                                                        "remaining": {
                                                            "type": "object",
                                                            "properties": {
                                                                "driving": {
                                                                    "description": "drive_left_now_min (the smallest of the daily, weekly and fortnight budgets), daily_drive_left_min, weekly_drive_left_min, fortnight_drive_left_min, next_break (due_after_drive_min, required_min, split_first_part_taken), next_daily_rest (regular_latest_start, reduced_latest_start, min_duration_min, overdue), next_weekly_rest (latest_start, periods_used, min_duration_min, reduced_allowed), extended_days_used_this_week, reduced_daily_rests_used, reduced_weekly_rest_compensation[] (owed_min, deadline, basis), compensation_owed_min, art12_compensation[] (extension_start, owed_min, deadline, how), art12_compensation_owed_min, next_weekly_rest.passenger_12day_latest_start."
                                                                },
                                                                "working_time": {
                                                                    "description": "2002/15: week_work_left_min, worked_this_week_min, reference_period (average, budget_left_min), shift (work_min, breaks_min, next_break_due_after_work_min, night_work_in_shift, shift_work_left_min)."
                                                                }
                                                            }
                                                        },
                                                        "route_plan_state": {
                                                            "description": "Driver state in route-plan parameter names (driven_since_break_min, driven_today_min, duty_started_min_ago, driven_week_min, driven_fortnight_min, extended_days_used, reduced_rests_used)."
                                                        },
                                                        "duty_periods": {
                                                            "type": "array",
                                                            "description": "Each duty period between daily/weekly rests: start, end, drive_min, extended, rest_type, rest_start, rest_end, rest_min (+ ferry_interruptions)."
                                                        },
                                                        "weekly_rests": {
                                                            "type": "array",
                                                            "description": "Weekly rests found: start, end, duration_min, type regular | reduced, periods_since_previous, compensation_owed_min, derogation.",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "location": {
                                                                        "description": "The location sent on that rest (residence | operational_centre | elsewhere)."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "weeks": {
                                                            "description": "Per calendar week: driving.drive_min and working_time.work_min, with complete."
                                                        },
                                                        "rolling": {
                                                            "description": "Information only: the most driving in any 168 h and 336 h window (the legal test uses calendar weeks)."
                                                        },
                                                        "assumptions": {
                                                            "type": "array",
                                                            "description": "How incomplete input was read (e.g. no weekly rest before the timeline known)."
                                                        },
                                                        "exceptions": {
                                                            "description": "art12[]: each use of the EU 561 Art. 12 exception — start, end, flagged_drive_min, max_extra_min, break_before_min, following_rest, status (accepted | pending_weekly_rest | conditions_not_met | not_needed), daily_excess_min, weekly_excess_min, compensation_owed_min, compensation_deadline, compensated_at. passenger_12day[]: from, weekly_rest_start, periods_24h, max_periods_24h."
                                                        },
                                                        "wtd": {
                                                            "type": "object",
                                                            "properties": {
                                                                "params": {
                                                                    "description": "night_window, night_window_source (param | country:CC | country_unverified:CC | default), night_window_verified, night_window_ref (national source)."
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "activities": {
                                        "description": "(JSON body, required) Driver activities, oldest first or in any order. Each activity: {type: drive | other_work | availability | break | rest, start, end} — ISO-8601 (a datetime without offset is read in tz) or unix seconds. Optional on rests: ferry (true on a ferry or train), sleeper_cabin, scheduled_journey_h, in_vehicle, location (residence | operational_centre | elsewhere — EU 561 Art. 8(8a) 4-week return check). Optional on drives: art12_exceed (true = driving past the limit under EU 561 Art. 12 to reach the operational centre or home for a weekly rest). Gaps between activities count as rest (reported in warnings); overlaps are rejected."
                                    },
                                    "history": {
                                        "description": "(JSON body) Older activities in the same format (e.g. the last 28 days from the tachograph); merged with activities."
                                    },
                                    "tz": {
                                        "description": "(JSON body) IANA time zone for calendar weeks (Monday 00:00) and the night window, default UTC."
                                    },
                                    "ruleset": {
                                        "description": "(JSON body) eu561 (default) or aetr. limits lists the AETR differences that are applied."
                                    },
                                    "crew": {
                                        "description": "(JSON body) single (default) or double (multi-manning)."
                                    },
                                    "now": {
                                        "description": "(JSON body) Evaluation time, default the end of the last activity; time after the last activity counts as rest."
                                    },
                                    "last_weekly_rest_end": {
                                        "description": "(JSON body) End of the last weekly rest before the timeline, when the timeline does not contain it."
                                    },
                                    "international_goods": {
                                        "description": "(JSON body, eu561) true = the driver is in international goods transport outside the Member State of establishment (two consecutive reduced weekly rests allowed under Art. 8(6))."
                                    },
                                    "passenger_12day": {
                                        "description": "(JSON body) true or {abroad_24h: bool} = single occasional international passenger service: weekly rest may be postponed up to twelve 24-hour periods after a regular weekly rest (EU 561 Art. 8(6a), AETR Art. 8(6)(b)); the rests after it and night driving (22:00-06:00: multi-manning or a 3 h driving period) are checked."
                                    },
                                    "country": {
                                        "description": "(JSON body) ISO country code for the national 2002/15 night window (same as wtd.country)."
                                    },
                                    "include_wtd": {
                                        "description": "(JSON body) false = skip the Directive 2002/15/EC checks (default true)."
                                    },
                                    "wtd": {
                                        "description": "(JSON body) 2002/15 options: reference_weeks 1-52 (default 17), reference_mode rolling | fixed, reference_start, night_window HH:MM-HH:MM (default 00:00-04:00), country (EU/EEA ISO code: national night window, see limits), carriage goods | passengers."
                                    }
                                }
                            },
                            "example": {
                                "tz": "Europe/Warsaw",
                                "ruleset": "eu561",
                                "crew": "single",
                                "activities": [
                                    {
                                        "type": "rest",
                                        "start": "2026-10-19T19:00:00",
                                        "end": "2026-10-20T06:00:00"
                                    },
                                    {
                                        "type": "other_work",
                                        "start": "2026-10-20T06:00:00",
                                        "end": "2026-10-20T06:20:00"
                                    },
                                    {
                                        "type": "drive",
                                        "start": "2026-10-20T06:20:00",
                                        "end": "2026-10-20T10:50:00"
                                    },
                                    {
                                        "type": "break",
                                        "start": "2026-10-20T10:50:00",
                                        "end": "2026-10-20T11:35:00"
                                    },
                                    {
                                        "type": "drive",
                                        "start": "2026-10-20T11:35:00",
                                        "end": "2026-10-20T14:00:00"
                                    }
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/api/v2/data/fleet/compliance/limits": {
            "get": {
                "tags": [
                    "fleet-compliance-limits"
                ],
                "summary": "Fleet Compliance — Limits API",
                "description": "The rule parameters the compliance checks use, as JSON, so an app can show them: EU 561/2006 (as amended by 2020/1054), AETR with its verified differences from 561, and Directive 2002/15/EC with its options, plus the Regulation (EU) 2016/403 seriousness bands. Static; cache it.\n\nExample: `/api/v2/data/fleet/compliance/limits?ruleset=aetr`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/fleet-compliance-limits",
                "operationId": "fleetComplianceLimitsV2",
                "parameters": [
                    {
                        "name": "ruleset",
                        "in": "query",
                        "required": false,
                        "description": "Optional: eu561, aetr or wtd — return one ruleset only.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "rulesets": {
                                                            "type": "object",
                                                            "properties": {
                                                                "eu561": {
                                                                    "description": "name, source, params (minutes: break_after_drive_min 270, daily_drive_min 540, weekly_drive_min 3360, …), notes[]."
                                                                },
                                                                "aetr": {
                                                                    "description": "Same params plus differences_vs_eu561_verified[] (topic, aetr, eu561), same_as_eu561, amendments_after_2010_checked (source, result, encoded[]) and unverified_todo[]."
                                                                },
                                                                "wtd_2002_15": {
                                                                    "description": "params (avg_week_max_min 2880, week_max_min 3600, reference_weeks, night window, break rules) and options."
                                                                }
                                                            }
                                                        },
                                                        "severity": {
                                                            "description": "Seriousness scale and the 2016/403 Annex I bands per infringement type."
                                                        },
                                                        "activity_types": {
                                                            "description": "Accepted activity types and rest flags for validate and plan-check."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/fleet/compliance/plan-check": {
            "post": {
                "tags": [
                    "fleet-compliance-plan-check"
                ],
                "summary": "Fleet Compliance — Plan Check API",
                "description": "Check planned shifts or trip days before dispatch. Send the shifts and the countries they run in as a JSON POST body; each shift comes back with the truck driving bans it hits (weekend, Sunday, holiday and other bans from our truck-ban calendar, filtered by vehicle weight), the public holidays and weekend days it touches, the EU 561 / AETR and 2002/15 breaches the plan would cause, and the earliest legal start: after the required daily or weekly rest and outside every blocking ban.\n\nExample: `/api/v2/data/fleet/compliance/plan-check`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/fleet-compliance-plan-check",
                "operationId": "fleetCompliancePlanCheckV2",
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "shifts": {
                                                            "type": "array",
                                                            "description": "Per shift: index, start, end, countries, duration_min, flags[], violations[], suggested_start, suggested_end, delay_min, delay_reasons[] (daily_rest, weekly_rest, truck_ban:<CC>:<type>).",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "flags": {
                                                                        "type": "array",
                                                                        "description": "type truck_ban (country, date, restriction_type, from, until, scope, details, min_weight_t, blocking, overlap_min), public_holiday (country, date, names, truck_ban_recorded) or weekend (country, date, day)."
                                                                    }
                                                                }
                                                            }
                                                        },
                                                        "violations": {
                                                            "type": "array",
                                                            "description": "Every EU 561 / AETR / 2002/15 breach of the plan, in the validate format."
                                                        },
                                                        "remaining_after_plan": {
                                                            "description": "Driving budgets and next rests after the last planned shift (validate remaining.driving)."
                                                        },
                                                        "summary": {
                                                            "description": "shift_count, shifts_flagged, shifts_moved, violation_count, ban_windows_considered, countries, ruleset, crew."
                                                        },
                                                        "warnings": {
                                                            "type": "array",
                                                            "description": "e.g. shift_layout_overflows, holidays_unavailable; data.assumptions[] says how missing input was read."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "shifts": {
                                        "description": "(JSON body, required, max 60, span max 62 days) [{start, end, countries?, drive_min?, other_work_min?, activities?}]. Without activities the shift is laid out as other work, then driving in 4 h 30 blocks with 45 min breaks. Each activity: {type: drive | other_work | availability | break | rest, start, end} — ISO-8601 (a datetime without offset is read in tz) or unix seconds. Optional on rests: ferry (true on a ferry or train), sleeper_cabin, scheduled_journey_h, in_vehicle, location (residence | operational_centre | elsewhere — EU 561 Art. 8(8a) 4-week return check). Optional on drives: art12_exceed (true = driving past the limit under EU 561 Art. 12 to reach the operational centre or home for a weekly rest). Gaps between activities count as rest (reported in warnings); overlaps are rejected."
                                    },
                                    "countries": {
                                        "description": "(JSON body) ISO country codes used for shifts that do not list their own, e.g. [\"DE\",\"AT\"]."
                                    },
                                    "tz": {
                                        "description": "(JSON body) IANA time zone of the plan (datetimes without offset), default UTC. Ban windows use each country's own time zone."
                                    },
                                    "weight_t": {
                                        "description": "(JSON body) Vehicle weight in tonnes; bans with a weight threshold at or above it are skipped. Omitted = every ban is included."
                                    },
                                    "history": {
                                        "description": "(JSON body) Recent activities before the plan (format as in validate) so rests and budgets carry over."
                                    },
                                    "last_weekly_rest_end": {
                                        "description": "(JSON body) End of the last weekly rest before the plan."
                                    },
                                    "ruleset": {
                                        "description": "(JSON body) eu561 (default) or aetr. crew single | double. international_goods, include_wtd, wtd as in validate."
                                    },
                                    "allow_reduced_daily_rest": {
                                        "description": "(JSON body) true = suggestions may use a 9 h reduced daily rest (default: 11 h)."
                                    },
                                    "allow_reduced_weekly_rest": {
                                        "description": "(JSON body) true = suggestions may use a 24 h reduced weekly rest (default: 45 h)."
                                    },
                                    "blocking_types": {
                                        "description": "(JSON body) Ban types that move a suggested start (default Sunday, Saturday, Holiday, Holiday Eve, General; nationwide bans only). Others are still flagged."
                                    }
                                }
                            },
                            "example": {
                                "countries": [
                                    "DE"
                                ],
                                "tz": "Europe/Berlin",
                                "weight_t": 40,
                                "shifts": [
                                    {
                                        "start": "2026-11-07T06:00:00",
                                        "end": "2026-11-07T16:45:00"
                                    },
                                    {
                                        "start": "2026-11-08T06:00:00",
                                        "end": "2026-11-08T15:00:00"
                                    }
                                ]
                            }
                        }
                    }
                }
            }
        },
        "/api/v2/data/bus-sun-side": {
            "get": {
                "tags": [
                    "bus-sun-side"
                ],
                "summary": "Bus Sun Side API",
                "description": "Which side of a coach gets the sun or the shade on a trip, and which seats are best for shade or for the view. The trip is walked in 5-minute steps: position and heading from the route, solar position at that place and time, then a per-seat estimate for the chosen bus layout. Use a route from our licensed-route registry (route_id), two points (from/to), or POST your own route (stops or a polyline) to also get a seat map, a route map and a timeline as images. Results are an estimate from geometry and solar position; real shade also depends on curtains, buildings, terrain and weather.\n\nExample: `/api/v2/data/bus-sun-side?route_id=521&dir=direct&date=2026-06-21&bus_model=standard_coach&lang=en`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/bus-sun-side",
                "operationId": "busSunSideV2",
                "parameters": [
                    {
                        "name": "route_id",
                        "in": "query",
                        "required": false,
                        "description": "Route id from our bus route registry (the same ids as the bus pages on nakordoni.eu). Use route_id or from+to.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "dir",
                        "in": "query",
                        "required": false,
                        "description": "direct (default) or return.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "date",
                        "in": "query",
                        "required": false,
                        "description": "Travel date YYYY-MM-DD (default today). The sun position depends on the date.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "dep",
                        "in": "query",
                        "required": false,
                        "description": "Departure time HH:MM local to the route (default: the registry timetable).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "Free form: start point lat,lon (with to).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "required": false,
                        "description": "Free form: end point lat,lon (with from).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "depart",
                        "in": "query",
                        "required": false,
                        "description": "Free form: departure YYYY-MM-DDTHH:MM, local time of the start point.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "lang",
                        "in": "query",
                        "required": false,
                        "description": "Language of the place names and texts, 25 site languages (en, uk, pl, de, …) plus hr, nl, pt. Default en.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "bus_model",
                        "in": "query",
                        "required": false,
                        "description": "Bus model id from bus-sun-catalog (default standard_coach). Any field below overrides the model.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "rows",
                        "in": "query",
                        "required": false,
                        "description": "Seat rows, 8-20.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "layout",
                        "in": "query",
                        "required": false,
                        "description": "Seat layout: 2+2, 2+1 or 1+2 (left+right of the aisle).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "door_side",
                        "in": "query",
                        "required": false,
                        "description": "right (continental Europe) or left.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "windshield",
                        "in": "query",
                        "required": false,
                        "description": "large or normal — how much sun the first rows get through the windscreen.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "rear_window",
                        "in": "query",
                        "required": false,
                        "description": "none, small or large — sun on the last rows.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "window_height",
                        "in": "query",
                        "required": false,
                        "description": "standard or panoramic (tall side windows).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "deck",
                        "in": "query",
                        "required": false,
                        "description": "single, upper or lower (double-deck coaches).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "mid_door",
                        "in": "query",
                        "required": false,
                        "description": "1 or 0 — middle door present (removes the seats there).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "timeline",
                        "in": "query",
                        "required": false,
                        "description": "0 = leave out the timeline (15-minute rows).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "track",
                        "in": "query",
                        "required": false,
                        "description": "0 = leave out the timed track points.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "weather",
                        "in": "query",
                        "required": false,
                        "description": "1 (default) or 0. With 1, a weather forecast along the trip is used when the trip is within the next 3 days (72 h); later trips and weather=0 use clear sky.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "animation",
                        "in": "query",
                        "required": false,
                        "description": "1 (default) or 0. With 0, the animation block (sun and coach position every 5 minutes) is left out. POST body: animation true|false.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "date / data": {
                                                            "type": "object",
                                                            "properties": {
                                                                "tz": {
                                                                    "description": "Travel date and the time zone of the times in the answer."
                                                                }
                                                            }
                                                        },
                                                        "route": {
                                                            "description": "id, num, from, to, dir, dep, arr, km (registry route) — or the stops you sent (POST)."
                                                        },
                                                        "basis": {
                                                            "description": "How the timed path was built: timetable (registry or your stop times), router (our road route between points) or geometry (your polyline)."
                                                        },
                                                        "bus": {
                                                            "description": "The bus profile used: model, layout, rows, door_side, windshield, rear_window, window_height, deck, mid_door."
                                                        },
                                                        "summary": {
                                                            "description": "trip_min, daylight_min, night_min and minutes with the sun on the left, right, ahead and behind (weather-weighted when a forecast was used)."
                                                        },
                                                        "recommend": {
                                                            "description": "shade_side, sun_side, shade_pct, best_shade_seats[], best_sun_seats[], confidence (high | medium | low), reason_key; tip_key hot_sun_side when the sunny side is forecast at 28 °C or more. reason_key mostly_cloudy (shade_side any) when the forecast is mostly cloud or rain."
                                                        },
                                                        "recommend_clear": {
                                                            "description": "The same recommendation for a clear sky (no weather)."
                                                        },
                                                        "weather_changes_answer": {
                                                            "description": "true when the forecast changes the shade side compared with recommend_clear."
                                                        },
                                                        "weather": {
                                                            "description": "used, window_h (72), covered_pct, sunny_min, cloudy_min, rain_min, max_temp, note_key (forecast_used | partly_forecast | mostly_cloudy | rain_expected | clear_sky_only)."
                                                        },
                                                        "zones": {
                                                            "description": "front / middle / back: left and right sun exposure 0-100 and rows [first, last] of that part."
                                                        },
                                                        "seats": {
                                                            "description": "layout, rows, cols[], grid[][]: every seat — id (e.g. 4C), side, pos (window | aisle), exp (sun exposure 0-100), door (true next to a door)."
                                                        },
                                                        "timeline": {
                                                            "type": "array",
                                                            "description": "One row per 15 min: t, lat, lon, hd (heading), az / el (sun azimuth / elevation), side (left | right | ahead | behind | none), w (sun strength); wx {code, f, temp, precip} when a forecast was used."
                                                        },
                                                        "track": {
                                                            "type": "array",
                                                            "description": "Track points [lat, lon, sun side] for drawing the route (leave out with track=0)."
                                                        },
                                                        "input": {
                                                            "description": "POST only: how your route was read — source, timed_by, stops, points, legs_routed, legs_straight, timezone."
                                                        },
                                                        "images": {
                                                            "description": "POST only: seat_map, route_map, timeline — each {url, format, expires_at}; url = https://api.nakordoni.dev/images/<random name>.<png | webp | jpg> (body format, default png). Files are kept 12 hours. format svg: PNG files plus the seat map as inline SVG (seat_map.svg)."
                                                        },
                                                        "embed_html": {
                                                            "description": "POST only: a self-contained HTML figure with the seat map (inline SVG) to paste into a page; null with embed_html=false."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/bus-sun-catalog": {
            "get": {
                "tags": [
                    "bus-sun-catalog"
                ],
                "summary": "Bus Sun Side — Bus Catalogue API",
                "description": "The bus models bus-sun-side accepts (generic vehicle classes, not specific makes) with their seat layout, rows, door side, windows and deck, plus the allowed values of every bus parameter. Static; cache it.\n\nExample: `/api/v2/data/bus-sun-catalog`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/bus-sun-catalog",
                "operationId": "busSunCatalogV2",
                "parameters": [
                    {
                        "name": "bus_model",
                        "in": "query",
                        "required": false,
                        "description": "Optional: return one model only (404 unknown_bus_model if the id is not in the catalogue).",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "version": {
                                                            "description": "Catalogue version date."
                                                        },
                                                        "default_model": {
                                                            "description": "standard_coach — used when no bus_model is sent."
                                                        },
                                                        "params": {
                                                            "description": "Allowed values: layout[], rows {min, max, custom_min}, door_side[], windshield[], rear_window[], window_height[], deck[], mid_door[]."
                                                        },
                                                        "models": {
                                                            "description": "Map id → title, layout, rows, door_side, windshield, rear_window, window_height, deck, mid_door, typical_seats."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/toll-cost": {
            "post": {
                "tags": [
                    "toll-cost"
                ],
                "summary": "Truck Toll Cost API",
                "description": "Truck toll cost for a route across Europe. Send the route line as coordinates (for example the geometry from truck-route or from your own router), or just waypoints and we route them with our truck routing. Set the vehicle (axles, gross weight, Euro emission class, CO2 emission class) and get the total in EUR or your currency, a per-country breakdown (tolled km, effective EUR per km, cost, the vehicle class priced, whether a class fallback was used, date of the tariff), motorway concession sections, tunnels and bridges with their own truck tolls (for example Calafat-Vidin) as separate items, and the tolled km in total. Per-km HGV tolls and HGV vignettes (DE, AT, PL, CZ, SK, HU, BG, RO, CH, BE, NL, DK, SE, SI and more) are priced from official tariff tables. Euro and CO2 class specific rates are used where an official tariff for that class is on file; otherwise the default class rate is used and class_fallback is true. In France and Spain, a motorway stretch between two toll stations on the route is priced from the entry/exit tariff of the motorway operator for the vehicle class (France: class 3 for 2 axles, class 4 for 3 or more axles; Spain: Pesados 1 for 2 or 3 axles, Pesados 2 for 4 or more axles) and shown as a motorway_section item; the other tolled km of the country use the per-km average. The French, Italian and Spanish tariffs do not depend on the Euro or CO2 class, so class_fallback is false there. Estimates are net of VAT. Cars: send vehicle.class car to price toll plazas on the route plus the cheapest vignette of each vignette country.\n\nExample: `/api/v2/data/toll-cost`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/toll-cost",
                "operationId": "tollCostV2",
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "total_eur": {
                                                            "description": "Total toll cost in EUR (net of VAT): per-country tolls plus every priced item."
                                                        },
                                                        "total": {
                                                            "description": "The total in currency (fx_eur_to_currency is the rate used; null for EUR)."
                                                        },
                                                        "complete": {
                                                            "description": "false when a country or item on the line could not be priced (named in not_priced / items with cost_eur null) — then the total is a lower bound."
                                                        },
                                                        "toll_km": {
                                                            "description": "Tolled kilometres in total (countries plus concession sections)."
                                                        },
                                                        "distance_km": {
                                                            "description": "Length of the priced line."
                                                        },
                                                        "by_country": {
                                                            "type": "array",
                                                            "description": "cc, toll_km, scheme (per_km | toll_road | vignette | not_tolled), rate_eur_km (effective EUR per tolled km; null for vignettes), cost_eur, vehicle_class (tariff class priced), class_fallback (true = no tariff for the asked Euro / CO2 class, the default class rate was used), source_date (date the tariff is valid from), period (vignettes), class_note (for example: tariff not class-dependent). A country on the line with no tolled road gets cost_eur 0 and scheme not_tolled."
                                                        },
                                                        "items": {
                                                            "type": "array",
                                                            "description": "Separately charged parts: type (concession | motorway_section | bridge | tunnel), name, cc, cost_eur, basis; concessions and motorway sections add toll_km (a motorway section is not counted again in its country row), crossings add lat / lon. motorway_section name = operator or road and the entry and exit stations. A cost_eur of 0 means no separate toll (included in the national charge)."
                                                        },
                                                        "not_priced": {
                                                            "type": "array",
                                                            "description": "Countries with tolled kilometres but no truck rate on file yet."
                                                        },
                                                        "class_fallback": {
                                                            "description": "true when any country used a fallback class."
                                                        },
                                                        "vehicle": {
                                                            "description": "The vehicle priced (defaults filled in): axles, gross_weight_t, euro, co2_class; for cars only class: car."
                                                        },
                                                        "by_country[] (car)": {
                                                            "description": "For class car: cc, scheme (gate | vignette | gate+vignette), cost_eur, gates_eur, vignette_eur, vignette_name. Charged toll plazas are items of type gate (name, cc, lat, lon, cost_eur). toll_km is null."
                                                        },
                                                        "date": {
                                                            "description": "Tariff date used. input is coordinates or waypoints."
                                                        },
                                                        "disclaimers": {
                                                            "type": "array",
                                                            "description": "What the estimate covers and what it does not."
                                                        }
                                                    }
                                                },
                                                "error": {
                                                    "type": "object",
                                                    "properties": {
                                                        "code": {
                                                            "description": "bad_request (send exactly one of coordinates or waypoints), bad_coordinates, coordinates_too_sparse (two points more than 1.5 km apart), coordinates_not_matched, bad_waypoints (2 to 7 points), bad_vehicle, bad_date, bad_currency, payload_too_large (2 MB); with reason no_route (no truck route between the waypoints for this vehicle on this date), route_too_long (6000 km), route_refused / occupied_ua (line into Russia, Kaliningrad or the occupied territory of Ukraine)."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "coordinates": {
                                        "description": "(JSON body, this or waypoints) The route line as [[lon, lat], ...] — GeoJSON order, points at most ~1 km apart (a decoded route geometry), up to 50,000 points and 6000 km. It is matched to our road graph and priced as sent."
                                    },
                                    "waypoints": {
                                        "description": "(JSON body, this or coordinates) 2 to 7 points as [lon, lat] or {lat, lon}: origin, up to 5 via points, destination. We compute the fastest truck route for this vehicle and price it. Dated driving bans do not change this route; for a ban-aware plan call truck-route and send its geometry as coordinates."
                                    },
                                    "vehicle": {
                                        "description": "(JSON body) {class: hgv (default) or car, axles: 2-12 (default 5), gross_weight_t: 3.5-60 (default 40), euro: 0-6 (default 6), co2_class: 1-5 (default none)}. For class car, axles, gross_weight_t, euro and co2_class are not used."
                                    },
                                    "date": {
                                        "description": "(JSON body) Travel date YYYY-MM-DD within one year of today (default today). Tariffs valid on that date are used; with waypoints, the route is computed for that day."
                                    },
                                    "currency": {
                                        "description": "(JSON body) ISO 4217 code for total (default EUR), e.g. PLN, CZK, HUF, RON, BGN, CHF, SEK, DKK. All line items stay in EUR."
                                    }
                                }
                            },
                            "example": {
                                "waypoints": [
                                    [
                                        16.9252,
                                        52.4064
                                    ],
                                    [
                                        14.4378,
                                        50.0755
                                    ]
                                ],
                                "vehicle": {
                                    "axles": 5,
                                    "gross_weight_t": 40,
                                    "euro": 6
                                },
                                "currency": "EUR"
                            }
                        }
                    }
                }
            }
        },
        "/api/v2/data/lane-cost-index": {
            "get": {
                "tags": [
                    "lane-cost-index"
                ],
                "summary": "Lane Cost Index API",
                "description": "Cost index of a truck lane in Europe: the EUR per km cost floor of one loaded trip from A to B for a vehicle class — fuel, tolls, driver time and per diem. Per country on the route you get the km, the toll (and the toll vehicle class priced), the diesel litres and cost. Driver time follows the EU 561/2006 driving and rest rules. A 3-month trend shows how the cost index moved. It is a cost index, not a freight price: vehicle capital, insurance, overhead and margin are not included. Fuel and tolls are net of VAT. When a country on the route has no toll or fuel data, or the driver rate of the origin country is not on file, incomplete is true and the total is a lower bound.\n\nExample: `/api/v2/data/lane-cost-index?from=poznan&to=berlin&vehicle=artic_40t`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/lane-cost-index",
                "operationId": "laneCostIndexV2",
                "parameters": [
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "Origin: \"lat,lng\" (for example 52.4064,16.9252) or a city id (poznan, warsaw, berlin, munich, bucharest, zaragoza, lyon, milan, vienna, sofia, budapest). The carrier is assumed to be based in the origin country.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "required": false,
                        "description": "Destination: \"lat,lng\" or a city id.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "vehicle",
                        "in": "query",
                        "required": false,
                        "description": "Vehicle preset (default artic_40t): van_3_5t, rigid_7_5t, rigid_12t, rigid_18t, artic_26t, artic_40t, artic_44t.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "euro",
                        "in": "query",
                        "required": false,
                        "description": "Euro emission class 0-6 (default 6), used for the tolls.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "co2_class",
                        "in": "query",
                        "required": false,
                        "description": "CO2 emission class 1-5 (default 1), used for the tolls.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "empty_return",
                        "in": "query",
                        "required": false,
                        "description": "1 = add the empty return trip on the same route (fuel, tolls, driver time); eur_per_km stays per loaded km. Default 0.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "label": {
                                                            "description": "Always \"cost index\"."
                                                        },
                                                        "lane": {
                                                            "description": "key, from {cc, name}, to {cc, name}."
                                                        },
                                                        "vehicle": {
                                                            "description": "key, gross_weight_t, axles, euro, co2_class."
                                                        },
                                                        "km_total": {
                                                            "description": "Route length in km (one way). km_driven includes the empty return when asked."
                                                        },
                                                        "per_country": {
                                                            "type": "array",
                                                            "description": "cc, km, toll_eur, fuel_eur, fuel_l, diesel_eur_l (net of VAT), toll_vehicle_class."
                                                        },
                                                        "toll_eur": {
                                                            "description": "Tolls in EUR (net of VAT)."
                                                        },
                                                        "fuel_eur": {
                                                            "description": "Fuel in EUR (net of VAT); fuel_l = litres."
                                                        },
                                                        "driver_eur": {
                                                            "description": "Driver cost for the paid hours (null when the origin country rate is not on file)."
                                                        },
                                                        "per_diem_eur": {
                                                            "description": "Per diem (null when not on file for the origin country)."
                                                        },
                                                        "total_eur": {
                                                            "description": "Sum of the components; eur_per_km = total_eur / km_total."
                                                        },
                                                        "incomplete": {
                                                            "description": "true when missing_countries (no toll or fuel data) or missing_components is not empty — total_eur is then a lower bound."
                                                        },
                                                        "time": {
                                                            "description": "driving_h, break_h, rest_h, load_unload_h, duty_h (paid), elapsed_h, daily_rests, weekly_rests."
                                                        },
                                                        "assumptions": {
                                                            "description": "consumption (l/100 km), fuel_price_basis, driver_rate (EUR/h), driver_country, paid_hours, per_diem_scheme, prices_date, toll_date, excludes."
                                                        },
                                                        "components_source_dates": {
                                                            "description": "Dates of the data used: fuel {from, to}, toll (tariff valid from), driver (dataset), per_diem_fx."
                                                        },
                                                        "trend": {
                                                            "description": "months[] {month, eur_per_km, total_eur, incomplete} for the current and the two previous months."
                                                        },
                                                        "flags": {
                                                            "type": "array",
                                                            "description": "Machine-readable notes, for example toll_not_priced:RS."
                                                        },
                                                        "disclaimers": {
                                                            "type": "array",
                                                            "description": "What the cost index covers and what it does not."
                                                        }
                                                    }
                                                },
                                                "error": {
                                                    "type": "object",
                                                    "properties": {
                                                        "code": {
                                                            "description": "missing_from, missing_to, bad_from, bad_to, unknown_city, bad_vehicle, bad_euro, bad_co2_class, bad_empty_return; with reason no_route, route_too_long, route_refused / occupied_ua (route into Russia, Kaliningrad or the occupied territory of Ukraine)."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/market-rate": {
            "get": {
                "tags": [
                    "market-rate"
                ],
                "summary": "Market Rate API",
                "description": "Market rate of a truck lane in Europe: the median and the 75th percentile price in EUR per km per month, from prices that transport companies agreed with their customers and chose to share. Anonymised: a month is published only when at least 5 different companies contributed on that lane and vehicle class; otherwise the month is insufficient_data and no number is given. No company and no single price is ever shown. Use it with the Lane Cost Index API: the cost index is the cost floor, the market rate is what the market paid.\n\nExample: `/api/v2/data/market-rate?from=PL&to=DE&vehicle=artic`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/market-rate",
                "operationId": "marketRateV2",
                "parameters": [
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "Origin: a country code (PL), \"lat,lng\" (for example 52.4064,16.9252) or a city id (poznan, warsaw, berlin, munich, bucharest, zaragoza, lyon, milan, vienna, sofia, budapest).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "required": false,
                        "description": "Destination: a country code, \"lat,lng\" or a city id.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "vehicle",
                        "in": "query",
                        "required": false,
                        "description": "Vehicle class (default artic): van, rigid, artic. Lane Cost Index presets (van_3_5t, rigid_18t, artic_40t, ...) are accepted.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "level",
                        "in": "query",
                        "required": false,
                        "description": "country (default) = all trips between the two countries; region = trips between the 2 x 3 degree grid cells of the given points (needs \"lat,lng\" or a city id on both ends).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "months",
                        "in": "query",
                        "required": false,
                        "description": "Number of months, 1-12 (default 6).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "until",
                        "in": "query",
                        "required": false,
                        "description": "Last month YYYY-MM (default the current month), within the last 24 months.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "label": {
                                                            "description": "Always \"market rate\"."
                                                        },
                                                        "lane": {
                                                            "description": "level, from {cc, region, region_label}, to {cc, region, region_label}; region is null with level=country."
                                                        },
                                                        "vehicle_class": {
                                                            "description": "van, rigid or artic."
                                                        },
                                                        "currency": {
                                                            "description": "Always EUR; data.unit = eur_per_km."
                                                        },
                                                        "min_companies": {
                                                            "description": "Minimum number of different companies for a month to be published (5)."
                                                        },
                                                        "months": {
                                                            "type": "array",
                                                            "description": "month (YYYY-MM), status ok | insufficient_data; with ok: median_eur_km, p75_eur_km, n_companies."
                                                        },
                                                        "published_months": {
                                                            "description": "Number of months with status ok."
                                                        },
                                                        "disclaimers": {
                                                            "type": "array",
                                                            "description": "What the market rate covers."
                                                        }
                                                    }
                                                },
                                                "error": {
                                                    "type": "object",
                                                    "properties": {
                                                        "code": {
                                                            "description": "missing_from, missing_to, bad_from, bad_to, unknown_city, lane_refused (Russia, Kaliningrad, Belarus), bad_vehicle, bad_level, bad_months, bad_until."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/plate-recognition": {
            "post": {
                "tags": [
                    "plate-recognition"
                ],
                "summary": "Plate Image Recognition API",
                "description": "Read the licence plates in a photo of a vehicle. POST one image (JPEG, PNG, WebP, BMP or TIFF, max 8 MB) as a JSON body with image_url or image_base64, as a multipart/form-data upload in the field \"image\", or as the raw bytes with an image/* Content-Type. Every plate found comes back with the text, a 0-1 score, alternative readings, the plate box in pixels and the detection score. The engine is our own plate detector and reader, tuned on European trucks and buses. Images are processed in memory and never stored. image_url must be a public http(s) address; private and internal addresses, and redirects to them, are refused, and the download is stopped after 10 seconds.\n\nExample: `/api/v2/data/plate-recognition`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/plate-recognition",
                "operationId": "plateRecognitionV2",
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "success": {
                                                            "description": "true when at least one plate was read; data.message says how many."
                                                        },
                                                        "processing_time": {
                                                            "description": "Time spent on the request in milliseconds (download and recognition)."
                                                        },
                                                        "results": {
                                                            "type": "array",
                                                            "description": "One entry per plate, highest detection score first.",
                                                            "items": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "plate": {
                                                                        "description": "Plate text, upper case, letters A-Z and digits only (no spaces or dashes)."
                                                                    },
                                                                    "score": {
                                                                        "description": "Reading confidence 0-1 (mean of the per-character confidences)."
                                                                    },
                                                                    "candidates": {
                                                                        "type": "array",
                                                                        "description": "Up to 5 readings {plate, score}, best first; the first one is the plate."
                                                                    },
                                                                    "region": {
                                                                        "description": "{code, score} with the country of the plate when the engine can tell it; null otherwise (the current engine does not infer the country)."
                                                                    },
                                                                    "box": {
                                                                        "description": "Plate position in pixels: xmin, ymin, xmax, ymax."
                                                                    },
                                                                    "dscore": {
                                                                        "description": "Plate detection confidence 0-1."
                                                                    },
                                                                    "vehicle": {
                                                                        "description": "Vehicle details when available; null with the current engine."
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                },
                                                "error": {
                                                    "type": "object",
                                                    "properties": {
                                                        "code": {
                                                            "description": "400: image_required, bad_json, bad_base64, one_image_only, bad_image_url, image_url_not_allowed, image_url_fetch_failed, image_url_timeout, invalid_image, unsupported_image_type, unsupported_content_type, upload_failed. 404: no_plate_detected. 413: payload_too_large. 500: engine_error."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "image_url": {
                                        "description": "(JSON body) Public http(s) URL of the image. Max 8 MB, max 3 redirects, 10 s download limit."
                                    },
                                    "image_base64": {
                                        "description": "(JSON body) The image as base64 (a data:image/...;base64, prefix is allowed). Send image_url or image_base64, not both."
                                    }
                                }
                            },
                            "example": {
                                "image_url": "https://nakordoni.eu/img/developers/plate-recognition-example-bus.jpg"
                            }
                        }
                    }
                }
            }
        },
        "/api/v2/data/pet-recognition": {
            "post": {
                "tags": [
                    "pet-recognition"
                ],
                "summary": "Pet Recognition API",
                "description": "Find out if a photo shows a dog, and which breed. POST one image (JPEG, PNG, WebP, BMP or TIFF, max 8 MB, at least 200 pixels on the shorter side) as a JSON body with image_url or image_base64, as a multipart/form-data upload in the field \"image\", or as the raw bytes with an image/* Content-Type. A dog detector checks the photo first: no dog means 404 no_dog_detected. Then two breed models give up to 3 breeds from a list of 60 common breeds, with scores. Dogs only: cats and other animals are not recognised. The API recognises the breed, not the individual animal. Typical uses: pet apps, smart pet doors, and Home Assistant or other home-automation platforms. The result is a classification with a score, not a guarantee: your system sets the threshold and decides what to do. Images are processed in memory and never stored.\n\nExample: `/api/v2/data/pet-recognition`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/pet-recognition",
                "operationId": "petRecognitionV2",
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "success": {
                                                            "description": "true when a dog was found; data.message says the result in words."
                                                        },
                                                        "processing_time": {
                                                            "description": "Time spent on the request in milliseconds (download, dog detection and breed recognition)."
                                                        },
                                                        "species": {
                                                            "description": "Always \"dog\" (the only species we recognise)."
                                                        },
                                                        "dog_score": {
                                                            "description": "Confidence 0-1 of the dog detector."
                                                        },
                                                        "breed": {
                                                            "description": "{id, name, score}: the breed, set only when both breed models agree on it; null when they do not agree. Use data.breeds then."
                                                        },
                                                        "breeds": {
                                                            "type": "array",
                                                            "description": "Up to 3 breeds {id, name, score}, most likely first. id is a stable slug (for example labrador). score is the main model score 0-1; it is relative, often low (0.05-0.2) even for a correct breed, so compare breeds by order, not by a fixed score. Empty when the dog matches none of the 60 breeds."
                                                        },
                                                        "models_agree": {
                                                            "description": "true when both breed models chose the same first breed (then data.breed is set)."
                                                        }
                                                    }
                                                },
                                                "error": {
                                                    "type": "object",
                                                    "properties": {
                                                        "code": {
                                                            "description": "400: image_required, bad_json, bad_base64, one_image_only, bad_image_url, image_url_not_allowed, image_url_fetch_failed, image_url_timeout, invalid_image, image_too_small, unsupported_image_type, unsupported_content_type, upload_failed. 404: no_dog_detected. 413: payload_too_large. 500: engine_error. 503: engine_unavailable or engine_busy, with a Retry-After header and error.retry_after (seconds); when the engine is already paused before your call starts, the 503 engine_unavailable is not counted against your quota."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "image_url": {
                                        "description": "(JSON body) Public http(s) URL of the image. Max 8 MB, max 3 redirects, 10 s download limit."
                                    },
                                    "image_base64": {
                                        "description": "(JSON body) The image as base64 (a data:image/...;base64, prefix is allowed). Send image_url or image_base64, not both."
                                    }
                                }
                            },
                            "example": {
                                "image_url": "https://upload.wikimedia.org/wikipedia/commons/2/26/YellowLabradorLooking_new.jpg"
                            }
                        }
                    }
                }
            }
        },
        "/api/v3/data/pet-recognition": {
            "get": {
                "tags": [
                    "pet-recognition"
                ],
                "summary": "Pet Recognition API",
                "description": "Find out if a photo shows a dog or a cat, and which breed. POST one image (JPEG, PNG, WebP, BMP or TIFF, max 8 MB, at least 200 pixels on the shorter side) as a JSON body with image_url or image_base64, as a multipart upload in the field \"image\", or as the raw image bytes. A detector finds every dog and cat in the photo. For a dog, two breed models give up to 3 breeds from a list of 60 common breeds, with scores. For a cat, one breed model gives 3 breeds from a list of 12 pedigree breeds, with scores; mixed-breed cats usually return breed null. The result is a classification with a score, not a guarantee. Images are processed in memory and never stored. Cat breed model trained on the Oxford-IIIT Pet Dataset, Parkhi et al., CC BY-SA 4.0.\n\nExample: `/api/v3/data/pet-recognition`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/pet-recognition",
                "operationId": "petRecognitionV3",
                "parameters": [
                    {
                        "name": "image_url",
                        "in": "query",
                        "required": false,
                        "description": "(JSON body) Public http(s) URL of the image. Max 8 MB, max 3 redirects, 10 s download limit.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "image_base64",
                        "in": "query",
                        "required": false,
                        "description": "(JSON body) The image as base64 (a data:image/...;base64, prefix is allowed). Send image_url or image_base64, not both.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "success": {
                                                            "description": "true when the image was analysed, also when no animal was found. data.message says the result in words."
                                                        },
                                                        "processing_time": {
                                                            "description": "Time spent on the request in milliseconds."
                                                        },
                                                        "species": {
                                                            "description": "dog, cat or none: the species with the highest detector score."
                                                        },
                                                        "species_score": {
                                                            "description": "Detector confidence 0-1 for data.species; 0 when species is none."
                                                        },
                                                        "animals": {
                                                            "type": "array",
                                                            "description": "Every dog and cat found, as {species, score}, highest score first. Empty when species is none."
                                                        },
                                                        "breed": {
                                                            "description": "{id, name, score} or null. Dog: set when both breed models agree; otherwise null. Cat: the first breed when its score is 0.5 or more; otherwise null with data.breed_unknown_reason \"not_confident\". Always null for none."
                                                        },
                                                        "breed_unknown_reason": {
                                                            "description": "Cats only, present only when data.breed is null: \"not_confident\" means no cat breed reached a score of 0.5. Mixed-breed cats usually give this. Use data.breeds then."
                                                        },
                                                        "breeds": {
                                                            "type": "array",
                                                            "description": "Up to 3 breeds {id, name, score}, most likely first. Dog: from 60 breeds; the score is relative and often low (0.05-0.2) even for a correct breed, so compare breeds by order; empty when the dog matches none of the 60 breeds. Cat: always 3 breeds from 12 pedigree breeds: abyssinian, bengal, birman, bombay, british-shorthair, egyptian-mau, maine-coon, persian, ragdoll, russian-blue, siamese, sphynx. Empty for none."
                                                        },
                                                        "models_agree": {
                                                            "description": "Dogs: true when both breed models chose the same first breed (then data.breed is set). Always false for a cat (one breed model) or none."
                                                        }
                                                    }
                                                },
                                                "error": {
                                                    "type": "object",
                                                    "properties": {
                                                        "code": {
                                                            "description": "400: image_required, bad_json, bad_base64, one_image_only, bad_image_url, image_url_not_allowed, image_url_fetch_failed, image_url_timeout, invalid_image, image_too_small, unsupported_image_type, unsupported_content_type, upload_failed. 413: payload_too_large. 500: engine_error. 503: engine_unavailable or engine_busy, with a Retry-After header and error.retry_after (seconds); when the engine is already paused before your call starts, the 503 engine_unavailable is not counted against your quota. In v3, a photo with no dog and no cat is not an error (species none)."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                }
            }
        },
        "/api/v2/data/poi-opinion": {
            "post": {
                "tags": [
                    "poi-opinion"
                ],
                "summary": "POI Opinion API",
                "description": "Send what your users think about any POI that our APIs return (truck parkings, campsites, camper stops, fuel stations, cameras and more): a star rating with a text opinion, a reply to a published opinion, a helpful / not helpful vote on an opinion, an \"overnight stay OK?\" vote on the place, photos and short videos (of an opinion or of the place itself, with the position and view direction where the file has it). Opinions, replies, photos and videos are published only after moderation. Uploads are safe to resend: send client_upload_id and keep the file on the device while the answer says retryable (storage full or busy), then send it again after retry_after seconds; action upload_status tells whether uploads are accepted now. Compress on the device before uploading to save call units (see client_checks); larger photos and longer videos are still accepted but compressed or trimmed by the server at more call units. Published content comes back in the truck-route answer on each parking row: opinions (average stars, count, the newest opinions with replies, votes, photos and videos), overnight_votes, place photos and place videos. Wrong position? action propose_location sends a corrected position (lat, lng, optional entrance_lat / entrance_lng, note, photo_id) for a parking row: at most 2000 m from the published point (more: 422 move_too_far), one open proposal per end user and place (a resend replaces it), checked by a moderator before the published position changes. Identify the POI with ext_source and ext_id (ext_id = the id field of the row in our API answer). Send user_ref, your own stable id of the end user: limits and votes count per end user.\n\nExample: `/api/v2/data/poi-opinion`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/poi-opinion",
                "operationId": "poiOpinionV2",
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "success": {
                                                            "description": "true when the request was accepted."
                                                        },
                                                        "opinion_id": {
                                                            "description": "submit: id of the new opinion (status pending until moderation). reply: reply_id and the top opinion_id."
                                                        },
                                                        "status": {
                                                            "description": "pending — the opinion / reply / photo is published only after moderation."
                                                        },
                                                        "photos[] / photo": {
                                                            "description": "Photos accepted with the request: id, status pending, width, height, lat, lng, heading, captured_at, geo_source (exif | client | none), flags (far_from_poi, future_capture)."
                                                        },
                                                        "user_vote": {
                                                            "description": "vote: up | down | null after the call; changed, up_votes, down_votes of that opinion."
                                                        },
                                                        "overnight_votes": {
                                                            "description": "vote_overnight: yes, no, last_vote_at of the place; overnight_ok = this end user's vote."
                                                        },
                                                        "video": {
                                                            "description": "add_video / add_place_video: id, status pending, processing queued (converted in the background), duration_s, width, height, lat, lng, heading, captured_at, geo_source (exif | client | none), flags (far_from_poi, future_capture)."
                                                        },
                                                        "replayed": {
                                                            "description": "true when the answer is the stored result of an earlier upload with the same client_upload_id."
                                                        },
                                                        "accepting_uploads": {
                                                            "description": "upload_status (user_ref + ext_source + ext_id, no file): accepting_uploads true | false, reason (storage_full | moderation_backlog | storage_quota | null), retry_after (seconds or null), photo_slots_left_for_this_place, video_slots_left_for_this_place. Own limit 60 per minute per API key; not counted against opinions or votes."
                                                        },
                                                        "items": {
                                                            "type": "array",
                                                            "description": "mine: the end user's own opinions and replies with their moderation status (pending | approved | rejected)."
                                                        },
                                                        "proposal_id": {
                                                            "description": "propose_location: id of the proposal, status pending until a moderator rules on it; replaced true when it replaced the open proposal of the same end user for the same place (same proposal_id). Approved: the position in the truck-route parkings[] rows (lat, lon) changes; opinions, photos, videos and votes of the place stay attached."
                                                        }
                                                    }
                                                },
                                                "usage": {
                                                    "type": "object",
                                                    "properties": {
                                                        "units": {
                                                            "description": "Only on a call that the server had to compress or trim: the call units of this call (x2 photo compression, x2 video trim), with units_extra and units_reason (photo_server_compress | video_server_trim); also in the X-Devapi-Units header."
                                                        }
                                                    }
                                                },
                                                "error": {
                                                    "type": "object",
                                                    "properties": {
                                                        "code": {
                                                            "description": "bad_request, user_ref_required, bad_ext_source, bad_ext_id, poi_details_required, bad_stars, bad_text, bad_vote, bad_overnight_ok, bad_photo_geo, bad_video_geo, image_required, video_required, upload_failed, bad_client_upload_id, bad_location, bad_entrance, bad_note, 404 opinion_not_found / poi_not_found, 409 not_approved / opinion_rejected / client_upload_id_used, 413 payload_too_large, 422 move_too_far (the proposed position is over 2000 m from the published one) / location_unchanged / bad_photo_ref / profanity_needs_edit (error.flagged) / not_an_image / not_a_video / unsupported_video_format / video_too_long (over 180 s) (422 = fix the request, error.retryable false), 403 key_blocked (error.action, error.reason: this action is blocked for the API key), 429 rate_limited (per end user per day: 5 opinions, 20 replies, 200 votes; or per API key: opinions 30/min 1000/day, replies 30/min 1000/day, votes 120/min 10000/day, propose_location 30/min 1000/day, 20/day per end user; Retry-After header) / photo_limit_place / photo_limit_opinion / video_limit_place (error.retryable false) / moderation_backlog (too many photos, or 1000 opinions and replies, of this key wait for moderation; Retry-After) / storage_quota (media storage of this key used up), 507 storage_full. storage_full (retry_after 3600), moderation_backlog (3600) and storage_quota (86400) carry error.retry_after (seconds), error.retryable true and a Retry-After header: keep the file on the device and send it again later with the same client_upload_id."
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "action": {
                                        "description": "(JSON body or query) submit (default) | reply | vote | vote_overnight | add_photo | add_place_photo | add_video | add_place_video | upload_status | propose_location | mine."
                                    },
                                    "user_ref": {
                                        "description": "(JSON body or query, required) Your stable id of the end user (1-128 characters; send a hash, not an e-mail). One end user = one vote per opinion / place; per end user per day at most 5 opinions, 20 replies, 200 votes (vote and vote_overnight together) and 20 photos."
                                    },
                                    "ext_source": {
                                        "description": "(JSON body or query) POI kind as in our answers: parking (truck-route parkings incl. campsite and camper_stop rows), poi, fuel, camera, report, limit, incident. For submit, vote_overnight, add_place_photo, propose_location (parking only)."
                                    },
                                    "ext_id": {
                                        "description": "(JSON body or query) The id field of that POI row in our API answer."
                                    },
                                    "lat": {
                                        "description": "(JSON body or query) POI latitude — required with lng, name (and country) the first time a POI gets an opinion, vote or place photo. For add_photo: the photo position when the image has no GPS. For propose_location: the proposed new latitude (with lng, required)."
                                    },
                                    "lng": {
                                        "description": "(JSON body or query) POI longitude (see lat)."
                                    },
                                    "name": {
                                        "description": "(JSON body or query) POI name (first use of a POI)."
                                    },
                                    "country": {
                                        "description": "(JSON body or query) POI country ISO code (first use of a POI)."
                                    },
                                    "stars": {
                                        "description": "(JSON body, submit) 1-5."
                                    },
                                    "text": {
                                        "description": "(JSON body) submit: 10-2000 characters; reply: 2-1000 characters. Texts with offensive words are refused with 422 profanity_needs_edit and the flagged words (nothing is stored)."
                                    },
                                    "lang": {
                                        "description": "(JSON body) Language of the text: en, de, fr, it, pl, uk, ru, cs, sk, ro, hu, bg, mk, ka (default en)."
                                    },
                                    "author_name": {
                                        "description": "(JSON body, optional) Shown name, at most 100 characters (default \"Driver\")."
                                    },
                                    "recommend": {
                                        "description": "(JSON body, submit, optional) true / false."
                                    },
                                    "opinion_id": {
                                        "description": "(JSON body or query) reply / vote / add_photo: the opinion id (vote also takes a reply id). A reply to a reply joins the top opinion (one level)."
                                    },
                                    "vote": {
                                        "description": "(JSON body, vote) up | down | none. Changing the vote replaces it; the same vote again changes nothing."
                                    },
                                    "overnight_ok": {
                                        "description": "(JSON body, vote_overnight) yes | no | none — is an overnight stay OK at this place."
                                    },
                                    "image_base64": {
                                        "description": "(JSON body) One photo, JPEG / PNG / WebP, up to 8 MB as sent; up to 25 MB accepted and re-encoded by the server (JPEG, longest side 2560 px, x2 call units, answer compressed_by_server, original_bytes, stored_bytes; pictures over 24 megapixels are downscaled the same way and the answer adds original_megapixels), at least 200 x 200 px (or the multipart field \"image\" with the other fields in the query). submit (optional), add_photo (own opinion), add_place_photo (photo of the place). At most 5 photos per end user per place (place and opinion photos together, rejected ones do not count), at most 4 photos per opinion and 20 per end user per day. GPS position, altitude, view direction and capture time are read from the photo EXIF; the published file carries no metadata."
                                    },
                                    "photo_lat": {
                                        "description": "(JSON body or query) submit / add_place_photo: photo position when the image has no GPS, with photo_lng, photo_heading (0-359) and photo_captured_at (ISO 8601). add_photo uses lat, lng, heading, captured_at."
                                    },
                                    "photo_lng": {
                                        "description": "(JSON body or query) See photo_lat."
                                    },
                                    "photo_heading": {
                                        "description": "(JSON body or query) See photo_lat."
                                    },
                                    "photo_captured_at": {
                                        "description": "(JSON body or query) See photo_lat."
                                    },
                                    "heading": {
                                        "description": "(JSON body or query) add_photo / add_video: view direction 0-359 when the file has none (add_place_video accepts it too)."
                                    },
                                    "captured_at": {
                                        "description": "(JSON body or query) add_photo / add_video: capture time ISO 8601 when the file has none (add_place_video accepts it too). Always the time the photo / video was TAKEN, also when it is uploaded later."
                                    },
                                    "video": {
                                        "description": "(multipart form field) add_video (own opinion) / add_place_video (video of the place): ONE video, MP4, MOV or WebM (the file content is checked, not the name), at most 95 MB; up to 60 seconds served as sent, up to 180 seconds accepted and trimmed by the server to the first 60 seconds (x2 call units, answer trimmed_by_server, original_seconds). The other fields go as form fields or in the query. At most 1 video per end user per place (place and opinion videos together, rejected ones do not count), 3 per end user per day. Position, view direction and capture time are read from the video metadata (else lat / lng / heading / captured_at; video_lat ... for add_place_video); the published video is converted to MP4 (H.264, at most 1280 px) and carries no metadata. Published only after moderation."
                                    },
                                    "video_base64": {
                                        "description": "(JSON body) A small video (at most 8 MB) instead of the multipart field \"video\"."
                                    },
                                    "video_lat": {
                                        "description": "(JSON body or query) add_place_video: video position when the video has none, with video_lng, video_heading (0-359), video_captured_at (ISO 8601)."
                                    },
                                    "video_lng": {
                                        "description": "(JSON body or query) See video_lat."
                                    },
                                    "video_heading": {
                                        "description": "(JSON body or query) See video_lat."
                                    },
                                    "video_captured_at": {
                                        "description": "(JSON body or query) See video_lat."
                                    },
                                    "client_upload_id": {
                                        "description": "(JSON body or query, optional) add_photo / add_place_photo / add_video / add_place_video: your id of this upload (a UUID, at most 64 characters), kept per end user. Sending the same upload again with the same client_upload_id answers the first result again (same photo / video id, replayed true): nothing is stored twice and no limit counts twice."
                                    },
                                    "entrance_lat": {
                                        "description": "(JSON body, propose_location, optional) Position of the entrance of the place, with entrance_lng (both or neither). Kept for the moderator; it is not published."
                                    },
                                    "entrance_lng": {
                                        "description": "(JSON body, propose_location, optional) See entrance_lat."
                                    },
                                    "note": {
                                        "description": "(JSON body, propose_location, optional) Why the position is wrong, at most 500 characters (shown to the moderator only)."
                                    },
                                    "photo_id": {
                                        "description": "(JSON body, propose_location, optional) Id of an approved photo of this same place that shows the right position (the photo id from the photos[] of the truck-route row)."
                                    }
                                }
                            },
                            "example": {
                                "action": "submit",
                                "user_ref": "u-7f3a9c",
                                "ext_source": "parking",
                                "ext_id": "348300711583683",
                                "lat": 63.81866,
                                "lng": -20.41976,
                                "name": "Truck parking",
                                "country": "IS",
                                "stars": 4,
                                "text": "Quiet place, flat gravel, room for a 7 m motorhome.",
                                "lang": "en",
                                "recommend": true
                            }
                        }
                    }
                }
            }
        },
        "/api/v2/data/fuel-report": {
            "post": {
                "tags": [
                    "fuel-report"
                ],
                "summary": "Fuel Report API (send prices)",
                "description": "Send the fuel prices you or your users see at a station, so the next driver gets a fresher price. POST a JSON body with the station id from fuel-stations, the prices per grade and when they were seen. Every price is checked: the grade name is matched like the fuel_type parameter (Diesel, ON, Nafta, 95 ...), the currency must be the currency of the station's country or EUR, the price must be plausible for that grade and country, and the observation may be at most 6 hours old. A price that differs by more than 15 % from the price we hold waits (pending) until a second, independent account reports the same price within 6 hours. A checked price joins our station data; it never replaces a newer price we already hold. Limits per API key: 30 reports per hour, 200 per 24 hours, and one report per station and grade per 30 minutes. Use dry=true while you build your integration: the same checks run and you get the same answer, but the price is not used.\n\nExample: `/api/v2/data/fuel-report`\n\nHuman docs: https://nakordoni.eu/en/developers/docs/fuel-report",
                "operationId": "fuelReportV2",
                "responses": {
                    "200": {
                        "description": "Successful response (shared envelope; `data` as documented).",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/ApiEnvelope"
                                        },
                                        {
                                            "type": "object",
                                            "properties": {
                                                "data": {
                                                    "type": "object",
                                                    "properties": {
                                                        "accepted": {
                                                            "type": "array",
                                                            "description": "Grades whose price was accepted."
                                                        },
                                                        "pending": {
                                                            "type": "array",
                                                            "description": "Grades whose price differs by more than 15 % from ours: kept until a second account confirms it within 6 hours."
                                                        },
                                                        "rejected": {
                                                            "type": "array",
                                                            "description": "{grade, reason}. reason: unknown_grade, duplicate_grade, bad_price, currency_mismatch, implausible_price, price_too_high, price_too_low, rate_limited (this key sent this grade for this station less than 30 minutes ago)."
                                                        },
                                                        "station_id": {
                                                            "description": "The station the report was stored for (a merged duplicate answers with the station it was merged into)."
                                                        },
                                                        "observed_at": {
                                                            "description": "The observation time used, UTC."
                                                        },
                                                        "dry": {
                                                            "description": "true for a test call (nothing used)."
                                                        }
                                                    }
                                                },
                                                "errors": {
                                                    "description": "400 bad_json, bad_station_id, bad_prices, too_many_prices, bad_observed_at, observed_at_too_old; 404 station_not_found; 429 rate_limited (hourly or daily cap, or every grade of the report within 30 minutes) with retry_after seconds and a Retry-After header."
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "$ref": "#/components/responses/E400"
                    },
                    "401": {
                        "$ref": "#/components/responses/E401"
                    },
                    "403": {
                        "$ref": "#/components/responses/E403"
                    },
                    "404": {
                        "$ref": "#/components/responses/E404"
                    },
                    "410": {
                        "$ref": "#/components/responses/E410"
                    },
                    "429": {
                        "$ref": "#/components/responses/E429"
                    },
                    "500": {
                        "$ref": "#/components/responses/E500"
                    },
                    "503": {
                        "$ref": "#/components/responses/E503"
                    },
                    "504": {
                        "$ref": "#/components/responses/E504"
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "station_id": {
                                        "description": "(JSON body, required) Our station id: data.stations[].id from fuel-stations (or fuel-cheapest)."
                                    },
                                    "prices": {
                                        "description": "(JSON body, required) List of {grade, price, currency}, at most 17. grade: a canonical grade (diesel, e5, e10, lpg, biocng ...) or a local pump name (see fuel-grades). price: price per litre (per kg for CNG, LNG, Bio-CNG and Bio-LNG). currency: ISO code (PLN, EUR, CZK ...), the station's local currency or EUR."
                                    },
                                    "observed_at": {
                                        "description": "(JSON body, optional) When the price was seen, ISO 8601 with offset, at most 6 hours ago, not in the future. Default: now."
                                    },
                                    "dry": {
                                        "description": "(JSON body or query, optional) true / 1 = test call: all checks run and the answer is the same, but the price is not used. Counts against the limits."
                                    }
                                }
                            },
                            "example": {
                                "station_id": 72571,
                                "observed_at": "2026-10-31T14:05:00+01:00",
                                "dry": true,
                                "prices": [
                                    {
                                        "grade": "diesel",
                                        "price": 7.99,
                                        "currency": "PLN"
                                    },
                                    {
                                        "grade": "95",
                                        "price": 6.49,
                                        "currency": "PLN"
                                    }
                                ]
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "scheme": "bearer",
                "bearerFormat": "NKD-DEV-XXXX-XXXX-XXXX",
                "description": "API key from https://nakordoni.eu/en/developers, sent as `Authorization: Bearer NKD-DEV-…` (preferred)."
            },
            "apiKeyHeader": {
                "type": "apiKey",
                "in": "header",
                "name": "X-API-Key",
                "description": "Same API key in the X-API-Key header."
            },
            "apiKeyQuery": {
                "type": "apiKey",
                "in": "query",
                "name": "key",
                "description": "Same API key as ?key= (fallback; keys in URLs end up in logs)."
            }
        },
        "schemas": {
            "ApiEnvelope": {
                "type": "object",
                "required": [
                    "ok"
                ],
                "properties": {
                    "ok": {
                        "type": "boolean",
                        "const": true
                    },
                    "api_version": {
                        "type": "string",
                        "description": "Version that served the call, e.g. \"1\", \"v2\"."
                    },
                    "product": {
                        "type": "string"
                    },
                    "attribution": {
                        "type": "string",
                        "description": "Show this attribution with the data."
                    },
                    "data": {
                        "description": "Product payload — shape per product, see the operation."
                    },
                    "snapshot": {
                        "type": "object"
                    },
                    "usage": {
                        "type": "object",
                        "properties": {
                            "requests_today": {
                                "type": "integer"
                            },
                            "limit_today": {
                                "type": "integer"
                            },
                            "remaining": {
                                "type": "integer"
                            }
                        }
                    }
                }
            },
            "ApiError": {
                "type": "object",
                "required": [
                    "ok",
                    "error"
                ],
                "properties": {
                    "ok": {
                        "type": "boolean",
                        "const": false
                    },
                    "api_version": {
                        "type": "string"
                    },
                    "error": {
                        "type": "object",
                        "required": [
                            "code",
                            "message"
                        ],
                        "properties": {
                            "code": {
                                "type": "string",
                                "examples": [
                                    "bad_request",
                                    "missing_api_key",
                                    "invalid_api_key",
                                    "product_unavailable",
                                    "unknown_product",
                                    "version_sunset",
                                    "qps_exceeded",
                                    "quota_exceeded",
                                    "internal_error",
                                    "busy",
                                    "timeout"
                                ]
                            },
                            "message": {
                                "type": "string"
                            },
                            "docs": {
                                "type": "string",
                                "format": "uri"
                            },
                            "developer_portal": {
                                "type": "string",
                                "format": "uri"
                            }
                        },
                        "additionalProperties": true
                    }
                }
            }
        },
        "responses": {
            "E400": {
                "description": "Bad request (bad_request, invalid_country, unsupported_version, geocode_failed, scope_required, …).",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/ApiError"
                        }
                    }
                }
            },
            "E401": {
                "description": "Missing API key (missing_api_key).",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/ApiError"
                        }
                    }
                }
            },
            "E403": {
                "description": "Key invalid, blocked or not allowed for this product (invalid_api_key, product_unavailable, not_approved, …).",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/ApiError"
                        }
                    }
                }
            },
            "E404": {
                "description": "Unknown product (unknown_product).",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/ApiError"
                        }
                    }
                }
            },
            "E410": {
                "description": "Version retired (version_sunset, version_closed_to_new_accounts).",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/ApiError"
                        }
                    }
                }
            },
            "E429": {
                "description": "Rate or quota limit (qps_exceeded, quota_exceeded, duplicate_request, ip_temporarily_blocked). See Retry-After.",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/ApiError"
                        }
                    }
                }
            },
            "E500": {
                "description": "Internal error (internal_error).",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/ApiError"
                        }
                    }
                }
            },
            "E503": {
                "description": "Temporarily unavailable (busy).",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/ApiError"
                        }
                    }
                }
            },
            "E504": {
                "description": "Upstream timeout (timeout).",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/ApiError"
                        }
                    }
                }
            }
        }
    }
}
