The calculated distance (air line) between Dorchester and Hamilton is approximately 64 miles respectively 103 kilometers.
By car or train, the actual journey to Hamilton is certainly longer, as only the direct route (as the crow flies) between Dorchester and Hamilton has been calculated here.
Air line (approximately)
103 kilometers
56 nautical miles