Add Output of Distance and time to render
This commit is contained in:
parent
0a522baba5
commit
954451978c
@ -57,6 +57,8 @@ public static class Renderer
|
||||
Point endCoordinates = PixelCoordinatesFromGeoCoordinates(step.Node2, minCoordinates, multiplier, bitmap.Height);
|
||||
graphics.DrawLine(route, startCoordinates, endCoordinates);
|
||||
}
|
||||
|
||||
graphics.DrawString($"Distance: {r.Distance:000000.00}m\nTime: {r.Time:hh\\:mm\\:ss}", new Font(FontFamily.GenericMonospace, 18), new SolidBrush(Color.White), 2, 2);
|
||||
}
|
||||
|
||||
Directory.CreateDirectory(new FileInfo(outputPath).DirectoryName!);
|
||||
|
Loading…
Reference in New Issue
Block a user