releases
solverforge-maps 2.1.x: Matrix Route Distances
solverforge-maps 2.1.x stores same-path route distances next to travel-time matrix data for routing and delivery applications.
solverforge-maps 2.1.x is the current maps line for routing and delivery applications. The latest patch, 2.1.4, is available on crates.io, documented on docs.rs, and tagged in the source repository.
Patch releases are folded into this line note instead of published as separate release-note pages.
What Changed
TravelTimeMatrix now stores route distances alongside travel times:
matrix.get(from, to)returns travel time in secondsmatrix.distance_meters(from, to)returns meters along the same fastest-time pathmatrix.row(from)returns a full row of travel timesmatrix.row_distances(from)returns the matching row of route distancesmatrix.as_slice()exposes the flat travel-time datamatrix.distances_as_slice()exposes the flat distance data
The distance matrix preserves the same semantics as the travel-time matrix:
diagonal pairs are zero, unreachable pairs use UNREACHABLE, and out-of-bounds
access returns None.
Upgrade
Use the crates.io package pin:
[dependencies]
solverforge-maps = "2.1.4"
Example
let matrix = network.compute_matrix(&locations, None).await;
let time_seconds = matrix.get(0, 1);
let distance_meters = matrix.distance_meters(0, 1);
let all_times_from_depot = matrix.row(0);
let all_distances_from_depot = matrix.row_distances(0);
Use the new distance accessors for reporting, diagnostics, mileage displays, and secondary route-cost views that need to stay aligned with the fastest-time matrix used by the solver.
Patch History
| Version | Date | Notes |
|---|---|---|
2.1.4 |
2026-05-03 | Stores route distances beside travel-time matrix data and exposes aligned distance rows and slices. |