Skip to content

Explain traffic source freshness and verified route influence #402

Description

@Medformatik

Before you start

  • Searched current issues and discussions; no equivalent feature was found. Related work is linked below.

What problem does this solve?

A coloured traffic layer does not establish that its data affected a route or ETA. OpenMapX has separate overlay, graph/update and request-bound routing proof paths; users need a coherent explanation of which source/state applies to the displayed map and chosen route.

Proposed solution

Use existing traffic publication evidence and Valhalla proof to present overlay source/release age and route-specific traffic influence separately. Provide understandable fresh/stale/unavailable/unknown/degraded states with source context, including local versus hosted paths. Keep missing evidence honest and route-specific; preserve the existing proof rules. Start with the owned traffic-flow and Valhalla path plus a contrasting hosted overlay fixture. Out of scope: new traffic provider, graph matching/speed algorithm, replacing ETA computation or asserting live coverage from enabled integrations. Resolve available metadata, freshness thresholds and first UI placement during triage.

Verified current state

Rechecked against main at a8e03bc3efc49207d91f7c1855402c6cf149b8fd on October 7, 2026.

Acceptance criteria

  • A map-only traffic layer is never represented as proof that live traffic affected the chosen route.
  • Verified route influence is derived from the matching route response/proof; missing, stale, graph-mismatched or unverified proof remains unknown/unavailable.
  • Source, upstream/publication age and partial coverage are explained where known; request completion time is not substituted for upstream freshness.
  • Overlay and route source differences remain clear, including hosted overlays over self-hosted routing.
  • Route refresh, reroute, provider failure and stale caches cannot carry a previous route's successful traffic claim forward.
  • Small-screen/keyboard/screen-reader cases and non-colour-only statuses pass; docs and before/after screenshots show the distinction.

Verification approach

Extend current traffic-proof tests with UI-consumer scenarios for verified/missing/stale/mismatched evidence and reroute/provider changes. Use controlled publication timestamps and existing traffic-evidence fixtures. Run root lint/types/test, relevant provider/coverage tests and docs build; publish rendered map-only versus route-applied examples without claiming broad regional coverage.

Dependencies and decisions

Baseline #393 is complete. Related #303 covers source-update lifecycle rather than presentation. No new source/engine is a blocker. The source-age contract and supported proof-to-UI mapping must be agreed before implementation; preserve request-bound validation.

Alternatives considered

Labeling every enabled traffic integration as live/ETA-aware would confuse rendering with routing. A graph/data rewrite is unnecessary to explain the evidence already available.

Area

Other / cross-cutting

Would you like to work on this?

Maybe, with some guidance. Maintainer-owned backlog; implementation has not started. Resolve the named decisions during triage before scheduling work.

Activity

  1. Medformatik commented on Oct 7, 2026

    @Medformatik
    CollaboratorAuthor

    Implemented the first bounded presentation pass in #426, commit be82d9b. It distinguishes applied road-condition evidence from unverified congestion ETA influence, expires held claims at the proof lease, and explains owned/TomTom map sources without inventing freshness or coverage. Includes six direct PR screenshots, regression-first tests, fresh independent review, documentation updates and the final full suite (17,695 tests passed; 138 opt-in tests skipped). This issue stays open: a public publication metadata contract and navigation/EV-wide presentation remain follow-ups. No producer or route algorithm changes.

  2. Medformatik commented on Oct 7, 2026

    @Medformatik
    CollaboratorAuthor

    PR #426 was merged as 3c80939 after final review and green CI. It delivers compact duration/delay colors, optional route evidence details, and separate owned/TomTom map disclosures. Missing evidence uses the ordinary duration color without a visible unavailable row.

    This issue remains open: trustworthy route-specific congestion coverage is still needed from routing providers before the green low-delay state can occur in production. Public overlay publication/source-age metadata also needs a bounded contract; current legends honestly report unknown update time/coverage. Existing request-bound road-update proof remains separate from congestion estimates. These remaining items are documented in the merged directions and map-layers guides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds-triageNeeds initial review and categorization

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions