To improve the search efficiency of group travellers for travel information and optimise user experience, a model combining tourist attractions and travel route planning, namely the algorithm based on time, region, and popularity (TRPA), is proposed. The model first analyses the group travel recommendation algorithm that combines spatiotemporal factors and the popularity of travel attractions. Then it is introduced into the route algorithm based on time division (TDRA) model to further plan group travel routes, fully considering factors such as geography, time, and tourist attraction flow that affect people's travel decisions. The validation results on the dataset showed that the highest rating rate of TRPA-TDRA model reached 38%, which was about 30% higher than other models. This study fills the research gap in group travel attraction recommendation algorithms, providing new theoretical and methodological support for tourism management practices.