FindTwinLinks |
Top Previous Next |
This method will find occurrences of 2 identical links, which are both marked as one-way streets, but in opposite directions (512 and 1024). They need to be digitized in the same direction.
You can use it to assign different time or 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 TwinLink to check the output.
Example: If TwinLink[4] = 7, then the other way around is also true: TwinLink[7] = 4.
TRouteCalc and TDrivingDirections can use this feature internally to check both directions of a street, before returning a result.
Syntax: FindTwinLinks: integer;
|