added the option for min dist vs off-route comparison