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