As noted in this analysis of Cost Direction, cost increases if construction will the algorithm selects a path in the opposite direction of the planned train station and thus selecting the least cost direction.
Calculating the least-cost path to a specific location-by sarel coetzer