In recent years, smart city accompanies with Internet of Things development is a novel research field. The convenient transportation is a vital research issue. It aims at solving traffic congestion problem and improving traffic flexibility. In addition, it achieves intelligent transportation systems more efficient and convenient. However, existing literature on ride-sharing vehicle is mostly restricted to fixed routes. Passengers must get on and off ride-sharing vehicle according to boarding points and alighting points rather than their requirements of travel routes. As a result, the paper presents a novel ride-sharing method. We define the path planning problem of multi-passengers for ride-sharing vehicles then propose two algorithms, i.e., simulated annealing-based waiting time algorithm and simulated annealing-based shortest path algorithm. The simulation results show that the proposed method in the paper is able to plan the most suitable routes for multi-passengers ridesharing vehicles.