The calculated distance (air line) between Huancabamba and Cajamarca is approximately 148 miles respectively 238 kilometers.
By car or train, the actual journey to Cajamarca is certainly longer, as only the direct route (as the crow flies) between Huancabamba and Cajamarca has been calculated here.
Air line (approximately)
238 kilometers
129 nautical miles