Is This Content Helpful?
We're glad to know this article was helpful.
When solving for the shortest path, NetEngine uses the FlagAttRec structure (or flag) to let the network solvers know the points the path must follow. See the NetEngine online help for more information on FlagAttRec.
On two-way roads, flags placed along a road can generally be approached from either direction and the route can continue in either direction. In the case of a curb stop, such as bus or mail stops, uncrossable median strips, or stops sensitive to one side of the road versus the other, the network solvers must be told the flag is only on one side.
When a network is built, every road segment receives two edges. The digitized direction of the line is loaded into the network with its ID and placed on layer 1. The same line traversed in the opposite direction is placed on layer 2.
A stop is determined by how the flag is created. When you make the flag, you populate the HAtt/Position data as well as the AltHAtt/AltPosition data in the FlagAttRec structure. As result, the flag sits on both edges, and you ensure the flag along an edge can be approached and departed in either direction. In the case of a curb stop, a flag should only be approached from one direction and should be departed in the same direction.
When you place a curb stop flag on the network, you need to determine whether the stop is on layer 1 or layer 2. To do so, start with the digitized direction of the original road line used to build the network. For example:
Let's say you have a road segment that runs north-south. The digitized direction of the line has the start node in the south, and the line draws up to the end node in the north. For a bus going north on that road and making a stop, put the network flag on layer 1. South would be layer 2. If your flag needs to be on layer 1, populate the HAtt and Position fields of the FlagAttRec structure and don't populate the AltHAtt nor AltPosition fields. Do the opposite for layer 2.
How to code this depends on how the information about these curb stops is presented to the application.