mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
d6eac772aa
Both public hosts TREK ships with reject the parameter with HTTP 400: their car profile is built without excludable classes, and only a self-hosted OSRM built through the MLD pipeline has them. Every long leg was therefore paying two extra requests, against a host that allows one per second, to be refused twice. The first real attempt is the probe. Only a 400 is remembered, because only a 400 is about the host: a 429 is a rate limit, an abort is the user moving on, and a NoRoute means this leg has no way round the motorway while the next one might. Kept per base URL, so pointing the instance at an own router that does support it starts asking again without a reload. The comment above the fallback said none of this and read as a working feature, which is why "only one sensible way to drive this" keeps appearing on legs that plainly have another road.