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