The calculated distance (air line) between Townsville and Mareeba is approximately 182 miles respectively 292 kilometers.
By car or train, the actual journey to Mareeba is certainly longer, as only the direct route (as the crow flies) between Townsville and Mareeba has been calculated here.
Air line (approximately)
292 kilometers
158 nautical miles