The calculated distance (air line) between Mexborough and Cardiff is approximately 160 miles respectively 258 kilometers.
By car or train, the actual journey to Cardiff is certainly longer, as only the direct route (as the crow flies) between Mexborough and Cardiff has been calculated here.
Air line (approximately)
258 kilometers
139 nautical miles