Public transportation is a crucial means for tourists to visit urban attractions. This study aims to explore pedestrian accessibility from tourist destinations to urban transportation hubs, using the renowned Yuyuan Garden in Shanghai as a case study and employing spatial syntax methodology. By investigating spatial relationships and accessibility levels from the perspectives of depth and choice. The research finds that the main transportation hubs around the Yuyuan Garden area have a limited capacity to attract visitors, and visitors have limited choices when it comes to using public transportation. Additionally, there are barriers from transportation hubs to the entrance of the tourist area, and some segments of accessibility overlap, posing challenges for the operation of the tourist area, especially during specific festivals. The study emphasizes the significance of the straightforward data acquisition method of spatial syntax for further research on transportation network accessibility, as well as the layout of commercial areas, tourist attractions, and historic districts. However, it also highlights the limitations of spatial syntax, including its abstraction, disregard for temporal attributes, and insufficient qualitative analysis. It acknowledges the subjectivity inherent in pedestrian accessibility and model creation.