FindDuplicateLinks |
Top Previous Next |
This method will find occurrences of 2 identical links, which are both marked as one-way streets, but in opposite directions. They need to be digitized in the same direction.
You can use it to assign different cost to each direction of a link.
It is automatically called as part of Open and OpenAttributes, but you can manually do it after updating one-way status.
The function returns the number of links found.
Use property DuplicateLink to check the output.
Example: if DuplicateLink[4] = 7, then the other way around is also true: DuplicateLink[7] = 4.
TRouteCalc and TDrivingDirections uses this feature internally to check both directions of a street, before returning a result.
Syntax: FindDuplicateLinks: integer;
|