Next Article in Journal
Bio-Inspired Intelligent Swarm Confrontation Algorithm for a Complex Urban Scenario
Previous Article in Journal
Detecting Smell/Gas-Source Direction Using Output Voltage Characteristics of a CMOS Smell Sensor
Previous Article in Special Issue
Civil Aeronautical Ad Hoc Network Zero-Overhead Clustering Algorithm Based on Realtime Position Information of the Aircraft
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Intelligent Geo-Tour Route Recommendation Algorithm Based on Feature Text Mining and Spatial Accessibility Model

1
Institute of Culture and Tourism, Leshan Vocational and Technical College, Leshan 614000, China
2
Institute of Geospatial Information, Information Engineering University, Zhengzhou 450001, China
3
Center for Southeast Asian Economic and Culture Studies, Chengdu Normal University, Chengdu 611130, China
*
Authors to whom correspondence should be addressed.
Electronics 2024, 13(10), 1845; https://doi.org/10.3390/electronics13101845
Submission received: 7 April 2024 / Revised: 28 April 2024 / Accepted: 7 May 2024 / Published: 9 May 2024
(This article belongs to the Special Issue Advances in Intelligent Systems and Networks, 2nd Edition)

Abstract

:
In view of the problems in planning and recommending tour routes, this paper constructs a feature text mining (FTM) method and spatial accessibility model (SAM) as the key factors for scenic spot recommendation (SSR) and tour route recommendation (TRR). The scenic spot clustering algorithm (SSCA) based on FTM was constructed by tourists’ text evaluation data mining. Considering the spatial attributes of scenic spots, the scenic spot topology tree algorithm (SSTTA) based on dynamic buffer spatial accessibility (DBSA) was constructed. The optimal scenic spots were recommended based on interest matching and spatial accessibility optimization. As to the recommended scenic spots, this paper proposes an optimal tour route recommendation algorithm (TRRA) based on SSTTA, which aims to determine the optimal adjacent section path structure tree (ASPST) with the lowest cost under travel constraints and transportation modes. The experiment verifies that the proposed algorithm can recommend scenic spots that match tourists’ interests and have optimal spatial accessibility, and the optimal tour routes with the lowest costs under certain travel constraints. Compared with the searched sub-optimal tour routes, the optimal tour route recommended by the proposed algorithm produces the lowest travel costs, and all the scenic spots in the tour route meet the tourists’ interests. Compared with the commonly used BDMA and GDMA methods, the proposed algorithm can determine the optimal routes with lower travel costs.

1. Introduction

1.1. Research Background and Problem Analysis

The core aim of intelligent tourism recommendation systems is to provide scenic spots and routes for tourists. There are many ways to recommend scenic spots, for instance, predicting tourists’ interests based on their browsing activities on tourism websites, and recommending scenic spots based on the click frequencies. The recommendation system searches for users who have similar behavior habits to the tourists and recommends similar users’ favorite scenic spots to the current users. In addition, scenic spots can be recommended through the user’s subjective evaluation scores. Based on tourism big data, the system recommends the popular routes with high scores evaluated by previous tourists. However, existing tourism recommendation systems have certain deficiencies and limitations [1,2]. The user’s behavior when browsing tourism websites is random, and the clicking frequencies that really represent tourists’ interests account for a small proportion of a large number of clicking behaviors. Meanwhile, tourists have relatively low awareness of unfamiliar tourism cities and urban scenic spots. Clicking behaviors only indicate that tourists have a certain preference for the scenic spot’s name and introduction, which does not represent whether the feature attributes of the scenic spot can really meet the tourists’ interests. By evaluating previous tourists whose behaviors are similar to the current tourists, the system recommends the scenic spots and tour routes that the previous tourists have visited. This method is designed on user similarity, and the recommendation results may not meet the tourists’ requirements. Because of the individual differences, the behaviors of previous tourists cannot directly represent the real interests of the current tourists. The method to recommend scenic spots by users’ evaluation scores takes scenic spots as the basic unit. Tourists’ scoring on scenic spots relies on their subjective judgments, since they lack knowledge of scenic spots, such as the tourism functions and feature attributes of the scenic spots. The recommended scenic spots may not match the tourists’ interests [3,4].

1.2. Related Theoretical Foundations

For the target of scenic spot recommendation, it is necessary to consider the tourist interest features and scenic spot attributes, including feature attributes and spatial attributes. By constructing the matching relationship between tourist interest needs and scenic spot attributes, a matching model between tourist demand data and scenic spot functions could be directly established, thereby recommending the optimal scenic spots for tourists. On the basis of recommending the best scenic spots, the proposed algorithm integrates urban geospatial data and searches for the most cost-effective tour routes according to different travel modes, which can minimize travel costs and improve tourist satisfaction. According to the research objectives, the theoretical foundations involved in constructing the model mainly include the following aspects.
(1)
Text-mining method. We use the text-mining algorithm to obtain the feature attributes of scenic spots. Text information, such as descriptions of scenic spots, evaluations of tourists, and related literature, serves as the data source for mining the attributes of scenic spots. The label attributes are quantified by using the text statistics method to obtain the clustering features of text labels in the different attribute categories and obtain the attribution of scenic spots.
(2)
Clustering method. The clustering method is an unsupervised learning method in data mining that clusters objects with similar attribute relationships into one class, while objects with distant attribute relationships are dispersed into different classes. By using text statistics and label quantification, the clustering degree of each scenic spot on the text attribute in each cluster is obtained, thereby achieving scenic spot clustering.
(3)
Spatial accessibility model. Spatial accessibility describes the difficulty of traveling from a certain point to a destination point, which is usually measured by the straight-line distance or travel distance between two points. We adopted the spatial accessibility method to measure the accessibility difficulty between the current starting point and the target scenic spot in order to dynamically search for the scenic spot with the best spatial accessibility.
(4)
Graph theory method. Graph theory is a method of abstracting real-world problems into graphics and solving the problems via geometric calculation methods. The urban road network used in our proposed route algorithm is suitable for abstracting as a graph. Scenic spots and road nodes can be abstracted as vertices of the graph, and the roads connecting scenic spots and nodes can be abstracted as edges of the graph. According to the algorithm definition, the constructed graphs are all closed graphs, and the weighted edges are all unidirectional flowing edges.
(5)
Route-planning method. The route-planning method is a type of method that mainly plans routes that meet preset conditions based on the spatial points as the framework. Our proposed route-planning method aims to minimize travel costs, including two categories: minimizing time costs and minimizing the cost of expenses. By searching for road nodes between the starting point and target point, we constructed the sub-intervals between points and searched for the shortest path in each sub-interval, which could iteratively generate a route with the lowest cost in the entire domain.

1.3. The Structure and Research Content of the Work

Based on the analysis of the background and theoretical foundations, we constructed an intelligent route-recommendation algorithm based on feature text mining and the spatial accessibility model. The structure and research content of this work are as follows.
(1)
Introduction. Elaborates on the background of the problem, theoretical foundations, and work structure;
(2)
Related work analysis. Summarizes and analyzes the literature closely related to the research content in recent years, compare the research content with relevant literature, and summarize the advantages of our study;
(3)
Methodology. The research methodology consists of three parts:
Constructing an unsupervised clustering algorithm for scenic spots based on feature text mining and implementing a text-mining algorithm to cluster scenic spots in feature attributes within the research domain, which provides preconditions for the scenic spot recommendation;
Constructing a scenic spot topology tree algorithm based on spatial accessibility dynamic buffer searching to recommend scenic spots for tourists from the perspectives of feature attribute matching and optimal spatial accessibility;
Constructing an optimal tour route planning algorithm based on the scenic spot path structure tree, which searches for the route with the lowest travel cost for tourists based on the recommended scenic spots.
(4)
Experiment and result analysis. Designs a sample experiment using the tourism city of Chengdu to verify the feasibility of the proposed algorithm. At the same time, the comparative experiment is designed and compared with the electronic maps commonly used for planning tourism routes, and obtain the advantages of the proposed algorithm;
(5)
Conclusion and prospect. Summarizes the research content of the whole study and discusses the limitations of the proposed method and the improvements in the next steps of research.

2. Related Work

2.1. Analysis of Related Work

Yun et al. [5] used the Naive Bayes model to evaluate users’ interests. This method finally improved the collaborative filtering algorithm’s performance and increased the recommendation accuracy. Lin [6] proposed a depth CTR recommendation model based on the gradient lifting tree and factor decomposer, which improved the performance of the recommendation system. Pacheco et al. [7] brought forward a deep-learning recommendation system on scenic spots based on the Internet of Things and improved the system’s performance. Han [8] proposed a scenic spot recommendation method, combining geographical labeled photos with time, space, and visual embedding. Zheng et al. [9] proposed a two-stage greedy algorithm based on crowd sensing to solve the problem of TRR. The crowd sensing score mechanism was used to explore the locations of POIs surrounding scenic spots and the influence of user evaluations of scenic spots, by which the tour routes were planned. Lyu [10] used the convolutional neural network to construct a tour route-planning algorithm, which had good learning control ability and convergence performance. It could improve the reliability of tour route planning. Niu [11] proposed a smart tour guide system based on attraction positioning and recommendation. The RankSVM + time algorithm and K-means clustering algorithm were used to obtain the scenic spot recommendation, and the route algorithm was then set up to plan tourist routes. Finally, a smart tour guide system was set up. Li et al. [12] constructed a tour route algorithm based on an improved knowledge ant colony algorithm, taking the maximization of the overall satisfaction of all tourist groups as the objective function. The algorithm can determine the optimal route with higher efficiency.
Based on the above analysis, the current research on SSR and the TRR mainly focuses on optimizing the algorithm performance and efficiency, or increasing the recommendation accuracy, searching tour routes with high algorithm efficiency, etc. Therefore, SSR and TRR still have the following problems.
(1)
They usually ignore the studies on tourists’ interests and focus on mathematical issues, such as algorithm optimization and computational speed. This type of research mode has certain significance for improving the recommendation algorithm’s performance, but it is difficult for individual tourists to obtain the maximum motive benefits by recommending scenic spots and tour routes while ignoring their interests;
(2)
The research on the functional attributes of scenic spots is insufficient, especially on the scenic spot categories and the scenic spots’ capacities to match tourists’ interests. This problem results in the fact that the recommended scenic spots do not fully match tourists’ interests, further causing the planned tour routes to not satisfy their needs, which greatly reduces the tourists’ motive benefits. The core issue of tour route planning is always to meet the tourists’ satisfaction. However, some research has not fully considered the core issue, as well as urban geospatial conditions, urban traffic conditions, and other factors.

2.2. The Superiority of the Proposed Method

To solve the problems, we constructed an intelligent geo-tour route-recommendation algorithm (TRRA) based on feature text mining (FTM) and the spatial accessibility model (SAM). The scenic spot clustering algorithm (SSCA) was constructed by text data mining, and the scenic spots were clustered by SSCA. Using the text labels as the interest data standard, we constructed the tourist interest tendency model to obtain the matching relationship between the scenic spots and the tourists’ interests, and then determined the recommended category and scenic spots for the tourists. In view of the particularity and complexity of the urban geospatial environment, and considering the tourists’ travel conditions, the spatial distribution and spatial accessibility of urban scenic spots were considered as the important factors for recommending scenic spots and planning tour routes. Combined with the tourists’ preferences in choosing transportation modes, the TRRA based on SAM was constructed. Through the proposed method, the tour routes could not only meet the tourists’ interests, but also have an optimal geospatial distribution. On the premise of meeting tourists’ interests, the recommended tour routes could reduce travel costs and improve tourists’ motive benefits [13,14].

2.2.1. Comparison with Literature Work

Based on the analysis of existing studies, the proposed algorithm has significant advantages over the literature [5,6,7,8,9,10,11,12].
Reference [5] used the Naive Bayes method and collaborative filtering method to recommend scenic spots. The Naive Bayes classification algorithm itself has flaws. In the case of a missing quantity or score of certain attribute features, it might cause the calculation result of conditional probability to be 0, resulting in sample classification error and causing interest matching bias. The collaborative filtering algorithm is essentially a recommendation based on the similarity of users or scenic spots, and it does not set up the algorithm from the perspective of the current tourists’ interest matching. The advantage of the proposed algorithm lies in obtaining accurate interest evaluations of tourists, and then recommending scenic spots with the best-matched feature attributes. It has no defects and higher accuracy.
The algorithms constructed in references [6,7] aim to improve the AUC (area under the ROC curve), cross entropy, recall, accuracy, etc. of recommendation algorithms, and they still make improvements from the perspective of optimizing algorithm performance, ignoring the core issues of interest matching and maximizing dynamic benefits. The advantage of our proposed algorithm lies in its exploration of tourist interests, scenic feature attributes, and route optimization, with the goal of searching for the global optimal solution. From the perspective of satisfying tourist interests and motive interests, it searches for the best-matched scenic spot and the most cost-effective route.
Reference [8] adopted the method of mining geographical photos to obtain the historical tourism positioning and interests of tourists, thereby optimizing the tourism recommendation model. The mode of mining and collecting historical photos still relies on mining historical data to obtain recommendations that approximate interests; it cannot represent the current tourists’ interests, which is a flaw in mining historical data for interest research. The advantage of our proposed algorithm lies in avoiding the mining of historical data and directly using current tourist interest data and current tourism city geospatial data as sources for matching the best scenic spots and searching for the best routes, resulting in higher accuracy.
Reference [9] recommended tour routes based on crowd perception, without recommending scenic spots from the perspective of individual tourist interest and matching with feature attributes, nor did it present a complete specific algorithm for planning the lowest-cost route based on the best-matched scenic spots. The advantage of our proposed algorithm lies in recommending the best-matched scenic spots based on tourist interests, and searching for the lowest-cost routes based on the current geographical and spatial constraints of tourism cities. It not only meets the personalized needs, but also minimizes the travel costs.
The method constructed in reference [10] aims to optimize the learning control ability and convergence performance of the route-planning algorithm, while the algorithm constructed in reference [11] aims to improve the speed and accuracy. Essentially, it is still an improvement on the computer algorithm, without considering the personalized needs of tourists and the attributes of scenic spots, and without considering the geospatial constraints to search for the route with the lowest cost. The advantage of our proposed algorithm is that it can search for the optimal scenic spots and routes to meet the interests of tourists and reduce costs.
The method constructed in reference [12] aims to meet the needs of tourist groups and improve the revenue of tourism enterprises without considering the personalized needs of individual tourists. When constructing a route algorithm, the goal is to improve the algorithm’s computational speed, which is essentially optimizing the algorithm, rather than improving tourist satisfaction. The advantage of our proposed algorithm lies in meeting the interests of individual tourists and searching for the global lowest-cost route.

