Language: C / C++. The pull request has one bug. You get three tries to find the line, then a short debrief.
Couriers were paid a flat rate per delivery. From next month they get 42 cents per kilometre plus 50 cents per stop. The map service already splits every route into legs with a length in kilometres, so we add those up.
Codetrap needs JavaScript: the code review happens in your browser.