Yokohama (Japan) and Toyota (Japan) are 230 km (143 mi) apart in a straight line. The way we suggest is by train, via Tokyo, Toyohashi and Okazaki: about 3h 40m door to door with 3 changes. No flight is needed.
Step by step
Train from Yokohama to Tokyo: about 25m, 29 km
Train from Tokyo to Toyohashi: about 1h 30m, 233 km
Train from Toyohashi to Okazaki: about 20m, 28 km
Train from Okazaki to Toyota: about 40m, 15 km
Every route we know
Train, via Tokyo, Toyohashi and Okazaki: about 3h 40m, 3 changes
Train, via Nagoya: ~4h 45m, 1 change
Times are rough door-to-door times, with time to change included. A "~" marks a rough time worked out from the distance. We don't have timetables, and fares are rough estimates, not quotes: check Google Maps or the operator before you travel.