code: public double getAverageStopSpacing (String pattern_id) {
          Pattern pattern = feed.patterns.get(pattern_id);
          return getPatternDistance(pattern_id) / pattern.orderedStops.size();
      }
docs: Get average stop spacing for a pattern.
  @param pattern_id
  @return avg. stop spacing (in meters)