implemented earlier/later route search functionality