public double getPatternDistance ( String pattern_id ) { Pattern pattern = feed . patterns . get ( pattern_id ) ; return feed . getTripDistance ( pattern . associatedTrips . iterator ( ) . next ( ) , false ) ; }
Get distance for a pattern . Uses the first trip associated with the pattern .