def _EuclidianDistances(self,slist):
    """Calculate euclidian distances between stops.

    Uses the stoplists long/lats to approximate distances
    between stations and build a list with y-coordinates for the
    horizontal lines in the graph.

    Args:
      # Class Stop is defined in transitfeed.py
      stoplist: [Stop, Stop, ...]

    Returns:
      # One integer for each pair of stations
      # indicating the approximate distance
      [0,33,140, ... ,X]
    """
    e_dists2 = [transitfeed.ApproximateDistanceBetweenStops(stop, tail) for
                (stop,tail) in itertools.izip(slist, slist[1:])]

    return e_dists2
def _EuclidianDistances ( self , slist ) : e_dists2 = [ transitfeed . ApproximateDistanceBetweenStops ( stop , tail ) for ( stop , tail ) in itertools . izip ( slist , slist [ 1 : ] ) ] return e_dists2
Calculate euclidian distances between stops.

    Uses the stoplists long/lats to approximate distances
    between stations and build a list with y-coordinates for the
    horizontal lines in the graph.

    Args:
      # Class Stop is defined in transitfeed.py
      stoplist: [Stop, Stop, ...]

    Returns:
      # One integer for each pair of stations
      # indicating the approximate distance
      [0,33,140, ... ,X]