Esempio n. 1
0
        /// <summary>
        /// Returns all points located at a given weight (distance/time) from the orgin.
        /// </summary>
        /// <param name="vehicle">The vehicle profile.</param>
        /// <param name="orgine"></param>
        /// <param name="weight"></param>
        /// <returns></returns>
        public HashSet <GeoCoordinate> CalculateRange(Vehicle vehicle, RouterPoint orgine, float weight)
        {
            if (vehicle.UniqueName != orgine.Vehicle.UniqueName)
            { // vehicles are different.
                throw new ArgumentException(string.Format("Given vehicle profile does not match resolved points, {0} and {1} are given, expecting identical profiles.",
                                                          vehicle.UniqueName, orgine.Vehicle.UniqueName));
            }

            return(_router.CalculateRange(vehicle, orgine, weight));
        }
Esempio n. 2
0
 /// <summary>
 /// Returns all points located at a given weight (distance/time) from the orgin.
 /// </summary>
 /// <param name="vehicle">The vehicle profile.</param>
 /// <param name="orgine"></param>
 /// <param name="weight"></param>
 /// <returns></returns>
 public HashSet <GeoCoordinate> CalculateRange(Vehicle vehicle, RouterPoint orgine, float weight)
 {
     return(_router.CalculateRange(vehicle, orgine, weight));
 }