예제 #1
0
        /// <summary>
        /// Returns true if the given point is connected for a radius of at least the given weight.
        /// </summary>
        /// <param name="vehicle">The vehicle profile.</param>
        /// <param name="point"></param>
        /// <param name="weight"></param>
        /// <returns></returns>
        public bool CheckConnectivity(Vehicle vehicle, RouterPoint point, float weight)
        {
            if (vehicle.UniqueName != point.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, point.Vehicle.UniqueName));
            }

            return(_router.CheckConnectivity(vehicle, point, weight));
        }
예제 #2
0
파일: Router.cs 프로젝트: detlevn/OsmSharp
 /// <summary>
 /// Returns true if the given point is connected for a radius of at least the given weight.
 /// </summary>
 /// <param name="vehicle">The vehicle profile.</param>
 /// <param name="point"></param>
 /// <param name="weight"></param>
 /// <returns></returns>
 public bool CheckConnectivity(Vehicle vehicle, RouterPoint point, float weight)
 {
     return(_router.CheckConnectivity(vehicle, point, weight));
 }