The calculated distance (air line) between Palo Alto and Morelia is approximately 161 miles respectively 260 kilometers.
By car or train, the actual journey to Morelia is certainly longer, as only the direct route (as the crow flies) between Palo Alto and Morelia has been calculated here.