Taxi-ridesharing has significant benefits e.g. it reduces pollution as number of taxis on road are less, the cost to riders is low, the driver to make more profit. The general idea of Taxi-ridesharing is that drivers and riders use mobile phones connected to a web service to arrange rides. In this paper we propose a taxi-ridesharing service that reduces the total travelling distance per taxi and travelling cost per person significantly. In our method, we first use Taxi searching algorithm to quickly retrieve taxis that are likely to satisfy a user query. After this step, we have proposed a scheduling algorithm with time-window which reduces the total distance travelled by the taxi. We have evaluated our algorithms using trajectory dataset of 20 taxis. This analysis has helped to know how various ridesharing systems could affect the transportation service.