예제 #1
0
        /// <summary>
        /// Resolves a point.
        /// </summary>
        /// <param name="vehicle">The vehicle profile.</param>
        /// <param name="coordinate">The location of the point to resolve.</param>
        /// <returns></returns>
        public RouterPoint Resolve(Vehicle vehicle, GeoCoordinate coordinate)
        {
            if (vehicle == null)
            {
                throw new ArgumentNullException("vehicle");
            }
            if (coordinate == null)
            {
                throw new ArgumentNullException("coordinate");
            }

            return(_router.Resolve(vehicle, coordinate, false));
        }
예제 #2
0
파일: Router.cs 프로젝트: detlevn/OsmSharp
 /// <summary>
 /// Resolves a point.
 /// </summary>
 /// <param name="vehicle">The vehicle profile.</param>
 /// <param name="coordinate">The location of the point to resolve.</param>
 /// <returns></returns>
 public RouterPoint Resolve(Vehicle vehicle, GeoCoordinate coordinate)
 {
     return(_router.Resolve(vehicle, coordinate, false));
 }