2.2.2. Comparison with the Commonly Used Route-Planning Methods

In actual tourism activities, the route-planning tool used by tourism enterprises, travel agencies, or tourists is an electronic map. The most commonly used electronic maps are Baidu Map, Gaode Map, etc. Due to the influence of the GPS navigation hardware usage environment and the limitations of software map data, there are some insurmountable problems in using electronic maps to plan routes:
(1)
In order to avoid certain factors, such as traffic lights, intersections, and congested road conditions, electronic maps sometimes recommend longer routes to users without considering transportation modes, resulting in increased travel costs;
(2)
The recommended route is the overall route and cannot change the shortest path and ferrying mode between route nodes based on user needs and changes in transportation modes;
(3)
It is easy to overlook secondary roads and road nodes with identical functions, resulting in the searched route potentially not being the shortest. Especially for those cities with very complex road structure networks, the recommended number of routes is generally limited to 3–4, and due to the complexity of the road network and many nodes, other alternative optimal routes might be ignored. The map-searching algorithm may output local or approximate optimal solutions, rather than global optimal solutions.
In comparison, the proposed algorithm can effectively solve these problems. It considers two modes: the optimal travel time and the lowest route cost. It takes the subspace between two scenic spots as the local area of the searching route and collects all nodes within the subspace and traverses all nodes to search for the global optimal solution. The algorithm considers different transportation modes. The experiment shows that, when the transportation modes are “taxis” and “buses + shared bicycles (or walking)”, the overall performance of the algorithm is stable, and it can determine routes with lower costs than Baidu Map and Gaode Map in each sub-interval, making the overall output route cost the lowest. According to the calculation results, when the transportation mode is “taxi”, the cost weight of the proposed algorithm is 1.079 higher than Baidu Maps and 1.051 higher than Gaode Maps; When the transportation mode is “bus + shared bicycles (or walking)”, the cost weight of the proposed algorithm is 1.126 higher than Baidu Maps and 0.943 higher than Gaode Maps. The higher the weight is, the lower the total cost of the line will be. By comparison, it can be seen that the proposed algorithm is more cost-effective than Baidu Maps and Gaode Maps in terms of travel costs.

3. Methodology

Tourists usually have a habit of evaluating their travel experience after visiting scenic spots. They often provide subjective and genuine text evaluations. The text evaluations of a scenic spot by tourists imply their interest preferences for scenic spots and can reflect the basic functional attributes of the scenic spot. By mining and analyzing a large number of historical tourists’ text evaluations, we used the unsupervised learning method to build the SSCA and obtain the functional categories of scenic spots in the form of clustering. The purpose of the SSCA is to determine the functional attributes of scenic spots to meet tourists’ interests and provide structured data for matching the tourists’ interests and designing the scenic spot recommendation algorithm. Therefore, the design of a tourist interest evaluation matrix based on FTM can help in obtaining the tendencies of tourists’ interest in the functional attributes of tourism. Through mining the interest tendencies for the functional attributes and matching with the functional attributes of scenic spots, the SSRA based on tourists’ interests was constructed. In the urban geospatial environment, tourists will be constrained by the geospatial conditions when traveling. Therefore, optimal tour route planning based on the recommended scenic spots must consider the real-world tourism conditions. Urban scenic spots are distributed in different geographical locations, with different spatial attributes and accessibilities. The higher accessibility a scenic spot has, the easier it is for tourists to get to, and the lower the travel cost will be, and vice versa. The spatial accessibilities of scenic spots have a direct impact on travel costs. For two scenic spots that both satisfy tourists’ interests, the scenic spot with higher accessibility has superiority in distance and cost. Thus, considering the actual travel conditions, it is necessary to combine the spatial attributes and accessibilities as factors to construct the SSRA to ensure that the recommended scenic spots are optimal in functional attributes and spatial accessibilities, and can well match the tourists’ interests and travel conditions [15,16,17]. Based on the recommended scenic spots, the TRRA was constructed with the different transportation modes selected by tourists.

3.1. The Modeling of the SSCA Based on FTM

Historical tourists’ text evaluations of scenic spots contain massive interest knowledge. Mining scenic spot evaluation text can obtain the interest tendency for the scenic spot category [18,19,20,21,22]. The principle of modeling is as follows: Divide several unknown clusters based on the features and functional attributes of the urban scenic spots, and each cluster will contain a certain number of scenic spots. According to the clustering features and functional attributes, expand the feature text of each unknown cluster, which represents its internal features. Based on the feature text of the different unknown clusters, the interest mining algorithm for the scenic spot evaluation text was constructed to obtain the functional attribute tendency for the scenic spots, and then finally obtain the cluster for each scenic spot.
Definition 1. 
Unknown scenic spot cluster S ( i ) , scenic spot s ( i , j ) in cluster S ( i ) , and cluster capacity n ( i ) . The categories used to distinguish the features and functional attributes of the scenic spots are defined as the unknown scenic spot cluster S ( i ) , 0 < i p , i , p N , and p is the number of cluster S ( i ) . A sample scenic spot x in the research domain is grouped into an unknown cluster S ( i ) , and the scenic spot is defined as a cluster of scenic spots s ( i , j ) in cluster S ( i ) , where i is the cluster number and j is the scenic spot number in cluster S ( i ) . The number of scenic spots x included in the cluster S ( i ) after the clustering process is defined as the clustering capacity n ( i ) .
Definition 2. 
Cluster feature text t ( i , j ) , cluster feature text vector t ( i ) , and cluster feature text matrix T . Regarding the unknown scenic spot cluster S ( i ) , confirm m the number of text keywords that can stand for the functional attributes and scenic spot features of cluster S ( i ) . Define the text keyword as the cluster feature text, noted as t ( i , j ) , 0 < i p , i , p N , where i corresponds to cluster S ( i ) and j represents No. j feature text t ( i , j ) of cluster S ( i ) . The 1 × m dimension vector t ( i ) is constructed based on cluster S ( i ) and feature text t ( i , j ) . The vector contains m number of elements, and each element stores one cluster feature text t ( i , j ) . This vector is defined as the cluster feature text vector. Footmark i order of unknown cluster S ( i ) is the row of vector t ( i ) , and footmark j of feature text t ( i , j ) is the column. A p × m dimension matrix T is constructed to store p feature vectors t ( i ) , which is defined as the cluster feature text matrix.
According to the definition, t ( i , j ) , t ( i ) , and T meet the following constraints:
(1)
All of t ( i , j ) are the text elements, and t ( i ) and T are the text vector and the text matrix respectively, t ( i , j ) 0 , t ( i ) 0 , and T 0 ;
(2)
Any element of t ( i , j 1 ) and t ( i , j 2 ) can satisfy the condition t ( i , j 1 ) t ( i , j 2 ) ;
(3)
The vector t ( i ) must be fully ranked, and the rank satisfies r a n k ( t ( i ) ) c o = m ;
(4)
The row rank and the column rank of T satisfy r a n k ( T ) r o = p and r a n k ( T ) c o = m , and any two rows and any two columns are nonlinearly correlated. The no. i row of the matrix corresponds to the vector t ( i ) .
Formula (1) is constructed from t ( i , j ) , t ( i ) , and T .
T = t ( 1 ) t ( i ) t ( p ) ,   T = t ( 1 , 1 ) t ( 1 , j ) t ( 1 , m ) t ( i , 1 ) t ( i , j ) t ( i , m ) t ( p , 1 ) t ( p , j ) t ( p , m )
Definition 3. 
Feature text word frequency f ( t ( i , j ) ) , feature text word frequency vector f ( i ) , and feature text word frequency matrix F of the sample scenic spot x . For any scenic spot x , a large amount of evaluation text on tourism websites is obtained and stored in a structured format to form an original text dataset T e x t . The frequency of the cluster feature text t ( i , j ) of the sample x in the text dataset T e x t is defined as the word frequency f ( t ( i , j ) ) of the feature text. A 1 × m dimension vector f ( i ) is constructed corresponding to a feature text vector t ( i ) of an unknown cluster. The vector contains m elements, and each element stores one feature text word frequency f ( t ( i , j ) ) of vector t ( i ) . This vector is defined as the feature text word frequency vector. Relating to T , a p × m dimension matrix F is constructed to store p feature text word frequency vectors f ( i ) . The cluster footmark order i is set as the vector row and the feature text t ( i , j ) footmark j is set as the column.
Regarding the definition, f ( t ( i , j ) ) , f ( i ) , and F meet the following constraints:
(1) f ( t ( i , j ) ) is a numerical element. f ( i ) and F are the numerical vector and matrix, f ( t ( i , j ) ) 0 , f ( i ) 0 , F 0 ;
(2) Vector f ( i ) must be a full rank, and the rank of the column satisfies r a n k ( f ( i ) ) c o = m ;
(3) The row rank and the column rank of matrix F satisfy r a n k ( F ) r o = p and r a n k ( F ) c o = m . Row no. i of the matrix corresponds to vector f ( i ) .
Formula (2) is constructed as the relationship among f ( t ( i , j ) ) , f ( i ) , and F .
F = f ( 1 ) f ( i ) f ( p ) ,   F = f ( t ( 1 , 1 ) ) f ( t ( 1 , j ) ) f ( t ( 1 , m ) ) f ( t ( i , 1 ) ) f ( t ( i , j ) ) f ( t ( i , m ) ) f ( t ( p , 1 ) ) f ( t ( p , j ) ) f ( t ( p , m ) )
The sample scenic spots x in the urban geographical space are evaluated by the tourists to obtain the textual expression of their functional attributes. Usually, the tourists evaluate the functional attributes of the scenic spots from the perspective of interests, so that the functional attributes and categories of the scenic spots can be determined by the text knowledge. As to the sample scenic spots x , massive text evaluations are mined and then their feature text word frequencies are obtained. By modeling the feature text word frequency, the function categories of the sample scenic spots x can be obtained and the scenic spots can be classified into certain unknown clusters S ( i ) as cluster elements s ( i , j ) .
Definition 4. 
The scenic spot cluster absolute objective function f ( x ) i and the scenic spot cluster relative objective function Δ f ( x ) i . The scenic spot cluster absolute objective function f ( x ) i reflects the feature text word frequency f ( t ( i , j ) ) statistics of unknown cluster S ( i ) corresponding to the sample scenic spots x , and it represents the absolute tendency of the sample scenic spots x being gathered to cluster S ( i ) . The scenic spot cluster relative objective function Δ f ( x ) i reflects the proportion of the feature text word frequency f ( t ( i , j ) ) corresponding to the unknown cluster S ( i ) of the sample scenic spots x in the total statistical amount of feature text word frequency f ( t ( i , j ) ) of the total p number of clusters S ( i ) . It represents the relative tendency of the sample scenic spots x being gathered to cluster S ( i ) .
The scenic spot cluster absolute objective function f ( x ) i and scenic spot cluster relative objective function Δ f ( x ) i based on FTM and feature text word frequency f ( t ( i , j ) ) are constructed as Formulas (3) and (4).
f ( x ) i = j = 1 m f ( t ( i , j ) )
Δ f ( x ) i = j = 1 m f ( t ( i , j ) ) i = 1 p j = 1 m f ( t ( i , j ) )
Definition 5. 
Scenic spot cluster tendency vector F d . The 1 × p dimension descending order vector is constructed based on the scenic spot cluster relative objective function Δ f ( x ) i . The vector stores the relative function value Δ f ( x ) i in the form of the maximum heap, and it is defined as the scenic spot cluster tendency vector, noted as F d . The vector element is noted as F d ( i ) .
The vector storage mode meets the maximum heap condition:
(1)
The vector F d is full-rank, and the rank is r a n k ( F d ) = p ;
(2)
For any of i and j , if there is i > j , there must be F d ( i ) F d ( j ) ;
(3)
The element F d ( 1 ) corresponds to the maximum function value max Δ f ( x ) i and the element F d ( p ) corresponds to the minimum function value min Δ f ( x ) i .
The SSCA based on FTM is constructed as follows (Algorithm 1). Figure 1 shows the algorithm flow of the SSCA based on FTM.
Algorithm 1: The SSCA based on FTM
Input: Samples x , text data set T e x t .
Output: Cluster S ( i ) with n ( i ) number of samples x ~ s ( i , j ) .
  Step 1 Preset clusters S ( i ) , 0 < i p , and i , p N . Confirm m number of t ( i , j ) for each S ( i ) . Initialize t ( i ) and T .
  Step 2For S ( 1 ) , search for row no. 1’s text t ( 1 , j ) of T in set T e x t , traverse j ~ ( 0 , m ] .
2.1 Search for f ( t ( 1 , 1 ) ) of t ( 1 , 1 ) , store f ( t ( 1 , 1 ) ) in f ( 1 , 1 ) of f ( 1 ) relating to S ( 1 ) .
2.2Search for f ( t ( 1 , 2 ) ) of t ( 1 , 2 ) , store f ( t ( 1 , 2 ) ) in f ( 1 , 2 ) of f ( 1 ) relating to S ( 1 ) .
2.3Search for f ( t ( 1 , j ) ) of t ( 1 , j ) , store f ( t ( 1 , j ) ) in f ( 1 , j ) of f ( 1 ) relating to S ( 1 ) , till j = m . End.
2.4Calculate f ( x ) 1 for S ( 1 ) .
  Step 3For S ( 2 ) , search for row no. 2’s text t ( 2 , j ) of T in set T e x t , traverse j ~ ( 0 , m ] .
