コード例 #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));
 }