private string GetDistanceUnitString(Stop.DistanceUnit unitOfMeasure)
        {
            switch (unitOfMeasure)
            {
            case Stop.DistanceUnit.Kilometers:
                return("km");

            case Stop.DistanceUnit.Miles:
                return("mi");

            default:
                return("ft");
            }
        }
 public IEnumerable <Stop> GetStopsWithinProximity(decimal latitude, decimal longitude, Stop.DistanceUnit unitOfMeasure, decimal distance, string routeName = null)
 {
     return(Context.GetStopsWithinProximity2((double)latitude, (double)longitude, GetDistanceUnitString(unitOfMeasure), (double)distance, routeName));
 }