Understanding traveler route choice is a significant topic in the field of public transport. This thesis proposes a hidden markov chain based method to infer the passenger journey travel routes using public transportation from the sparse mobile phone location data. The casestudy conducted in Stockholm using the mobile application collected data demonstrates the algorithm’s effectiveness in aligning with real-world travel behavior. The inclusion of transfer penalties significantly improves the accuracy of the algorithm in predicting passenger routechoices. The implementation of efficient data structures, such as maps for storing costs, priors,and routes, greatly increases the computational speed of the map matching process. The research revealed the most popular public transport routes in Stockholm downtown area and displayed the actual public transport patterns preference. The study also identifies limitations related to data quality and suggests areas for future research to further enhance the robustness and applicability of the algorithm. Challenges in map-matching work arose due to the simplification of the walking network and the lack of detailed transit line information. For future research,the specific route information could optimize map-matching results,especiallyin spatial overlapping scenario.