/// <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)); }
/// <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)); }