3.1Repeat 2.1–2.3, search for f ( t ( 2 , j ) ) of t ( 2 , j ) , store f ( t ( 2 , j ) ) in f ( 2 , j ) of f ( 2 ) relating to S ( 2 ) , till j = m . End.
3.2Calculate f ( x ) 2 for S ( 2 ) .
  Step 4Repeat Step 3–Step 4. For S ( i ) , search for row no. i ’s text t ( i , j ) of T in set T e x t , traverse i ~ ( 2 , p ] , j ~ ( 0 , m ] , i , j , p , m N . Search for f ( t ( i , j ) ) of t ( i , j ) , store f ( t ( i , j ) ) in the related f ( i , j ) of f ( i ) relating to S ( i ) . Generate F and calculate f ( x ) i for S ( i ) .
  Step 5Based on F and f ( x ) i , calculate Δ f ( x ) i and store in F d .
5.1Compare Δ f ( x ) 1 and Δ f ( x ) 2 :
(1) If Δ f ( x ) 1 > Δ f ( x ) 2 , store Δ f ( x ) 1 in F d ( 1 ) and Δ f ( x ) 2 in F d ( 2 ) .
(2) If Δ f ( x ) 1 < Δ f ( x ) 2 , store Δ f ( x ) 2 in F d ( 1 ) and Δ f ( x ) 1 in F d ( 2 ) .
5.2Compare Δ f ( x ) 1 , Δ f ( x ) 2 , and Δ f ( x ) 3 :
(1) Store the maximum f ( x ) i in F d ( 1 ) .
(2) Store the sub-maximum f ( x ) i in F d ( 2 ) .
(3) Store the minimum f ( x ) i in F d ( 3 ) .
5.3Repeat 5.1–5.2, store f ( x ) i and traverse i ~ ( 3 , p ] , till i = p . End.
5.4Take the no. 1 F d ( 1 ) as the max Δ f ( x ) i , sample x ~ s ( i , j ) is clustered into S ( i ) of the F d ( 1 ) . Store x into S ( i ) and note it as s ( i , 1 ) .
  Step 6Repeat Step 2–Step 5, and calculate and cluster all samples x ~ s ( i , j ) into related S ( i ) . Note s ( i , j ) in each S ( i ) , 0 < j < n ( i ) , and j , n ( i ) N . End.

3.2. Modeling of the SSTTA Based on the DBSA

The scenic spot cluster knowledge and tourist features mined from the historical tourists’ text evaluations reflect the degree to which the tourists prefer an unknown cluster in the aspect of the interest tendency and also reflect the capacity of the scenic spots’ functional attributes to match tourists’ interests. First, based on the cluster feature text vector t ( i ) , the feature text is used as the quantitative label. The current tourists select and score the quantitative labels, by which the current tourists’ interest tendencies for the scenic spot cluster are obtained. Second, in the aspect of recommending scenic spots, it is necessary to further explore the tourists’ interests in a single scenic spot in each cluster. Regarding the feature text of the vector t ( i ) , the feature text function measurement values of the sample scenic spots are obtained from the urban tourism information service platform and the geographic information service platform. It is then matched with the tourists’ scoring on the feature text so as to obtain the matching degree of the functional attributes between a single scenic spot and the tourists’ interests. From the perspective of spatial features, the research domain is a certain geospatial range and the distributed scenic spots have spatial attributes, such as coordinates, azimuth, straight-line distance, travel distance, etc. Therefore, the spatial attributes must be taken into account when recommending tour routes. The process of tourists traveling among scenic spots will arouse time and fee costs, which are determined by the spatial accessibility of scenic spots [23,24,25,26,27,28]. Regarding the modeling idea, the relationship model between the tourists’ interests and the cluster of scenic spots is constructed, and the scenic spot searching model based on DBSA is constructed.
Definition 6. 
Tourist feature evaluation matrix S T u s e r and cluster scoring function f ( S T u s e r ) i . Based on the cluster feature text matrix T , the feature text t ( i , j ) corresponding to each cluster feature text vector t ( i ) in matrix T is assigned by the hundred percentage point system score of 100 for pre scoring. The score is S c ( i , j ) , 0 < S c ( i , j ) 100 , S c ( i , j ) R + . Construct a p × m dimension matrix S T u s e r with the same dimensions as matrix T . Row no. i of matrix S T u s e r corresponds to the scoring of cluster No. i ’s feature text vector t ( i ) , and column no. j represents the scoring of feature text no. j in cluster no. i . The matrix S T u s e r is defined as the tourist feature evaluation matrix. The scores in matrix S T u s e r are normalized and iterated to obtain the average statistical score of the tourists on the cluster. The function to obtain the average statistical score is defined as the cluster-scoring function, noted as f ( S T u s e r ) i . The cluster-scoring function value determines the tourists’ degree of interest in cluster S ( i ) . Formulas (5) and (6) are constructed as the tourist feature evaluation matrix S T u s e r and the cluster scoring function f ( S T u s e r ) i .
S T u s e r = S c ( 1 , 1 ) S c ( 1 , j ) S c ( 1 , m ) S c ( i , 1 ) S c ( i , j ) S c ( i , m ) S c ( p , 1 ) S c ( p , j ) S c ( p , m )
f ( S T u s e r ) i = j = 1 m S c ( i , j ) / 100 m
Definition 7. 
Scenic spot x ~ s ( i , j ) feature measurement matrix S T s ( i , j ) . Based on the cluster feature text matrix T , the feature text t ( i , j ) function measurement values S c ( i , j ) t of the sample scenic spots x ~ s ( i , j ) are obtained from the urban tourism information service platform and the geographic information service platform. Each value S c ( i , j ) t is scored by the hundred percentage point system, 0 < S c ( i , j ) t 100 , S c ( i , j ) t R + . Construct a p × m dimension matrix S T s ( i , j ) with the same dimensions as matrix T . Row no. i of matrix S T s ( i , j ) corresponds to the measurement value S c ( i , j ) t of the no. i cluster feature text vector t ( i ) of the sample scenic spot x ~ s ( i , j ) , and column no. j represents the measurement value of feature text no. j in cluster no. i . Matrix S T s ( i , j ) is defined as the feature measurement matrix of scenic spot x ~ s ( i , j ) .
Definition 8. 
Scenic spot x ~ s ( i , j ) feature-measurement function f ( S T u s e r , S T s ( i , j ) ) i . The number of scenic spots in cluster S ( i ) is n ( i ) . When the sample scenic spot x is listed as a cluster element s ( i , j ) , the measurement value of its cluster S ( i ) is extracted from the determined scenic spot feature-measurement matrix S T s ( i , j ) . The measurement value in row no. i of matrix S T s ( i , j ) expresses the feature attribute of scenic spot s ( i , j ) in its cluster. The measurement value that satisfies the tourists’ interests is defined as the feature measurement function S T s ( i , j ) of scenic spot x ~ s ( i , j ) .
Function f ( S T u s e r , S T s ( i , j ) ) i is constructed in Formula (7). By calculating the function values, the ability of each scenic spot s ( i , j ) in the same cluster S ( i ) to match tourists’ interests can be obtained. According to the definition, the higher the measurement function value is, the stronger the ability of a scenic spot to match tourists’ interests will be, and vice versa.
f ( S T u s e r , S T s ( i , j ) ) i = j = 1 m ( S c ( i , j ) S c ( i , j ) t ) / 100 2 1 / 2
In the tour route, each scenic spot can be regarded as a space point x . When searching for scenic spots in a tour route, the current scenic spot is reference point y when the tourists have finished visiting it and are preparing to search for the next scenic spot. Therefore, on the basis of ensuring that the scenic spot meets the tourists’ interests, the current scenic spot is taken as the reference point to search for the next one, which both meets the tourists’ interests and has the best spatial accessibility. According to the determinants of spatial accessibility, tourists are constrained by the urban geospatial conditions when they travel in an urban area. When tourists choose different kinds of transportation modes, the travel time, travel distance, and fee costs will be different.
Definition 9. 
Dynamic spatial accessibility function f A ( x , y ) . In urban space, the straight-line distance between space point x and space point y is d ( x , y ) . According to Definition 1, the number of scenic spots in the city meets n = i = 1 p n ( i ) . The sample scenic spot in the city is noted as x ( i ) , 0 < i < n , i , n N . If the current reference point y is an arbitrary scenic spot x ( i ) , then the dynamic spatial accessibility function f A ( x , y ) for scenic spot x ( j ) in the scenic spot set is constructed as Formula (8), 0 < j < n , j , n N , and i j .
f A ( x ( i ) , x ( j ) ) = d ( x ( i ) , x ( j ) ) j = 1 n d ( x ( i ) , x ( j ) ) , j i
When the reference scenic spot x ( i ) changes dynamically, the function value f A ( x , y ) will change. The search for the best scenic spot is a dynamic process, with the optimal value eliminating the sub-optimal one. Function value f A ( x , y ) reflects the accessibility measurement between point x ( j ) and reference point x ( i ) . The higher the function value is, the weaker the accessibility of point x ( j ) will be, and vice versa. When the dynamic reference point is always the same point, it is a special case for the spatial accessibility function f A ( x , y ) ; that is, the dynamic reference point is permanent for each iteration.
Definition 10. 
Dynamic searching buffer radius r ( a ) . When searching for the scenic spots for tour route, the current reference point x ( i ) is taken as the circle center, the radius r ( a ) is taken as the range to radiate the circular buffer, and the next point x ( i ) is searched in the buffer. When the best reference point x ( i ) cannot be found in the buffer, the radius is expanded to continue searching.
Definition 11. 
Reference point dynamic storage vector G . Starting from point A , the dynamic searching is carried out for the n number of scenic spots in all clusters S ( i ) . Under the constraints of cluster S ( i ) , the feature measurement function f ( S T u s e r , S T s ( i , j ) ) i and the dynamic space accessibility function f A ( x , y ) , a vector with dimension 1 × k is constructed according to the tourists’ expected number of scenic spots. The vector is used to store the qualified reference scenic spots, and it is defined as the reference point dynamic storage vector. Finally, the scenic spots stored in the vector will be recommended to the tourists.
According to the modeling idea and the above definitions, the SSTTA based on DBSA is constructed as follows (Algorithm 2). Figure 2 is the modeling process to construct the SSTTA. Figure 2a represents the scenic spot distribution map, Figure 2b represents the extracted scenic spots and starting point, Figure 2c is the constructed SSTT found by the searching algorithm, and Figure 2d–f represent the process to search the SSTT in multiple layers of buffers. Figure 3 shows the algorithm flow of the SSTTA based on DBSA.
Algorithm 2: The SSTTA based on DBSA
Input: Clusters S ( i ) , scenic spots s ( i , j ) , matrix S T u s e r , radius r ( a ) , k number of to be visited scenic spots, and starting point A .
Output: Vector G .
  Step 1Based on T , tourists make scores S c ( i , j ) on t ( i , j ) to form S T u s e r . Calculate f ( S T u s e r ) i for S ( i ) , traversing i ~ ( 0 , p ] , i , p N . Select k ( i ) number of scenic spots to be visited in each S ( i ) .
  Step 2In S ( i ) , confirm S T s ( i , j ) for each s ( i , j ) . Calculate f ( S T u s e r , S T s ( i , j ) ) i of s ( i , j ) based on S T u s e r .
  Step 3Input k , k ( i ) , r ( a ) , and A , search for the feasible s ( i , j ) .
