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