Update TruckDistanceMatrixGenerator.cs
Fix bug - First cell of truck-based distance matrix was calculating incorrect time for minutes. Needed to divide but was multiplying.
This commit is contained in:
Родитель
3a18ed3d5c
Коммит
581ac66a5b
|
@ -110,7 +110,7 @@ namespace BingMapsRESTToolkit.Extensions
|
|||
DestinationIndex = 0,
|
||||
HasError = false,
|
||||
TravelDistance = truckRoute.TravelDistance,
|
||||
TravelDuration = (request.TimeUnits == TimeUnitType.Minute) ? truckRoute.TravelDuration * 60 : truckRoute.TravelDuration
|
||||
TravelDuration = (request.TimeUnits == TimeUnitType.Minute) ? truckRoute.TravelDuration / 60 : truckRoute.TravelDuration
|
||||
});
|
||||
|
||||
var cellTasks = new List<Task>();
|
||||
|
|
Загрузка…
Ссылка в новой задаче