How can we know if the route drawn on the ECDIS is the shortest ?

It would be Great if you could Answer this Question!

Help fellow seafarers if you know this answer