Routing and re-routing
TravStats draws a road line for a bus ride, roadtrip and tour legs, and a rail line for train rides, only when the instance has a router. Without one, a ride is stored and drawn as a straight line, labelled “Luftlinie” / “straight line”, its kilometres are kept apart from road kilometres, and no coordinate leaves the server.
The routing provider
Section titled “The routing provider”Einstellungen → Server → Eigene Server → Routen → Routing offers:
| Choice | Meaning |
|---|---|
| Automatisch (default) | TravStats uses the provider that has a key or address configured |
| Aus | No routing; every line stays straight |
| A provider | OpenRouteService or GraphHopper (each needs an API key), or your own OSRM server (nothing leaves your network) |
Warnings. The provider is never emptied behind your back: only the provider select itself can set it to Aus. A provider that refuses the key (a rejected, expired or retired key) or fails three times in a row counts as down for 30 minutes; with Automatisch TravStats then uses the next configured provider, and it never picks OpenRouteService without a key. The roadtrip and tour pages say Routing-Anbieter antwortet nicht when lines were just drawn straight for that reason, and Einrichtung & Zustand lists the provider as a problem, with a one-click … verwenden when an instance key is stored but the choice is empty. An account’s own refused key marks only that account’s routing down, not the whole instance.
A provider’s free plan has a daily request quota. A batch stops with “quota used up” when it is spent and can run again the next day. Trains, trams and U-Bahn rides use an optional self-hosted OpenRailRouting (Bahn-Router), each mode over its own tracks; a ride that cannot be routed keeps the straight line with the reason beside it.
Re-route everything
Section titled “Re-route everything”Strecken neu routen (admins, under the routing provider) routes every straight-line leg again, in batches within the provider’s daily quota; a run can be cancelled, and the page shows its progress. Bahnstrecken neu routen does the same for rail rides once a rail router is set. A ride the pass could not draw stays listed as fixable.
Each roadtrip has Alle Etappen neu routen. A hand-drawn line is never overwritten by a re-route.
Ferry routes belong to a pair of ports
Section titled “Ferry routes belong to a pair of ports”A hand-drawn ferry line is stored for the pair of ports and applies to every crossing between them, in both directions, including crossings you add later. Nur diese Überfahrt keeps a line for one journey; the line can be cleared for all or for one crossing. Edit it with Strecke bearbeiten on the ferry card on the dashboard map. Short coastal crossings take the short way across, and river cruises follow the river.