行驶 is specifically for vehicles (cars, trains, ships) moving along a route. For people walking, use
行走 (xíngzǒu). The related compound
驾驶 (jiàshǐ) means 'to drive/operate' (a vehicle), focusing on the driver, while
行驶 focuses on the vehicle's movement.