Research Article
ATIPS: Automatic Travel Itinerary Planning System for Domestic Areas
Algorithm 2
Tourist spot selection algorithm.
| THR: range of radius, default 30 km | | ct: current time | | ot: opening time of spot | | rt: rest time of spot | | sp: candidate spot | | cp: current position | | rawData = : all of spots | | (1) For each rawData AND dist(cp, ) ≦ THR | | (2) IF .ot ≦ ct AND ct ≦ .rt THEN | | (3) score = | | (4) IF maxScore < score THEN | | (5) maxScore = Score; | | (6) sp = ; | | (7) ENDWHILE | | (8) return sp; |
|