3.1Confirm no. 1 buffer with r ( 1 ) and A . Mark the w 1 number of s ( i , j ) ( v ) in the buffer. i is the S ( i ) number, j is the number for s ( i , j ) ( v ) in S ( i ) , v is the number of s ( i , j ) ( v ) in buffer r ( 1 ) , 0 < v w 1 , v , w 1 N .
3.2Calculate f A ( s ( i , j ) ( v ) , A ) for the w 1 number of s ( i , j ) ( v ) .
3.3Search for s ( i 1 , j ) ( 1 ) and make judgement:
(1)
If s ( i 1 , j ) ( 1 ) S ( i 1 ) , k ( i 1 ) 0 , store s ( i 1 , j ) ( 1 ) in G ( 1 ) of the G .
(2)
If s ( i 1 , j ) ( 1 ) S ( i 1 ) , k ( i 1 ) = 0 , delete s ( i , j ) ( 1 ) . Turn to step 3.4
3.4Search for s ( i 2 , j ) ( 2 ) and make judgement:
(1)
If s ( i 2 , j ) ( 2 ) S ( i 2 ) , i 1 i 2 , k ( i 2 ) 0 , store s ( i 2 , j ) ( 2 ) in G ( 2 ) of the G .
(2)
If s ( i 2 , j ) ( 2 ) S ( i 2 ) , i 1 = i 2 , k ( i 2 ) 0 , compare s ( i 1 , j ) ( 1 ) and s ( i 2 , j ) ( 2 ) in f A ( s ( i , j ) ( v ) , A ) and f ( S T u s e r , S T s ( i , j ) ) i .
① If k ( i 2 ) = 1 :
(I)
f A ( s ( i 1 , j ) ( 1 ) , A ) > > f A ( s ( i 2 , j ) ( 2 ) , A ) and f ( S T u s e r , S T s ( i , j ) ) i has a slight difference, delete s ( i 1 , j ) ( 1 ) in G , store s ( i 2 , j ) ( 2 ) in G ( 1 ) ; f A ( s ( i 1 , j ) ( 1 ) , A ) < < f A ( s ( i 2 , j ) ( 2 ) , A ) and
f ( S T u s e r , S T s ( i , j ) ) i has a slight difference, keep s ( i 1 , j ) ( 1 ) in G and delete s ( i 2 , j ) ( 2 ) .
(II)
f ( S T u s e r , S T s ( i 1 , j ) ( 1 ) ) i > > f ( S T u s e r , S T s ( i 2 , j ) ( 2 ) ) i and f A ( s ( i , j ) ( v ) , A ) has a slight difference, keep s ( i 1 , j ) ( 1 ) in G and delete s ( i 2 , j ) ( 2 ) ; f ( S T u s e r , S T s ( i 1 , j ) ( 1 ) ) i < < f ( S T u s e r , S T s ( i 2 , j ) ( 2 ) ) i and f A ( s ( i , j ) ( v ) , A ) has a slight difference, delete s ( i 1 , j ) ( 1 ) in G and store s ( i 2 , j ) ( 2 ) in G ( 1 ) .
(III)
If one higher value of f A ( s ( i , j ) ( v ) , A ) or f ( S T u s e r , S T s ( i , j ) ) i exists, randomly select one scenic spot and store it in G ( 1 ) . Delete the other one.
② If k ( i 2 ) > 1 , store s ( i 2 , j ) ( 2 ) in G ( 2 ) of G .
(3)
Judge the number σ of stored scenic spots in G . If σ = k , End, output G ; If σ k , turn to step 3.5.
3.5Search no. b   s ( i b , j ) ( b ) . Judge S ( i b ) , number k ( i b ) of scenic spots, f A ( s ( i b , j ) ( b ) , A ) and
and f ( S T u s e r , S T s ( i b , j ) ( b ) ) i , traversing b ~ ( 0 , w 1 ] , b , w 1 N .
(1)
If s ( i b , j ) ( b ) S ( i b ) , i b i b , k ( i b ) 0 , store s ( i b , j ) ( b ) in G ( σ + 1 ) of G ;
(2)
If s ( i b , j ) ( b ) S ( i b ) , i b = i b , k ( i b ) 0 , compare s ( i b , j ) ( b ) of S ( i b ) with the other s ( i b , j ) ( b ) in f A ( s ( i , j ) ( v ) , A ) and f ( S T u s e r , S T s ( i , j ) ) i within the buffer r ( 1 ) :
k ( i b ) reaches the maximum.
(I)
f A ( s ( i b , j ) ( b ) , A ) < < f A ( s ( i b , j ) ( b ) , A ) and f ( S T u s e r , S T s ( i , j ) ) i has a slight difference. Delete the maximum f A ( s ( i b , j ) ( b ) , A ) in s ( i b , j ) ( b ) of G , store s ( i b , j ) ( b ) . Else, delete s ( i b , j ) ( b ) .
(II)
f ( S T u s e r , S T s ( i b , j ) ( b ) ) i f ( S T u s e r , S T s ( i b , j ) ( b ) ) i and f A ( s ( i , j ) ( v ) , A ) has a slight difference. Delete the minimum f ( S T u s e r , S T s ( i , j ) ) i in s ( i b , j ) ( b ) of G , store s ( i b , j ) ( b ) . Else, delete s ( i b , j ) ( b ) .
(III)
If f A ( s ( i , j ) ( v ) , A ) and f ( S T u s e r , S T s ( i , j ) ) i of s ( i b , j ) ( b ) are among the values of the other s ( i b , j ) ( b ) , delete the maximum f A ( s ( i , j ) ( v ) , A ) or the minimum f ( S T u s e r , S T s ( i , j ) ) i , store s ( i b , j ) ( b ) .
k ( i b ) does not reach the maximum. Store s ( i b , j ) ( b ) in G ( σ + 1 ) of G .
(3)
If arbitrarily one following condition is not satisfied, turn to step 3.6. Else, End, output G .
σ reaches σ = k ;
k ( i ) reaches the maximum.
3.6Confirm no. 2 buffer with A and r ( 2 ) , r ( 2 ) > r ( 1 ) . Mark the w 2 number of s ( i , j ) ( v ) in the area between r ( 1 ) and r ( 2 ) . In s ( i , j ) ( v ) , i is the cluster S ( i ) number, j is the number of s ( i , j ) ( v ) in S ( i ) , v is the number of s ( i , j ) ( v ) in the area, 0 < v w 2 , v , w 2 N . Repeat 3.1~3.5, search scenic spots, and store in G .
(1)
If G : σ reaches σ = k and k ( i ) reaches the maximum. End, output G ;
(2)
Else, expand r ( a ) and continue searching until σ reaches σ = k and k ( i ) reaches maximum. End, output G ;
  Step 4Output G , extract k number of scenic spots. The scenic spots in vector G meet the conditions:
(1)
All f A ( x , y ) are the minimum ones.
(2)
All f ( S T u s e r , S T s ( i , j ) ) i are the maximum ones.

3.3. Modeling of the OTRA Based on SSTTA

Urban scenic spots are located at different geographical coordinates in the city. When tourists start from starting point A to visit k scenic spots, they are constrained by urban geospatial factors, including:
(1) The urban roads between the points;
(2) The transportation mode chosen by the tourists;
(3) Travel time;
(4) Travel fees.
The tour route recommendation algorithm (TRRA) is constructed based on the constraints of urban geographical space, and the time cost and fee cost are taken into account. According to the vector G , the tourists determine one kind of travel sequence according to their interests. The travel sequence is constrained by the geographical conditions and cost factors. When the tourists consider the time cost or fee cost, the tour routes will be different, or the costs will be different [28,29,30,31]. According to the analysis, the tour route issue could be transformed into the issue of searching for the route with the lowest time cost or the lowest fee cost under the condition of the travel sequence, the geospatial factors as well as the tourists’ travel budgets. The travel sequence is as follows: visit scenic spot G ( i , 1 ) first, then scenic spot G ( i , 2 ) , until the following k scenic spots G ( i , k ) are visited. The footmark x in the scenic spot G ( i , x ) represents an arbitrary scenic spot selected by the tourists, 0 < x k , x , k N .
Definition 12. 
Tour route structure chain R and structure chain-adjacent section R ( G ( i , x ) , G ( i , y ) ) . From the starting point A , a chain is formed by the k + 1 points from G ( i , 1 ) to G ( i , k ) in the travel sequence; it is defined as the tour route structure chain R . If element G ( i , x ) in chain R is the current scenic spot, then the next scenic spot to be visited is G ( i , y ) . The section composed of G ( i , x ) and G ( i , y ) is defined as the structure chain-adjacent section R ( G ( i , x ) , G ( i , y ) ) . The adjacent section is the basic unit of the route chain, which is composed of the urban roads and road nodes.
Definition 13. 
Adjacent section control point P ( i ) and adjacent section control point set P ( G ( i , x ) , G ( i , y ) ) . The tourists pass through several urban roads and road nodes in the process of traveling from point G ( i , x ) to point G ( i , y ) . The key road nodes in the adjacent section R ( G ( i , x ) , G ( i , y ) ) of the structure chain between points G ( i , x ) and G ( i , y ) are defined as the adjacent section control points P ( i ) . A set of control points P ( i ) in section R ( G ( i , x ) , G ( i , y ) ) is defined as the adjacent-section control point set P ( G ( i , x ) , G ( i , y ) ) . Adjacent-section control points are determined by urban geospatial information, and their locations are abstracted from the city map.
Section R ( G ( i , x ) , G ( i , y ) ) which, is formed by the arbitrary two adjacent points G ( i , x ) and G ( i , y ) in chain R , is regarded as the basic unit, and its coordinates on the map are confirmed. The n number of control points in section R ( G ( i , x ) , G ( i , y ) ) are searched and confirmed, 0 < i < n , i , n N . Then, search to confirm the connecting path of the adjacent control points and determine the travel distances between two control points. Abstract the section into the graph edge and abstract the points into the graph vertices. Map the graph onto the two-dimensional space.
Definition 14. 
Adjacent-section-directed weighted-edge graph G = ( V , A ) . The graph that is used to describe the relationship between points and paths, adjacent relationship, and quantitative relationship is defined as the adjacent-section-directed weighted-edge graph G = ( V , A ) . The graph meets V = | n + 2 | , A = | m | . The adjacent points represent the urban path. Figure 4 shows the modeling process of the graph G = ( V , A ) for the structure chain-adjacent section R ( G ( i , x ) , G ( i , y ) ) .
Definition 15. 
Adjacent section feasible path P a t h ( c ) , adjacent section path structure tree T ( G ( i , x ) , G ( i , y ) ) , adjacent graph edge weight E ( α , k ) and path weight E ( P a t h ( c ) ) . The adjacent section R ( G ( i , x ) , G ( i , y ) ) is the basic unit. Based on the directed weighted graph G = ( V , A ) , set the starting point G ( i , x ) as the root node and terminal point G ( i , x ) as the target node. One feasible path that is formed by the searching algorithm between G ( i , x ) and G ( i , y ) is defined as the adjacent section feasible path P a t h ( c ) . Suppose that path P a t h ( c ) has α edge weights. The quantity of α differs along with the path quantity, and the related weights E ( α , k ) will be different. The structure tree formed by all feasible paths P a t h ( c ) is defined as the adjacent section path structure tree (ASPST), noted as T ( G ( i , x ) , G ( i , y ) ) . Figure 5 shows the modeling process of the ASPST of T ( G ( i , x ) , G ( i , y ) ) by using Figure 4c as an example.
Suppose the condition that the ASPST has g kinds of feasible paths, then there is 0 < c g , c , g N in P a t h ( c ) , in which there is only one path representing the optimal route with the minimum distance cost. In the weighted graph, if the travel distance between the two adjacent points P ( i ) and P ( j ) is set as d i s ( P ( i ) , P ( j ) ) ( α ) , the edge weight E ( α , k ) between the two points is constructed as Formula (9), where α represents the edge of the graph and k represents R ( G ( i , x ) , G ( i , y ) ) . In a path P a t h ( c ) , the total weight calculated by all edge weights E ( α , k ) is defined as the path weight E ( P a t h ( c ) ) , constructed as Formula (10). The weight for the tour route formed by k adjacent sections R ( G ( i , x ) , G ( i , y ) ) is constructed as the Formula (11).
E ( α , k ) = 1 d i s ( P ( i ) , P ( j ) ) ( α )
E ( P a t h ( c ) ) = 1 α = 1 max α E ( α , k )
E r o u t e = 1 α = 1 max α E ( α , 1 ) + + 1 α = 1 max α E ( α , k ) + + 1 α = 1 max α E ( α , max k )
Definition 16. 
Adjacent section feasible path vector P a t h . Based on T ( G ( i , x ) , G ( i , y ) ) , the searching algorithm will generate g kinds of feasible paths. Store the path weights E ( P a t h ( c ) ) that relate to the g kinds of feasible paths in a 1 × g dimension vector according to the sorting algorithm, the vector is defined as the adjacent section feasible path vector P a t h . The vector reflects the path conditions between points G ( i , x ) and G ( i , y ) , and the optimal route is extracted from the vector.
According to the definition, after the tourists confirm the starting point A , the reference point storage vector G , k number of scenic spots to be visited, and a kind of traveling sequence, the recommendation system will generate k adjacent sections R ( G ( i , x ) , G ( i , y ) ) , corresponding to the k number of trees T ( G ( i , x ) , G ( i , y ) ) . The k number of adjacent sections R ( G ( i , x ) , G ( i , y ) ) forms a complete tour route. The optimal TRRA based on SSTTA is constructed (Algorithm 3). B i d is the two-way pass, U i d + is the positive one-way pass, and U i d is the reversal one-way pass. Figure 6 shows the algorithm flow of the optimal TRRA based on SSTTA.
Algorithm 3: The optimal TRRA based on SSTTA
Input: Starting point A , vector G , and k number of scenic spots to be visited.
Output: Vector P a t h , the optimal P a t h ( c ) , and E r o u t e .
  Step 1Tourists confirm a tour sequence based on A and G , obtain R . Output k number of R ( G ( i , x ) , G ( i , y ) ) , 0 < i k , i , k N .
  Step 2For R ( G ( i , x ) , G ( i , y ) ) ( i ) , take i = 1 , confirm R ( A , G ( i , x ) ) ( 1 ) and G ( 1 ) = ( V , A ) .
2.1Confirm coordinates of A and G ( i , x ) . Search urban roads connecting A and G ( i , x ) . Confirm the n number of P ( i ) .
2.2Map A , G ( i , x ) , and P ( i ) onto 2D coordinate and form the basic structure G ( 1 ) = ( V , A ) .
2.3Search d i s ( P ( i ) , P ( j ) ) ( α ) among A , G ( i , x ) , and P ( i ) . Calculate E ( α ) of graph G ( 1 ) .
2.4Quantify the graph G ( 1 ) = ( V , A ) . The quantity vertex is V = | n + 2 | , edge A = | m | .
  Step 3Construct the tree T ( G ( i , x ) , G ( i , y ) ) .
