The path-finding algorithm (modified A*) that guaranties the shortest length of trajectory and gives a result with minimum iterations has been developed and realized. The software that implements this routine has been developed. The check of the system has been performed on different samples