public static double CalculateRatio( ILocation startLocation, ILocation endLocation, ILocation inter )