Request for feedback: offline OSM fixture and map-matching contracts

Hello OSGeo community,

I’m building OpenTrace ML, a pre-alpha Apache-2.0 Python library for experiments that combine computer-vision road observations, incremental traffic forecasts, consent-gated GPX preparation, map-matching contracts, and transparent route-reliability scores.

The current work is deliberately fixture-based and offline. This example runs from small original fixtures, without a routing service or bundled third-party data:

git clone https://github.com/vrajpatell/opentrace-ml.git
cd opentrace-ml
python -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'
OPENTRACE_PSEUDONYM_KEY='replace-with-a-secret' python examples/map_match_fixture.py

OpenTrace treats OpenStreetMap as externally licensed network data. It does not bundle OSM extracts, upload automated edits, or treat road-damage detections as a source for OSM edits. Any future contribution workflow would require an independently authorized source, licence compatibility, and human review.

I’d value feedback from geospatial Python and routing developers on two bounded tasks:

Repository: GitHub - vrajpatell/opentrace-ml · GitHub

In particular, what would make an offline fixture useful enough for practitioners who use PostGIS, Valhalla, OSRM, or FMM?

Progress update — 12 September 2026

OpenTrace ML’s latest main branch adds a native Go core and portable linear-model inference: a model trained in Python can be exported as data-only JSON and used for single-step or recursive forecasts in Go, with conformance tests.

Python also now has an experimental CPU neural forecaster, persistence/seasonal baselines, and reproducible rolling benchmarks with strict timestamp alignment and per-lead errors. Neural export to Go is still an open design task. The initial public-data benchmark is only one UCI traffic window, and its neural fits reached the iteration limit; broader evaluation is needed.

The geospatial workflow remains at the library-contract and fixture stage: consent-gated GPX preparation, map-matching result validation, observations exported as GeoJSON, and transparent route signals. This is still pre-alpha work.

Current geospatial contribution requests:

These last two safeguards remain open work. Pseudonymous location traces are still sensitive, and generated observations remain separate from OSM; no automatic OSM edits are submitted.

If you work with PostGIS, Valhalla, OSRM, or FMM, which small fixture and expected outputs would help you test an integration? A sample contract review or reproducible edge case is a useful contribution.

Forecasting setup and limitations