Auto-translated
If you're going to implement such a feature, it shouldn't be difficult to take into account the army composition and the pathfinding capabilities of the selected hero. Also, instead of just two points, it would be preferable to allow plotting a route through several points, so you don't have to calculate the distance in your head.
Ideally, there would be an optional feature to measure the route over guard zones.