src/main/java/com/conveyal/gtfs/stats/PatternStats.java
public double getPatternDistance (String pattern_id) {
        Pattern pattern = feed.patterns.get(pattern_id);

        return feed.getTripDistance(pattern.associatedTrips.iterator().next(), false);
    }
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.
@param pattern_id
@return distance (in meters)