Skip to content

Draft/transport type aware location - #2579

Draft
diogodanielsoaresferreira wants to merge 2 commits into
mainfrom
draft/transport-type-aware-location
Draft

Draft/transport type aware location#2579
diogodanielsoaresferreira wants to merge 2 commits into
mainfrom
draft/transport-type-aware-location

Conversation

@diogodanielsoaresferreira

Copy link
Copy Markdown
Contributor

Initial work to allow to solve routing problems with more than one transportType.

Created additional properties in Location so that we keep the hot path without the Map access.

Related with https://github.com/TimefoldAI/timefold-platform/issues/2690

Add a TransportType value type and per-mode travel-time/distance matrices
on Location, so the same routing problem can use more than one transport
profile (e.g. car + bike). The default CAR mode keeps the existing scalar/
timeframe fields and index-cache fast path; extra modes are stored in
opt-in maps that stay null for single-mode problems.

The TravelTimeMatrixEnricher fetches one matrix set per transport type
(each resolving to its own OSRM instance), and map-service.transport-type
now accepts a comma-separated list of modes (first entry is primary).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
31.1% Coverage on New Code (required ≥ 70%)

See analysis details on SonarQube Cloud

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant