Research Article
IoT Architecture for a Sustainable Tourism Application in a Smart City Environment
Algorithm 1
Tourist route planning problem.
1: For in POI_list then | 2: For in POI_list then | 3: For in range() then | 4: For in transp_mode_list then | 5: Retrieve path_time_ | 6: End For | 7: path_cost = min(path_time_) | 8: queue_cost = retrieve queue_time_ | 9: Compute cost according to eq. (1) | 10: End For | 11: End For | 12: End For | 13: Find all opt_route that solve eq. (5) | 15: If there is more than 1 opt_route then | 16: Assign opt_route to the one that corresponds to | the shortest path | 18: End If |
|