I want to get the shortest paths from some points to the nearest highway junctions. I extracted the highway junctions by doing the Intersect function from the network junctions and selected highways. Then I created the network database and did the Closest Facility Analysis (highway junctions for facility and points for incidents) to get the shortest path from the points to their nearest highway junctions. The problem is some of the obtained "shortest paths" are not the actual shortest paths since they skip the nearest highway junctions. It seems the highway junctions extracted from the network are not perfectly aligned on the network. I tried to use Integrate to integrate the highway junctions and network, and then recreated the network database, but it still didn't solve the issue. The following pictures show the problem. The red line represents the highway. The purple dots represent the highway junctions. The purple square represents the point needed to be analyzed to get shortest path.
I am using the ArcGIS Desktop 10.3.1 Advanced License.