Correctly compute polyline geographical length.
On-board depart: use correct distance computation.

Fraction covered computation was slightly invalid for L shaped segments.
Invert the fraction computation as it was wrong in the first place.
Trip web-service: use a simpler matching factor.

Also isolate trip matching factor computation in a specific method to ease customization.