Returns the cost of a route from location1 to location2.
It returns -1 if no route is found.
See also RouteDynEx.
Syntax: RouteDyn(loc1,loc2: TLocation): TCost