The calculated distance (air line) between Huacho and Barranca is approximately 27 miles respectively 43 kilometers.
By car or train, the actual journey to Barranca is certainly longer, as only the direct route (as the crow flies) between Huacho and Barranca has been calculated here.