Predicting vehicle trajectories can not only provide users with efficient travel suggestions, but also help traffic managers make better decisions. This paper aims to address the next position prediction problem to enable the prediction of the movement trajectory of an individual vehicle by considering where it will go. With this aim, it investigates using deep learning methods for predicting a vehicle’s next position based on its journey history. A deep learning model based on bidirectional long short-term memory (Bi-LSTM) with self-attention mechanism that fuses bayonet importance encoding (Bi-LSTMAI) is proposed, which can well capture both local and global semantic dependency. In specific, word embedding in natural language processing (NLP) is introduced to measure the relevance of bayonets and the PageRank algorithm is improved to obtain the bayonet importance encoding. By using real bayonet data, this research compares the prediction performance of the proposed model with several baselines, including LSTM, GRU, Bi-LSTM and Bi-GRU. The result shows that the proposed model yields better performance in all experimental metrics for the task of trajectory prediction.