Ignore links in spatial searches

Top  Previous  Next

When you use the functions for turning a set of coordinates into a position in the street network (either node or location on a link), you may often prefer not to find certain links or nodes. This could be a route, which should not start at motorway links or in pedestrian areas. To implement this, you just prepare a text file with one link ID on each line for the street sections, you want to ignore in the searches.

 

If the ini file parameter is 1, then any node, which is only connected to such ignored links, will also be ignored, when searching for the nearest node (function Coordinate2node).

 

If the parameter is 2 instead, it will ignore all nodes connected to any ignored link.

 

Through the configuration file you can define that the text file contains either link ID's or external ID's.