public double getPatternSpeed ( String pattern_id , LocalDate date , LocalTime from , LocalTime to ) { List < Trip > trips = getTripsForDate ( pattern_id , date ) ; return getAverageSpeedForTrips ( trips , from , to ) ; }
Gets the pattern speed for a given pattern for a specified date and time window .