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