3.1In R ( A , G ( i , x ) ) ( 1 ) , confirm the root node A and the target node G ( i , x ) .
3.2Search nearby P ( t ) to A , 0 < t max t < < n , and t , n N . Judge the A c c e s s between point A and P ( t ) :
(1)
If A c c e s s = B i d or A c c e s s = U i d + , connect A and P ( t ) to form the weight edge and assign value E ( α ) ;
(2)
If A c c e s s = U i d , A and P ( t ) do not form a positive weight edge and do not connect.
3.3Inspect P ( t ) , t ~ ( 0 , max t ] .
(1) Take P ( 1 ) as a vertex, search all P ( 1 , v ) connecting P ( 1 ) , 0 < v max v < < n , and v , n N . Judge A c c e s s between A and each P ( 1 , v ) :
① If A c c e s s = B i d or A c c e s s = U i d + , connect P ( 1 ) and P ( 1 , v ) to form the weight edge and assign value E ( α ) ;
② If A c c e s s = U i d , P ( 1 ) and P ( 1 , v ) do not form a positive weight edge and do not connect.
(2) Take P ( 2 ) as a vertex, search all P ( 2 , v ) connecting P ( 2 ) , 0 < v max v < < n , and v , n N . Judge A c c e s s between P ( 2 ) and each P ( 2 , v ) :
① If A c c e s s = B i d or A c c e s s = U i d + , connect P ( 2 ) and P ( 2 , v ) to form the weight edge and assign value E ( α ) ;
② If A c c e s s = U i d , P ( 2 ) and P ( 2 , v ) do not form a positive weight edge and do not connect.
(3) Take P ( t ) as a vertex, search all P ( t , v ) connecting P ( t ) , 0 < v max v < < n , and v , n N . Judge A c c e s s between P ( t ) and each P ( t , v ) :
① If A c c e s s = B i d or A c c e s s = U i d + , connect P ( t ) and P ( t , v ) to form the weight edge and assign value E ( α ) ;
② If A c c e s s = U i d , P ( t ) and P ( t , v ) do not form a positive weight edge and do not connect.
(4) Traverse t ~ ( 0 , max t ] , connect all lower level nodes P ( t , v ) with all P ( t ) .
3.4Expand to the lower-level nodes. Inspect P ( t , v ) , t ~ ( 0 , max t ] , and v ~ ( 0 , max v ] . Search all lower-level nodes P ( t , v , c ) of each P ( t , v ) . Judge A c c e s s between P ( t , v ) and P ( t , v , c ) :
(1)
If A c c e s s = B i d or A c c e s s = U i d + , connect P ( t , v ) and P ( t , v , c ) to form a weight edge and assign value E ( α ) ;
(2)
If A c c e s s = U i d , P ( t , v ) and P ( t , v , c ) do not form a positive weight edge and do not connect.
3.5Traverse all-level P ( i ) , 0 < t n , and i , n N until target G ( i , x ) is searched, End. Output g kinds of T ( A , G ( i , x ) ) .
  Step 4Store and form vector P a t h with the following steps.
4.1Initialize P a t h = 0 , element P a t h ( c ) , 0 < c g , and c , g N .
4.2Find P a t h ( 1 ) and P a t h ( 2 ) , extract E ( α ) of P a t h ( 1 ) and P a t h ( 2 ) , calculate E ( P a t h ( 1 ) ) and E ( P a t h ( 2 ) ) .
(1)
If E ( P a t h ( 1 ) ) E ( P a t h ( 2 ) ) , store P a t h ( 1 ) and P a t h ( 2 ) in P a t h ( 1 ) and P a t h ( 2 ) ;
(2)
If E ( P a t h ( 1 ) ) < E ( P a t h ( 2 ) ) , store P a t h ( 1 ) and P a t h ( 2 ) in P a t h ( 2 ) and P a t h ( 1 ) .
4.3Find P a t h ( 3 ) and calculate E ( P a t h ( 3 ) ) , compare E ( P a t h ( 1 ) ) , E ( P a t h ( 2 ) ) and E ( P a t h ( 3 ) ) .
(1)
Store the maximum E ( P a t h ( c ) ) in P a t h ( 1 ) .
(2)
Store the sub-maximum E ( P a t h ( c ) ) in P a t h ( 2 ) .
(3)
Store the minimum E ( P a t h ( c ) ) in P a t h ( 3 ) .
4.4Find other P a t h ( c ) and calculate E ( P a t h ( c ) ) . Descend to store P a t h ( c ) in P a t h . Traverse c ~ ( 0 , g ] . The path of P a t h ( 1 ) relates to the optimal one in R ( A , G ( i , x ) ) ( 1 ) .
  Step 5Repeat Step 2–Step 4, traverse i ~ ( 1 , k ] , and find P a t h of R ( A , G ( i , x ) ) ( i ) and optimal P a t h ( c ) for each R ( G ( i , x ) A , G ( i , y ) ) ( i ) . All P a t h ( c ) form an optimal tour route.
  Step 6Calculate E r o u t e formed by k number of R ( G ( i , x ) , G ( i , y ) ) .

4. Experiment and Result Analysis

4.1. Basic Principle and Process of the Experiment

The minimum cost path P a t h ( c ) generated by the ASPST of T ( G ( i , x ) , G ( i , y ) ) represents the minimum cost distance for the tourists to travel between points in the geographic space. When the tourists choose the traveling mode, the system will recommend different transportation modes and adopt the optimal path P a t h ( c ) in each section. Tourists usually consider the time cost and fee cost in the traveling process, which can be divided into two modes:
(1) Only consider the lowest time cost, and do not consider the fee cost. The system recommends “Taxi” as the transportation mode. Based on the tour route structure chain R and the route algorithm, it outputs the optimal distance path P a t h ( c ) for the taxis in each adjacent section to determine the optimal route.
(2) Only consider the lowest fee cost, and do not consider the time cost. The system recommends the “shared bicycle” mode, and outputs the optimal distance path P a t h ( c ) of the shared bicycle (or walking) in each adjacent section based on the tour route structure chain R and route algorithm, and then outputs the overall optimal route.
We chose the two modes as examples. The experimental process is as follows.
(1) Confirm the starting point A of the tour and the number of scenic spots k to be visited. Collect the evaluation data of urban scenic spots, and the quantity of text evaluations or introductions is more than 1000 pieces. The constructed SSCA is used to cluster the urban scenic spots to obtain the cluster distribution and cluster capacity.
(2) The tourists score the feature text and the system calculates the cluster scoring function f ( S T u s e r ) i , collect the feature measurement matrix S T s ( i , j ) of each scenic spot and calculate their feature measurement function f ( S T u s e r , S T s ( i , j ) ) i . By searching the geospatial data, the values of the spatial accessibility functions f A ( x , y ) for scenic spots are calculated based on point A . According to SSTTA, search for a total k number of scenic spots to be visited in the clusters.
(3) The tourists confirm the route structure chain, the system collects the adjacent sections and control points of the structure chain. Generate directed weighted-edge graphs for each adjacent section based on the set of control points, build ASPSTs, and output the feasible path vectors based on the constructed optimal route algorithm to determine the optimal path for each adjacent section. Based on the transportation mode selected by tourists, the route decision schemes for tourists are finally confirmed.

4.2. Scenic Spot Clustering Result

Take the tourism city Chengdu as an example. The collected scenic spots are:
  • x ( 1 ) : Kuanzhai Alley;
  • x ( 2 ) : Chunxi Road;
  • x ( 3 ) : Giant Panda Breeding Base;
  • x ( 4 ) : Qinglong Lake;
  • x ( 5 ) : Temple of Marquis;
  • x ( 6 ) : Happy Valley;
  • x ( 7 ) : Shengxian Lake Park;
  • x ( 8 ) : Jinsha Site;
  • x ( 9 ) : Wangjianglou Park;
  • x ( 10 ) : East Lake Park;
  • x ( 11 ) : Du Fu Cottage;
  • x ( 12 ) : Chengdu Zoo;
  • x ( 13 ) : GuoSeTianXiang Paradise;
  • x ( 14 ) : Eastern Suburb Memory;
  • x ( 15 ) : TaZiShan Park;
  • x ( 16 ) : Jincheng Lake;
  • x ( 17 ) : Sichuan Museum;
  • x ( 18 ) : Chengdu Yongling Museum;
  • x ( 19 ) : The People’s Park;
  • x ( 20 ) : South Lake Amusement Park.
The feature text vector is:
  • t ( 1 ) : Walking, flower appreciation, cruise, leisure, and drinking tea;
  • t ( 2 ) : The knowledge, the history, the humanity, investigation, and culture;
  • t ( 3 ) : Theme, entertainment, games, sports, and outdoor.
The feature text matrix is constructed with the feature text vector as the basic element. Collect the text evaluation data of each scenic spot x ( i ) from Ctrip, Tong Cheng, Qunar, and other tourism booking portals and gather them in the text dataset. Count the total number of vector t ( i ) word frequencies for each scenic spot and calculate the scenic spot clustering relative objective function value Δ f ( x ) i , shown in Table 1. From the values, the clustering tendency vector of each scenic spot x ( i ) is output and the cluster for each scenic spot is obtained, as shown in Table 2.

4.3. Recommendation Result of the Dynamic Buffer Optimal Scenic Spots

Condition 1: Tourists provide scores for the interest degree of each scenic spot text label, from which the system obtains the tourist feature evaluation matrix S T u s e r and then calculates the cluster scoring function values f ( S T u s e r ) i to obtain the tourists’ interest tendency for each cluster. Based on the feature measurement matrix S T s ( i , j ) of each scenic spot x ( i ) , the scenic spot feature measurement function is used to calculate the measurement function values f ( S T u s e r , S T s ( i , j ) ) i of each cluster of scenic spots.
Condition 2: Taking the starting point A selected by the tourists as the center, the spatial distance of each scenic spot x ( i ) is searched and the values of the spatial accessibility functions f A ( A , s ( i , j ) ) for the scenic spots are calculated. In the experiment, suppose that the starting point A chosen by tourists is Tianfu Square, and the expected scenic spot quantity is k = 5 .
The calculated results of the label quantitative scoring values for each scenic spot feature text and tourist feature evaluation function values corresponding to clusters are shown in Table 3. Table 4 presents the feature measurement function values f ( S T u s e r , S T s ( i , j ) ) i of the scenic spots’ cluster and the spatial accessibility function values f A ( A , s ( i , j ) ) with starting point A . In Table 4, value (1) is the function value f ( S T u s e r , S T s ( i , j ) ) i and value (2) is the function value f A ( A , s ( i , j ) ) .
Based on the constructed DBSA, the interested clusters for the sample tourist are S ( 2 ) , S ( 1 ) , and S ( 3 ) . The output scenic spots that satisfy the sample tourist’s interests and have the optimal spatial accessibility are:
  • s ( 2 , 2 ) : Wuhou Temple;
  • s ( 2 , 8 ) : Chengdu Yongling Museum;
  • s ( 1 , 1 ) : Kuan Zhai Alley;
  • s ( 1 , 2 ) : Chunxi Road;
  • s ( 2 , 7 ) : Sichuan Museum.

4.4. Result of the Optimal Tour Routes and Spatial Decision-Making

Based on the recommended five scenic spots, suppose that the sample tourist chooses one of the following sequences: A : Tianfu Square, s ( 2 , 2 ) : the Temple of Marquis, s ( 2 , 8 ) : Chengdu Yongling Museum, s ( 1 , 1 ) : Kuan Zhai Alley, s ( 1 , 2 ) : Chunxi Road, and s ( 2 , 7 ) : Sichuan Museum. The starting point of the tour is the Tianfu Square. According to the traveling sequence selected by the tourist, the system determines five adjacent sections and determines the set of control points within each section according to the geographical relationship of the scenic spots and the distributions of urban roads. Then, the system outputs the directed weighted-edge graphs and ASPSTs. Figure 7 shows the location distribution, path structure, generated ASPSTs and the optimal path for each adjacent section.
(1) Figure 7(a-1)–(a-3) represent the distribution of starting point and control points, the path among points, the ASPST of T ( A , s ( 2 , 2 ) ) , and the optimal path P a t h ( c ) in section R ( A , s ( 2 , 2 ) ) ;
(2) Figure 7(b-1)–(b-3) represent the distribution of starting point and control points, the path among points, the ASPST of T ( s ( 2 , 2 ) , s ( 2 , 8 ) ) , and the optimal path P a t h ( c ) in section R ( s ( 2 , 2 ) , s ( 2 , 8 ) ) ;
(3) Figure 7(c-1)–(c-3) represent the distribution of starting point and control points, the path among points, the ASPST of T ( s ( 2 , 8 ) , s ( 1 , 1 ) ) , and the optimal path P a t h ( c ) in section R ( s ( 2 , 8 ) , s ( 1 , 1 ) ) ;
(4) Figure 7(d-1)–(d-3) represent the distribution of starting point and control points, the path among points, the ASPST of T ( s ( 1 , 1 ) , s ( 1 , 2 ) ) , and the optimal path P a t h ( c ) in section R ( s ( 1 , 1 ) , s ( 1 , 2 ) ) ;
(5) Figure 7(e-1)–(e-3) represent the distribution of starting point and control points, the path among points, the ASPST of T ( s ( 1 , 2 ) , s ( 2 , 7 ) ) , and the optimal path P a t h ( c ) in section R ( s ( 1 , 2 ) , s ( 2 , 7 ) ) .
The control points in each ASPST are represented by letters a, b, c,…, etc. In each section, the initial point is A : Tianfu Square or scenic spot G ( i , x ) , the terminal point is scenic spot G ( i , y ) , and the two scenic spots are determined by the section R ( G ( i , x ) , G ( i , y ) ) point mark. In each structure tree, the path drawn in red is the searched optimal path. Extract the optimal path to obtain the path model in each section, mark the path’s two endpoints and control points, and calculate the path weight for each ASPST. The optimal path weights are:
  • Section R ( A , s ( 2 , 2 ) ) : 0.377;
  • Section R ( s ( 2 , 2 ) , s ( 2 , 8 ) ) : 0.223;
  • Section R ( s ( 2 , 8 ) , s ( 1 , 1 ) ) : 0.714;
  • Section R ( s ( 1 , 1 ) , s ( 1 , 2 ) ) : 0.304;
  • Section R ( s ( 1 , 2 ) , s ( 2 , 7 ) ) : 0.190.
According to the ASPSTs and the optimal paths, the system makes the spatial decision for the tourist. Analyze the travel schedule as follows.
  • Start from A : Tianfu Square;
  • Pass through the first section R ( A , s ( 2 , 2 ) ) ;
  • Arrive at the scenic spot s ( 2 , 2 ) ~ x ( 5 ) : Wuhou Temple, pay a visit;
  • Pass through the second section R ( s ( 2 , 2 ) , s ( 2 , 8 ) ) ;
  • Arrive at s ( 2 , 8 ) ~ x ( 18 ) : Chengdu Yongling Museum, pay a visit;
  • Pass through the third section R ( s ( 2 , 8 ) , s ( 1 , 1 ) ) ;
  • Arrive at s ( 1 , 1 ) ~ x ( 1 ) : Kuanzhai Alley, pay a visit;
  • Pass through the fourth section R ( s ( 1 , 1 ) , s ( 1 , 2 ) ) ;
  • Arrive at s ( 1 , 2 ) ~ x ( 2 ) : Chunxi Road, pay a visit;
  • Pass through the fifth section R ( s ( 1 , 2 ) , s ( 2 , 7 ) ) ;
  • Arrive at s ( 2 , 7 ) ~ x ( 17 ) : Sichuan Museum, pay a visit. The tour ends.
In the whole tour, visiting the scenic spots will create a fixed cost, with fixed time and fee costs, but moving in each section will generate different costs depending on the transportation mode. According to the travel conditions, the system provides the following two modes:
(1) Only consider the lowest time cost, and do not consider the fee cost. It recommends “taxi” as the transportation mode and provides the optimal path in each section;
(2) Only consider the lowest fee cost, but do not consider the time cost. It recommends the “shared bicycle” as the transportation mode.
Table 5 shows tour routes I, II, and III composed of the optimal and sub-optimal paths in each section, as well as the path total weight for each section and tour route total weight. In each section, letters are used to express the control points to form the path. The endpoints of section R ( G ( i , x ) , G ( i , y ) ) are the two points G ( i , x ) and G ( i , y ) . We obtain the following conclusion: of the three tour routes, tour route I is the optimal route, while tour route II and tour route III are the sub-optimal routes.
The travel time comparison of the optimal tour route and sub-optimal tour routes under the first mode in Table 6 and the fee cost comparison of the optimal tour route and sub-optimal tour routes under the second mode in Table 7 were obtained. The visiting time of each scenic spot is the optimal tour time recommended by the tourism information platform, and the visiting cost of each scenic spot is the minimum cost (i.e., ticket for scenic spot entrance). Taxis and shared bicycle modes are assessed based on the average speed and average price on the urban roads of Chengdu.

4.5. Comparison with Other Methods

We selected BaiDu Map (BDMA) and GaoDe Map (GDMA), which are commonly used in tour route planning, as the control group. The proposed algorithm (TRRA) was set as the experimental group. Under the constraint of the shortest travel time, search for the optimal route between the scenic spots by BDMA and GDMA. Based on the searched optimal route by BDMA and GDMA, confirm the rode nodes on the route and generate related ASPSTs. Calculate the weight E ( P a t h ( c ) ) of each road section and the total weight E r o u t e of the route by obtaining the distance between the road nodes. The comparison results are shown in Table 8, where t m = 1 represents the transportation mode “Taxi” and t m = 2 represents the transportation mode “shared bicycle”.

4.6. Experimental Result Analysis

The constructed SSCA was used to cluster the representative scenic spots of the tourism city Chengdu and recommend scenic spots to the sample tourist based on their interests. According to the tourism mode selected by the tourist, tour routes are searched for the tourist based on the recommended scenic spots to meet the condition of an optimal traveling time or an optimal traveling cost for the tourist. The experimental results were analyzed based on the clustering results, SSR results, TRR results, and method comparison.

4.6.1. Analysis of the SSCA Results

The feature text vector collected in the experiment met the modeling conditions, and the selected feature text represented one kind of scenic spot clustering. It had obvious differentiation with the other clusters. By mining the evaluation text, the clustering relative objective function value of each scenic spot is calculated, and then each scenic spot’s tendency for the feature text clusters is obtained. Analyzing the calculation results of the clustering relative objective function values in Table 1 and the clustering results of scenic spots in Table 2, each scenic spot has an apparent tendency for one cluster feature text vector, and the tendency for its own cluster is the highest.
(1) Scenic spots s ( 1 , 1 ) : Kuanzhai Alley, s ( 1 , 2 ) : Chunxi Road, s ( 1 , 3 ) : Qinglong Lake, s ( 1 , 4 ) : Shengxian Lake Park, s ( 1 , 5 ) : Wangjianglou Park, s ( 1 , 6 ) : East Lake Park, s ( 1 , 7 ) : Tazishan Park, s ( 1 , 8 ) : Jincheng Lake, and s ( 1 , 9 ) : People’s Park have the highest tendencies for cluster S ( 1 ) ~ t ( 1 ) , with values of s ( 1 , 1 ) : 0.657, s ( 1 , 2 ) : 0.659, s ( 1 , 3 ) : 0.701, s ( 1 , 4 ) : 0.660, s ( 1 , 5 ) : 0.581, s ( 1 , 6 ) : 0.620, s ( 1 , 7 ) : 0.493, s ( 1 , 8 ) : 0.676, and s ( 1 , 9 ) : 0.537, respectively.
(2) Scenic spots s ( 2 , 1 ) : The Giant Panda Breeding Base, s ( 2 , 2 ) : Wuhou Temple, s ( 2 , 3 ) : The Jinsha Site, s ( 2 , 4 ) : Du Fu Thatched Cottage, s ( 2 , 5 ) : Chengdu Zoo, s ( 2 , 6 ) : Eastern Suburb Memory, s ( 2 , 7 ) : Sichuan Museum, and s ( 2 , 8 ) : Chengdu Yongling Museum have the highest tendencies for cluster S ( 2 ) ~ t ( 2 ) , which are s ( 2 , 1 ) : 0.653, s ( 2 , 2 ) : 0.739, s ( 2 , 3 ) : 0.840, s ( 2 , 4 ) : 0.810, s ( 2 , 5 ) : 0.624, s ( 2 , 6 ) : 0.393, s ( 2 , 7 ) : 0.825, and s ( 2 , 8 ) : 0.815 respectively.
(3) Scenic spots s ( 3 , 1 ) : Happy Valley, s ( 3 , 2 ) : Guose Tianxiang Paradise, and s ( 3 , 3 ) : South Lake Amusement Park have the highest tendencies for cluster S ( 3 ) ~ t ( 3 ) , which are s ( 3 , 1 ) : 0.618, s ( 3 , 2 ) : 0.578, and s ( 3 , 3 ) : 0.577, respectively.
According to the clustering results, the capacity of cluster S ( 1 ) ~ t ( 1 ) was n ( 1 ) = 9 , the capacity of cluster S ( 2 ) ~ t ( 2 ) was n ( 2 ) = 8 , and the capacity of cluster S ( 3 ) ~ t ( 3 ) was n ( 3 ) = 3 . We obtained the following conclusions:
(1) The clustering results indicate that our proposed algorithm can extract the feature attributes of scenic spots based on the tourist text evaluation data and can accurately cluster the scenic spots according to the feature attributes;
(2) The modeling process quantifies the tourists’ interests and matches them with the feature attributes of the scenic spots so that the scenic spots that meet a certain type of tourists’ interests can be grouped into one cluster;
(3) When the system recommends scenic spots, it takes the cluster as a basic unit to ensure that the recommended scenic spots are more accurate.

4.6.2. Analysis of the SSR Results

Analyzing the quantitative value of the sample tourist’s label scoring on the scenic spot feature text in Table 3, we can conclude the following:
(1) The sample tourist provided different scores for the corresponding feature text labels for each cluster, indicating that the tourist had different interest degrees for each label;
(2) By calculating the tourist feature evaluation function values, the tourist’s interest tendency for each cluster is obtained. The evaluation function value of the cluster S ( 2 ) ~ t ( 2 ) is the highest, with a value of 0.894, followed by cluster S ( 1 ) ~ t ( 1 ) , with a value of 0.582, and finally cluster S ( 3 ) ~ t ( 3 ) , with a value of 0.324;
(3) The sample tourist had the highest degree of the interest in cluster S ( 2 ) ~ t ( 2 ) scenic spots, followed by cluster S ( 1 ) ~ t ( 1 ) scenic spots, and had the lowest degree of interest in cluster S ( 3 ) ~ t ( 3 ) scenic spots;
(4) It can be inferred that the tourist preferred parks and green land, leisure landscapes, museums, memorial halls, and similar scenic spots, but was not interested in amusement parks and theme parks.
2.
 Results Analysis of Table 4
Analyzing the feature measurement function values of the scenic spots in the clusters in Table 4 and the spatial accessibility function value of starting point A : Tianfu Square, we can conclude the following:
(1) The feature measurement function value for each scenic spot was different. The larger the feature measurement function value is, the higher the matching degree between the scenic spot and the tourist interests will be. The smaller the spatial accessibility function value is, the stronger the accessibility of scenic spot will be, and vice versa;
(2) The scenic spots that best matched the sample tourist’s interests were:
  • x ( 5 ) : Wuhou Temple;
  • x ( 11 ) : Du Fu Thatched Cottage;
  • x ( 17 ) : Sichuan Museum;
  • x ( 18 ) : Chengdu Yongling Museum.
(3) The most accessible scenic spot was x ( 19 ) : The People’s Park. The system recommends scenic spots by confirming the interest matching degree and the spatial accessibility at the same time. Combined with the conditions proposed by the tourist, the final scenic spots recommended were:
  • s ( 2 , 2 ) : Wuhou Temple;
  • s ( 2 , 8 ) : Chengdu Yongling Museum;
  • s ( 1 , 1 ) : Kuan Zhai Alley;
  • s ( 1 , 2 ) : Chunxi Road;
  • s ( 2 , 7 ) : Sichuan Museum.
Based on the comprehensive analysis, the recommended five scenic spots had the features of high feature measurement function values and strong spatial accessibility. The results verify that the algorithm can determine the scenic spots that best match tourists’ interests and have optimal space accessibility.

4.6.3. Analysis of the TRR Results

According to the constructed tour route searching algorithm, the tour route was divided into five adjacent sections based on the constraints provided by the sample tourist. Figure 7 shows the point distribution of each adjacent section, path structure, ASPST, and optimal path for each adjacent section output by the algorithm. The secondary icon letters a, b, c, d, and e in the figure represent adjacent sections. We can conclude the following:
(1) Figure 7(a-1,b-1,c-1,d-1,e-1) show the distribution of the section endpoints and the control points. The output results indicate that the control points cover all the key road nodes in the section and involve all roads;
(2) Figure 7(a-2,b-2,c-2,d-2,e-2) show the section of ASPST. The red circles in the figure represent the starting point and terminal point of the section, the white circles represent the control point, and the blue connecting lines represent the paths between points. Regarding the values on the lines, the black values represent the calculated section edge weights between two points and the brown values represent the distance of the path between two points on the map. The red lines represent the path with the shortest searching distance and the largest total route weight, corresponding to the optimal path between the starting point and the terminal point. The route will cause the lowest costs when the tourist travels along it;
(3) Figure 7(a-3,b-3,c-3,d-3,e-3) show the optimal path extracted from ASPST, and the corresponding path, nodes, and total path weight;
(4) The experimental results indicate that the algorithm covers all paths and control points in the sections, and can determine the optimal path.
2.
 Results Analysis of Table 5
Analyzing the output results of the tour routes in Table 5, we obtain the following conclusions:
(1) Under the condition of the selected travel sequence, tour route I is the optimal route searched by the algorithm, and tour route II and tour route III are the sub-optimal routes searched by the algorithm;
(2) In each route, the path total weight in any section R ( G ( i , x ) , G ( i , y ) ) of route I is larger than that of route II and route III, and the final result is that the total weight of route I is larger than that of route II and route III;
(3) The total weights of route I, route II, and route III were 1.808, 1.649, and 1.567, respectively. This indicates that the cost caused by the sample tourist when choosing route I was the lowest, followed by the route II and route III. The total weights of other routes in the ASPST were larger than those of route I, route II, and route III in the same section. If tourists choose other routes, it will cause higher costs. Therefore, route I is recommended by the system, followed by route II and route III.
3.
 Result Analysis of Table 6
Analyzing the data in Table 6, we obtain the following conclusions:
(1) Under the condition of the route recommendation results, the tourist choosing different tourism modes will generate different costs;
(2) When the tourist chooses the first mode and only considers the time cost while neglecting the fee cost, the traveling time cost generated by route I is 10.863 h, the traveling time cost generated by route II is 10.932 h, and the traveling time cost generated by route III is 10.956 h;
(3) Route II and route III cost 0.069 h and 0.093 h more than route I, respectively. At the same time, the fee cost of route I is 124.61 yuan, the fee cost of route II is 127.10 yuan, and the fee cost of route III is 127.64 yuan. The fee costs of route II and route III are 2.49 yuan and 3.03 yuan more than that of route I, respectively.
4.
 Result Analysis of Table 7
Analyzing the data in Table 7, we obtained the following conclusions:
(1) When the tourist chooses the second mode, only considering the fee cost while neglecting the time cost, the cost of the traveling fee generated by route I is 80.5 yuan, the fee cost of route II is 83.5 yuan, and the fee cost of route III is 83.5 yuan. The costs of route II and route III are 3.5 yuan and 3.5 yuan more than that of route I, respectively;
(2) The traveling time cost of route I is 11.422 h, the traveling time cost of route II is 11.545 h, and the traveling time cost of route III is 11.580 h. Route II and route III cost 0.123 h and 0.158 h more than route I, respectively;
(3) The optimal route is the one that causes the lowest time cost or the lowest fee cost, and the algorithm constructed in this study can recommend the optimal route to the tourists.

4.6.4. Analysis of the Algorithm Effectiveness and Performance

