When a user is ahead schedule or a new point of interest must be suggested the algorithm retrieves from database the existing points of interest and checks if the visiting duration plus both travel durations (from and to the point of interest) are compatible with the ahead time (time gap). If more than one point of interest can be inserted, the best alternative is chosen using the best choice algorithm