The calculated distance (air line) between Hamamatsu and Hachiōji is approximately 111 miles respectively 179 kilometers.
By car or train, the actual journey to Hachiōji is certainly longer, as only the direct route (as the crow flies) between Hamamatsu and Hachiōji has been calculated here.