It can be concluded from the above analysis that, no matter which mode the sample tourist chooses, the time cost and fee cost of optimal tour route I are the lowest. The system recommends route I as the optimal tour route to the tourist for a tourism day. Both route II and route III generate more travel costs than route I, and the travel costs of other feasible routes are much higher. When the number of scenic spots and tourist days increases, the other routes will generate more time costs and fee costs than the optimal one.
(1) The proposed algorithm had good clustering ability. The scenic spot clustering was based on data mining of tourists’ text evaluations and the scoring on the feature text by the experimental sample tourist. The tourists’ interests were matched with the feature attributes of the scenic spots, which made the scenic spot clustering highly targeted and closely related to the tourists’ interest tendencies, finally improving the recommendation algorithm accuracy;
(2) The algorithm has the ability to accurately recommend scenic spots. The interest tendency is determined by the tourists’ evaluation scores, and is matched with the scenic spots in the cluster to obtain their abilities to meet the tourists’ interests in the aspect of feature attributes. The spatial distributions of the scenic spots that satisfy the interests are optimized by combining with spatial accessibility measurement. Then, the scenic spots satisfying the tourists’ interests and having the optimal spatial accessibility are obtained by the searching algorithm and recommended to tourists. The experiment proves that the algorithm constructed in this paper can recommend the best scenic spots for tourists, not only conforming to the tourists’ interests, but also being optimal in space accessibility, saving traveling costs;
(3) The algorithm can determine the optimal tour route that meets the needs of tourists under the constraint conditions, so that the time cost and fee cost of the tour route are both the lowest. The proposed tour route algorithm is based on the tourists’ interests and needs, the selected traveling modes, and the geospatial data. It can progressively determine the path with the lowest cost in each road adjacent section; thus, it has the characteristics of global searching. When the number of scenic spots and the traveling days increases, tourists will save much more traveling costs by choosing the optimal route, which will save the total energy consumed in the tour and help to achieve low-carbon and green tourism.

4.6.5. Analysis of the Comparison of Three Methods

Analyzing the results in Table 8, compared with BDMA and GDMA, when the transportation modes were “taxi” and “shared bicycle”, the TRRA had higher section weight E ( P a t h ( c ) ) in R ( A , s ( 2 , 2 ) ) , R ( s ( 2 , 8 ) , s ( 1 , 1 ) ) , R ( s ( 1 , 1 ) , s ( 1 , 2 ) ) , and R ( s ( 1 , 2 ) , s ( 2 , 7 ) ) . Only in R ( s ( 2 , 2 ) , s ( 2 , 8 ) ) was the weight E ( P a t h ( c ) ) lower than BDMA and GDMA, indicating that the overall performance of the TRRA was stable and it could determine paths with lower costs than BDMA and GDMA in total.
From the perspective of algorithm logic, the TRRA adopts a greedy method when searching for the ASPST, traversing all road nodes in the ASPST, so it can always determine the ASPST with the lowest cost and obtain the global solution. BDMA and GDMA search for urban main road nodes, which might overlook the accessible secondary roads and certain road nodes; thus, the solution might not be the optimal one.
Regarding the optimal route weights E r o u t e output by the three methods, when t m = 1 , the TRRA was 1.079 higher than BDMA and 1.051 higher than GDMA; when t m = 2 , the TRRA was 1.126 higher than BDMA and 0.943 higher than GDMA. It can be concluded that the TRRA saves more travel costs than BDMA and GDMA.

4.6.6. Superiority of the Proposed Algorithm

Through analysis, it can be concluded that the proposed algorithm has significant advantages over the methods used in the literature [5,6,7,8,9,10,11,12] and the commonly used electronic map methods used in tour route planning, as follows:
(1) The algorithm can achieve precise clustering of scenic spots within the research scope based on feature attributes. It can group the scenic spots that meet approximate interests and needs into one category cluster. And it has high clustering accuracy;
(2) It can effectively capture the tourist interests and recommend scenic spots with interest data that best match their feature attributes, achieving accurate recommendations;
(3) It can determine the globally optimal route within the research scope, that is, the route with the lowest travel cost, to avoid outputting an approximate optimal solution;
(4) It overcomes the problems in electronic map route planning and can determine the optimal route from the perspective of meeting tourist demands and minimizing travel costs. Compared with the routes planned by electronic maps, it can save more travel costs.

5. Conclusions and Prospect

5.1. Conclusions of This Research

Based on the analysis of the existing problems for TRR, we constructed a tour route-recommendation algorithm based on feature text mining (FTM) and the spatial accessibility model (SAM). In this research, we introduce tourists’ text evaluation data mining and SA measurement into scenic spot recommendation (SSR). First, a scenic spot clustering algorithm (SSCA) based on FTM is constructed. The tendency of a scenic spot being grouped into an unknown cluster is obtained by evaluating text mining for tourists in each scenic spot, and then the category of each scenic spot is obtained based on tourists’ interest text mining. Regarding the SSCA, a scenic spot topology tree algorithm (SSTTA) based on dynamic buffer spatial accessibility (DBSA) was constructed, through which the scenic spot spatial distribution is obtained; then, the optimal scenic spots with the best-matched interests and spatial distributions are recommended to the tourists. Based on the recommended scenic spots, tourists confirm the travel sequence and transportation mode, and an optimal tour route recommendation algorithm (OTRRA) based on SSTTA was constructed to recommend optimal tour routes for tourists. The experiment showed that the proposed algorithm had good clustering ability and could obtain scenic spot clusters based on tourists’ interests. The algorithm has the ability to accurately recommend scenic spots, which relies on the spatial accessibility and ability to match tourists’ interests, resulting in high recommendation accuracy. At the same time, the algorithm can determine the optimal tour route that meets tourists’ needs under constraint conditions, making the travel time and travel costs the lowest.

5.2. Application Scenarios

The application areas of the proposed algorithm mainly include several aspects.
Firstly, it can be used as an embedded algorithm to build scenic spot recommendation systems and route-recommendation systems, and develop handheld APPs or PC application systems. It can provide process methods for developing urban smart tourism information service platforms and also provide technical support for improving the quality of tourism city services.
Secondly, it can be used for the design and development of intelligent tourism electronic maps. For urban tourism, the development of smart tourism electronic maps dedicated to urban scenic spots and route recommendations is relatively weak. The proposed algorithm can be directly used to develop smart tourism electronic maps for cities, providing exclusive services for tourists.
Thirdly, it can be deeply integrated with technologies such as the Internet of Things and the Internet of Vehicles. The constructed scenic spot recommendation algorithm and route-planning algorithm can be integrated into the intelligent connected vehicle navigation system as a necessary embedded algorithm for developing intelligent navigation vehicles in smart tourism.

5.3. Limitations and Improvement Direction

Based on the algorithm objectives and the modeling process, it can be concluded that the proposed algorithm has certain limitations, and corresponding improvements could be made in the next research step. For example, the algorithm is mainly applicable to the main urban areas of tourism cities, with transportation methods such as urban buses, taxis, and shared bicycles, which does not involve cross-city scenic spot recommendations and route planning. When expanding the research area to counties around cities or adjacent cities, it is necessary to further construct algorithms with a larger scope based on cross-city scenic spots, cross-city roads, and cross-city transportation modes. In addition, the proposed algorithm mainly generates the global optimal route for the selection of a certain fixed transportation mode and is not suitable for randomly changing transportation modes. In the next step of research, for different route intervals of random transportation modes chosen by tourists, randomly choosing methods of transportation could be considered to design the optimal route algorithm, which can improve the flexibility and application scope of the algorithm.

Author Contributions

Conceptualization, X.Z., Z.Z., X.L. and M.S.; methodology, X.Z. and Z.Z.; formal analysis, X.Z., X.L. and M.S.; writing—original draft preparation, X.Z. and Z.Z.; writing—review and editing, X.Z., Z.Z., X.L. and M.S.; funding acquisition, X.Z., Z.Z. and X.L. All authors have read and agreed to the published version of the manuscript.

Funding

This study was supported by the Project of Henan Provincial Natural Science Foundation Project (No. 242300420624), the Project of the Key Research Base of Region and Country of Sichuan Province, Center for Southeast Asian Economic and Culture Studies (No. DNY2301), the National 13th Five-Year Plan Key R&D Projects (No. 2016YFB0502300), the National 14th Five-Year Plan Key R&D Projects (No. SQ2021YFB3900025), and Leshan Science and Technology Plan Project (No. 22ZRKX025).

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Arif, A.; Du, J.T. Understanding collaborative tourism information searching to support online travel planning. Online Inf. Rev. 2019, 43, 369–386. [Google Scholar] [CrossRef]
  2. Zhang, Q.; Liu, Y.; Liu, L.; Lu, S.; Feng, Y.; Yu, X. Location identification and personalized recommendation of tourist attractions based on image processing. Trait. Du Signal 2021, 38, 197–205. [Google Scholar] [CrossRef]
  3. Sarkar, J.L.; Majumder, A. A new point-of-interest approach based on multi-itinerary recommendation engine. Expert Syst. Appl. 2021, 181, 115026. [Google Scholar] [CrossRef]
  4. Ahmad, S.; Ullah, I.; Mehmood, F.; Fayaz, M.; Kim, D. Astochastic approach towards travel route optimization and recommendation based on users constraints using Markov chain. IEEE Access 2019, 7, 90760–90776. [Google Scholar] [CrossRef]
  5. Yun, L.Y.; Jiao, H.H.; Lu, K. Tourist Attraction Recommendation Method Based on Megadata and Artificial Intelligence Algorithm. Wirel. Commun. Mob. Comput. 2022, 2022, 4461165. [Google Scholar] [CrossRef]
  6. Lin, S.Q. Implementation of Personalized Scenic Spot Recommendation Algorithm Based on Generalized Regression Neural Network for 5G Smart Tourism System. Comput. Intell. Neurosci. 2022, 2022, 3704494. [Google Scholar] [CrossRef]
  7. Cepeda-Pacheco, J.; Domingo, M. Deep learning and Internet of Things for tourist attraction recommendations in smart cities. Neural Comput. Appl. 2022, 34, 7691–7709. [Google Scholar] [CrossRef]
  8. Han, S.S.; Liu, C.M.; Chen, K.Y.; Gui, D.W.; Du, Q.Y. A Tourist Attraction Recommendation Model Fusing Spatial, Temporal, and Visual Embeddings for Flickr-Geotagged Photos. ISPRS Int. J. Geo-Inf. 2021, 10, 20. [Google Scholar] [CrossRef]
  9. Zheng, X.; You, H.; Huang, H.; Sun, L.; Yu, Q.; Luo, Y. Two-stage greedy algorithm based on crowd sensing for tour route recommendation. Appl. Soft Comput. 2024, 153, 111260. [Google Scholar] [CrossRef]
  10. Lyu, H.J.; Han, Z.K. Algorithm of Scenic Spot Tourism Route Planning Based on Convolution Neural Network. Wirel. Commun. Mob. Comput. 2022, 2022, 5330611. [Google Scholar] [CrossRef]
  11. Niu, H. The effect of intelligent tour guide system based on attraction positioning and recommendation to improve the experience of tourists visiting scenic spots. Intell. Syst. Appl. 2023, 200263. [Google Scholar] [CrossRef]
  12. Li, S.; Luo, T.Y.; Wang, L.; Xing, L.N.; Ren, T. Tourism route optimization based on improved knowledge ant colony algorithm. Complex Intell. Syst. 2022, 8, 3973–3988. [Google Scholar] [CrossRef]
  13. Yuan, W.J.; Yang, L.; Yang, Q.; Sheng, Y.H.; Wang, Z.Y. Extracting Spatio-Temporal Information from Chinese Archaeological Site Text. ISPRS Int. J. Geo-Inf. 2022, 11, 175. [Google Scholar] [CrossRef]
  14. Eldeeb, G.; Mohamed, M. Transit electrification state of the art: A machine-learning based text mining approach. Transp. Res. Part D Transp. Environ. 2011, 111, 103446. [Google Scholar] [CrossRef]
  15. Ogryzek, M.; Podawca, K.; Cienciała, A. Geospatial tools in the analyses of land use in the perspective of the accessibility of selected educational services in Poland. Land Use Policy 2022, 122, 106373. [Google Scholar] [CrossRef]
  16. Zhou, H.L.; Tian, Z.P. Population mobility network and spatial accessibility based on peer-to-peer interactive energy management. Sustain. Comput. Inform. Syst. 2022, 36, 100800. [Google Scholar] [CrossRef]
  17. Luo, S.J.; Jiang, H.P.; Yi, D.S.; Liu, R.H.; Qin, J.H.; Liu, Y.S.; Zhang, J. PM2SFCA: Spatial Access to Urban Parks, Based on Park Perceptions and Multi-Travel Modes. A Case Study in Beijing. ISPRS Int. J. Geo-Inf. 2022, 11, 488. [Google Scholar] [CrossRef]
  18. Hou, J.; Yuan, H.Q.; Pelillo, M. Towards Parameter-Free Clustering for Real-World Data. Pattern Recognit. 2023, 134, 109062. [Google Scholar] [CrossRef]
  19. Hu, X. Geographic landscape space and tourism planning of Longtan Ancient Village. Bol. Tec./Tech. Bull. 2017, 55, 627–632. [Google Scholar]
  20. Tlili, T.; Krichen, S. A simulated annealing-based recommender system for solving the tourist trip design problem. Expert Syst. Appl. 2021, 186, 115723. [Google Scholar] [CrossRef]
  21. Kolahkaj, M.; Harounabadi, A.; Nikravanshalmani, A.; Chinipardaz, R. DBCACF: A multidimensional method for tourist recommendation based on users’ demographic, context and feedback. Recomm. Syst. 2019, 4, 209–219. [Google Scholar]
  22. Huang, C.D.; Goo, J.; Nam, K.; Yoo, C.W. Smart tourism technologies in travel planning: The role of exploration and exploitation. Inf. Manag. 2017, 54, 757–770. [Google Scholar] [CrossRef]
  23. Joshi, S. Social network analysis in smart tourism driven service distribution channels: Evidence from tourism supply chain of Uttarakhand, India. Int. J. Digit. Cult. Electron. Tour. 2018, 2, 255–272. [Google Scholar] [CrossRef]
  24. Zhang, T.; Cheung, C.; Law, R. Functionality evaluation for destination marketing websites in smart tourism cities. J. China Tour. Res. 2018, 14, 263–278. [Google Scholar] [CrossRef]
  25. Nguyen, T.T.; Camacho, D.; Jung, J.E. Identifying and ranking cultural heritage resources on geotagged social media for smart cultural tourism services. Pers. Ubiquitous Comput. 2017, 21, 267–279. [Google Scholar] [CrossRef]
  26. Lei, W.; Chen, G.; Bei, Z.; Yong, L. Deep learning based social-aware location recommendation. J. Terahertz Sci. Electron. Inf. Technol. 2019, 17, 502–508. [Google Scholar]
  27. Bo, Y.; Fei, Z.P. Review of the art of recommendation algorithms. J. Shanxi Univ. (Nat. Sci. Ed.) 2011, 34, 337–350. [Google Scholar]
  28. Gao, M.T.; Xu, B.Y. Recommendation algorithm based on circular neural network. Comput. Eng. 2019, 45, 198–202. [Google Scholar]
  29. Yao, X.H.; Sun, Y.; Sun, B.W.; Huang, Y. The Impact of the Urban Forest Park Recreation Environment and Perceived Satisfaction on Post-Tour Behavioral Intention—Using Tongzhou Grand Canal Forest Park as an Example. Forests 2024, 15, 330. [Google Scholar] [CrossRef]
  30. Telonis, G.; Panteli, A.; Boutsinas, B. A Point-of-Interest Recommender System for Tourist Groups Based on Cooperative Location Set Cover Problem. Mathematics 2023, 11, 3646. [Google Scholar] [CrossRef]
  31. Yoon, J.H.; Choi, C. Real-Time Context-Aware Recommendation System for Tourism. Sensors 2023, 23, 3679. [Google Scholar] [CrossRef] [PubMed]
