Ridesplitting is an effective mode of sustainable transportation and has rapidly spread in China. So, it is necessary to study the influencing factors of ridesplitting. However, as an important dimension, time has not been incorporated into the traditional model. In this paper, the GTWR model is be used to explore the spatiotemporal factors of ridesplitting demand, and compared with the traditional GWR model, the results show that GTWR model has stronger explanatory capabilities. Furthermore, we visualize the temporal and spatial heterogeneity of model coefficients to analyze the spatiotemporal correlation between ridesplitting demand and influencing factors. Based on this, we find that the impact of built environmental factors on ridesplitting demand will change over time.