Something we ran into when putting border waits into truck ETAs, and I’m curious how others here model it.
Inside Schengen a border costs nothing. On the EU’s external frontier with Ukraine it can be the longest leg of the trip — and the distribution is not a bell curve. Ukraine’s electronic border queue (run by the State Customs Service, published as open data under CC BY 4.0) reports a live wait and queue depth per checkpoint and vehicle class. This morning, across its 38 truck queues:
- 15 at exactly 0 minutes
- 1 at 45 minutes, and 4 between about 3 and 10 hours
- nothing between 10 and 37 hours
- 18 from 37 hours up to 6 days 6 hours (the longest single queue: 1,603 trucks)
So an “average border wait” describes no crossing that exists, and any fixed buffer is either wasted margin or days short. The only useful question is binary and current: is this crossing, for this class of truck, moving right now?
Two details that bit us:
- One physical crossing publishes several queues — loaded trucks, empty trucks, certain cargo groups — at the same coordinates, and they diverge by days. Keying on the border post alone gives the wrong number.
- Coach queues at the same checkpoints are in the same feed; mixing them into a freight ETA understates the wait badly.
We ended up treating the crossing as a separate event on the route (wait + queue depth + time of arrival) rather than folding it into edge weights, because it changes on a timescale routing weights don’t. Has anyone handled something like this inside GraphHopper — custom model, a time-dependent penalty, or outside the engine entirely?
(Disclosure: I work on NAPSPAN, which aggregates European road data including this feed.)