Figure 1. The algorithm flow of the SSCA based on FTM.
Figure 1. The algorithm flow of the SSCA based on FTM.
Electronics 13 01845 g001
Figure 2. Modeling process for constructing the SSTTA.
Figure 2. Modeling process for constructing the SSTTA.
Electronics 13 01845 g002
Figure 3. Algorithm flow of the SSTTA based on DBSA.
Figure 3. Algorithm flow of the SSTTA based on DBSA.
Electronics 13 01845 g003
Figure 4. Modeling of the directed-weight edge graph of the structure chain-adjacent section. (a) Original distribution of scenic spots and road network. (b) Adjacent section. (c) Adjacent section control point set.
Figure 4. Modeling of the directed-weight edge graph of the structure chain-adjacent section. (a) Original distribution of scenic spots and road network. (b) Adjacent section. (c) Adjacent section control point set.
Electronics 13 01845 g004
Figure 5. Modeling process of ASPST of T ( G ( i , x ) , G ( i , y ) ) .
Figure 5. Modeling process of ASPST of T ( G ( i , x ) , G ( i , y ) ) .
Electronics 13 01845 g005
Figure 6. Algorithm flow of the optimal TRRA based on SSTTA.
Figure 6. Algorithm flow of the optimal TRRA based on SSTTA.
Electronics 13 01845 g006
Figure 7. Location distribution, path structure, ASPST, and optimal path for adjacent section.
Figure 7. Location distribution, path structure, ASPST, and optimal path for adjacent section.
Electronics 13 01845 g007aElectronics 13 01845 g007b
Table 1. Result of scenic spot clustering relative objective function value Δ f ( x ) i .
Table 1. Result of scenic spot clustering relative objective function value Δ f ( x ) i .
x ( 1 ) x ( 2 ) x ( 3 ) x ( 4 ) x ( 5 ) x ( 6 ) x ( 7 ) x ( 8 ) x ( 9 ) x ( 10 )
t ( 1 ) 0.657 0.659 0.255 0.701 0.177 0.305 0.660 0.066 0.581 0.620
t ( 2 ) 0.234 0.244 0.653 0.088 0.739 0.076 0.093 0.840 0.329 0.109
t ( 3 ) 0.109 0.097 0.092 0.211 0.084 0.618 0.246 0.093 0.090 0.272
x ( 11 ) x ( 12 ) x ( 13 ) x ( 14 ) x ( 15 ) x ( 16 ) x ( 17 ) x ( 18 ) x ( 19 ) x ( 20 )
t ( 1 ) 0.101 0.178 0.315 0.259 0.493 0.676 0.094 0.120 0.537 0.284
t ( 2 ) 0.810 0.624 0.107 0.393 0.205 0.116 0.825 0.815 0.185 0.139
t ( 3 ) 0.089 0.198 0.578 0.347 0.302 0.208 0.081 0.065 0.278 0.577
Table 2. Clustering result for scenic spot x ( i ) .
Table 2. Clustering result for scenic spot x ( i ) .
S ( i ) Cluster   of   Scenic   Spots   s ( i , j ) Cluster   Capacity   n ( i )
S ( 1 ) ~ t ( 1 ) s ( 1 , 1 ) ~ x ( 1 ) : Kuanzhai Alley; s ( 1 , 2 ) ~ x ( 2 ) : Chunxi Road;
s ( 1 , 3 ) ~ x ( 4 ) : Qinglong Lake; s ( 1 , 4 ) ~ x ( 7 ) : Shengxian Lake Park;
s ( 1 , 5 ) ~ x ( 9 ) :Wangjianglou Park; s ( 1 , 6 ) ~ x ( 10 ) : East Lake Park;
s ( 1 , 7 ) ~ x ( 15 ) :TaZiShan Park; s ( 1 , 8 ) ~ x ( 16 ) : Jincheng Lake;
s ( 1 , 9 ) ~ x ( 19 ) : The People’s Park.
n ( 1 ) = 9
S ( 2 ) ~ t ( 2 ) s ( 2 , 1 ) ~ x ( 3 ) : Giant Panda Breeding Base; s ( 2 , 2 ) ~ x ( 5 ) : Temple of Marquis; s ( 2 , 3 ) ~ x ( 8 ) : Jinsha Site; s ( 2 , 4 ) ~ x ( 11 ) : Du Fu Cottage;
s ( 2 , 5 ) ~ x ( 12 ) : Chengdu Zoo; s ( 2 , 6 ) ~ x ( 14 ) : Eastern Suburb Memory;
s ( 2 , 7 ) ~ x ( 17 ) : Sichuan Museum; s ( 2 , 8 ) ~ x ( 18 ) : Chengdu Yongling Museum.
n ( 2 ) = 8
S ( 3 ) ~ t ( 3 ) s ( 3 , 1 ) ~ x ( 6 ) : Happy Valley; s ( 3 , 2 ) ~ x ( 13 ) : GuoSeTianXiang Paradise;
s ( 3 , 3 ) ~ x ( 20 ) : South Lake Amusement Park.
n ( 2 ) = 3
Table 3. Calculated results of the label quantitative scoring values for each scenic spot feature text and tourist feature evaluation function values corresponding to clusters.
Table 3. Calculated results of the label quantitative scoring values for each scenic spot feature text and tourist feature evaluation function values corresponding to clusters.
S ( i ) Label Quantitative Scoring Values for Each Scenic Spot Feature TextTourist Feature Evaluation Function Values
S ( 1 ) ~ t ( 1 ) walkingflower appreciationcruiseleisuredrinking tea0.582
0.860.120.150.90.88
S ( 2 ) ~ t ( 2 ) knowledgehistoryhumanityinvestigationculture0.894
0.960.920.900.810.88
S ( 3 ) ~ t ( 3 ) themeentertainmentgamessportsoutdoor0.324
0.400.320.200.200.50
Table 4. Feature measurement function values f ( S T u s e r , S T s ( i , j ) ) i of the scenic spots’ cluster and spatial accessibility function values f A ( A , s ( i , j ) ) .
Table 4. Feature measurement function values f ( S T u s e r , S T s ( i , j ) ) i of the scenic spots’ cluster and spatial accessibility function values f A ( A , s ( i , j ) ) .
S ( 1 ) ~ t ( 1 ) x ( 1 ) x ( 2 ) x ( 4 ) x ( 7 ) x ( 9 ) x ( 10 ) x ( 15 ) x ( 16 ) x ( 19 )
Value (1)6.33724.19221.01381.51990.98680.98390.98681.09970.9868
Value (2)0.01010.01160.08910.04280.02970.03620.04420.07030.0059
S ( 2 ) ~ t ( 2 ) x ( 3 ) x ( 5 ) x ( 8 ) x ( 11 ) x ( 12 ) x ( 14 ) x ( 17 ) x ( 18 )
Value (1)0.95418.94437.78508.94430.89421.20008.94438.9443
Value (2)0.08410.01520.04130.02610.05070.04060.02250.0188
S ( 3 ) ~ t ( 3 ) x ( 6 ) x ( 13 ) x ( 20 )
Value (1)0.83440.83440.8344
Value (2)0.05650.17680.1275
Table 5. Tour routes I, II, and III composed of the optimal and sub-optimal paths in each section, as well as the path total weight for each section and tour route total weight.
Table 5. Tour routes I, II, and III composed of the optimal and sub-optimal paths in each section, as well as the path total weight for each section and tour route total weight.
Section R ( A , s ( 2 , 2 ) ) R ( s ( 2 , 2 ) , s ( 2 , 8 ) ) R ( s ( 2 , 8 ) , s ( 1 , 1 ) ) R ( s ( 1 , 1 ) , s ( 1 , 2 ) ) R ( s ( 1 , 2 ) , s ( 2 , 7 ) ) E r o u t e
Route I b , c , g , j a , d , g , k , j a , b , e , i , h
a , f , i , h
a , c , d , g , j
a , c , f , g , j
b , c , f , i , k , l 1.808
E ( P a t h ( c ) ) 0.3770.2230.7140.304 0.190
Route II b , c , d , h , g , j a , h , l , k , j a , b , e , g , h a , c , f , k b , e , h , i , k , l 1.649
E ( P a t h ( c ) ) 0.3000.222 0.6710.2750.181
Route III b , c , d , h , k , j a , h , g , k , j c , f , i , h a , c , d , e , h , g , j b , h , i , k , l 1.567
E ( P a t h ( c ) ) 0.2990.219 0.6060.2640.179
Table 6. Time cost comparison of the optimal tour route and sub-optimal tour routes under the first mode (unit: hours).
Table 6. Time cost comparison of the optimal tour route and sub-optimal tour routes under the first mode (unit: hours).
R ( A , s ( 2 , 2 ) ) s ( 2 , 2 ) R ( s ( 2 , 2 ) , s ( 2 , 8 ) ) s ( 2 , 8 ) R ( s ( 2 , 8 ) , s ( 1 , 1 ) ) s ( 1 , 1 )
Route I0.1342.00.226 2.00.071 2.0
Route II0.1672.00.227 2.00.075 2.0
Route III0.1692.00.231 2.00.083 2.0
R ( s ( 1 , 1 ) , s ( 1 , 2 ) ) s ( 1 , 2 ) R ( s ( 1 , 2 ) , s ( 2 , 7 ) ) s ( 2 , 7 ) Total time (hours)Total fee (yuan)
Route I0.166 2.00.266 2.010.863124.61
Route II0.184 2.00.279 2.010.932127.1
Route III0.191 2.00.282 2.010.956127.64
Table 7. Fee cost comparison of the optimal tour route and sub-optimal tour routes under the second mode (unit: yuan).
Table 7. Fee cost comparison of the optimal tour route and sub-optimal tour routes under the second mode (unit: yuan).
R ( A , s ( 2 , 2 ) ) s ( 2 , 2 ) R ( s ( 2 , 2 ) , s ( 2 , 8 ) ) s ( 2 , 8 ) R ( s ( 2 , 8 ) , s ( 1 , 1 ) ) s ( 1 , 1 )
Route I1.5503.0201.50
Route II3.0503.0201.50
Route III3.0503.0201.50
R ( s ( 1 , 1 ) , s ( 1 , 2 ) ) s ( 1 , 2 ) R ( s ( 1 , 2 ) , s ( 2 , 7 ) ) s ( 2 , 7 ) Total time (hours)Total fee (yuan)
Route I1.503.0011.42280.5
Route II3.003.0011.54583.5
Route III3.003.0011.58083.5
Table 8. Comparison of the E ( P a t h ( c ) ) and the E r o u t e of the three methods.
Table 8. Comparison of the E ( P a t h ( c ) ) and the E r o u t e of the three methods.
t m = 1 E ( P a t h ( c ) ) E r o u t e
R ( A , s ( 2 , 2 ) ) R ( s ( 2 , 2 ) , s ( 2 , 8 ) ) R ( s ( 2 , 8 ) , s ( 1 , 1 ) ) R ( s ( 1 , 1 ) , s ( 1 , 2 ) ) R ( s ( 1 , 2 ) , s ( 2 , 7 ) )
BDMA0.0850.2480.1880.1180.0900.729
GDMA0.0840.3300.0960.1300.1170.757
TRRA0.3770.2230.7140.3040.1901.808
t m = 2 E ( P a t h ( c ) ) E r o u t e
R ( A , s ( 2 , 2 ) ) R ( s ( 2 , 2 ) , s ( 2 , 8 ) ) R ( s ( 2 , 8 ) , s ( 1 , 1 ) ) R ( s ( 1 , 1 ) , s ( 1 , 2 ) ) R ( s ( 1 , 2 ) , s ( 2 , 7 ) )
BDMA0.0920.2370.0760.1140.1630.682
GDMA0.1150.3260.1310.1320.1610.865
TRRA0.3770.2230.7140.304 0.1901.808
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zhou, X.; Zhang, Z.; Liang, X.; Su, M. Intelligent Geo-Tour Route Recommendation Algorithm Based on Feature Text Mining and Spatial Accessibility Model. Electronics 2024, 13, 1845. https://doi.org/10.3390/electronics13101845

AMA Style

Zhou X, Zhang Z, Liang X, Su M. Intelligent Geo-Tour Route Recommendation Algorithm Based on Feature Text Mining and Spatial Accessibility Model. Electronics. 2024; 13(10):1845. https://doi.org/10.3390/electronics13101845

Chicago/Turabian Style

Zhou, Xiao, Zheng Zhang, Xinjian Liang, and Mingzhan Su. 2024. "Intelligent Geo-Tour Route Recommendation Algorithm Based on Feature Text Mining and Spatial Accessibility Model" Electronics 13, no. 10: 1845. https://doi.org/10.3390/electronics13101845

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop