mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-11 23:00:58 +00:00
8fd025e003
With the TREK services or an own Valhalla, the day plan, the road trip and the other ways of a leg are routed by Valhalla on foot, by bike and by car, twenty locations a request. A day it cannot answer (relay refusal, time out, no way for a leg) goes to OSRM whole and without a word; it is never handed to FOSSGIS unless it avoids something only Valhalla can avoid. With FOSSGIS nothing changes: OSRM routes the days and Valhalla the avoidances. A Valhalla answer is cached under its own key beside the OSRM one, so switching engines never serves a day from the other engine. The Valhalla day routing moves out of RouteCalculator into valhallaDayRoute.ts.