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