Exemplo n.º 1
0
        /// <summary>
        /// Calculates the closest point on the route relative to the given coordinate.
        /// </summary>
        public static bool ProjectOn(this Route route, Coordinate coordinate, out float distanceFromStartInMeter)
        {
            int        segment;
            Coordinate projected;
            float      timeFromStartInSeconds;

            return(route.ProjectOn(coordinate, out projected, out segment, out distanceFromStartInMeter, out timeFromStartInSeconds));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Calculates the closest point on the route relative to the given coordinate.
        /// </summary>
        public static bool ProjectOn(this Route route, Coordinate coordinate, out Coordinate projected,
                                     out float distanceToProjectedInMeter, out float timeToProjectedInSeconds)
        {
            int segment;

            return(route.ProjectOn(coordinate, out projected, out segment, out distanceToProjectedInMeter,
                                   out timeToProjectedInSeconds));
        }