algorithm for route planning taking into considiration the bad-weather