Part D - Via search, implement feature. (Depend on: A) #4494
Labels
Stale
This issue is stale, no activity for 90 days. Remove stale label or comment within 30 days.
Milestone
Requirements
fields in the current routing endpoint. Use Stop/Station ID if the stop/station exist, if not use
the coordinate. Each location should have:
minSlack : Duration = 10 minutes
maxSlack : Duration = 60 minutes
optimize and run them in parallel. Running the searches in parallel, will require an initial
search for each viaTrip to find
minTravelTime
. Then perform searches for different viaTrips inparallel.
Implement in multiple steps:
Initial solution:
a) via points Station A, Station B:
first search start - Station A,
second search Station A - end
Search:
startAt 12:00, searchWindow 60min, minSlack 10 min, maxSlack 30 min
via points:
Station A
Search 1, startAt 12:00, searchWindow 60 min, give results:
result 1, arrive at 13:00
result 2, arrive at 14:00
searchWindow for search 2 is last arrival - first arrival + maxSlack: 90min
startAt for search 2 is first arrival + minSlack: 13:10
Search 2, startAt 13:10, searchWindow 90min, give results:
result 1, departure at 13:15
result 2, departure at 13:45
result 3, departure at 14:30
Combine results together. For each result from search 2 find matching result from search 1. (departure >= (arrival + minSlack)):
search1.result1 + search2.result1
search1.result2 + search2.result3
search1.result1 + search2.result2 will be excluded because the departure time for search2.result2 is after the allowed arrival + maxSlack = 13:30
The text was updated successfully, but these errors were encountered: