Import Turn File

Top  Previous  Next

Go to Restrictions > Import Turn File ImpRestrictTool_16x16

 

This options will take a text file of predefined turn restrictions and create the binary files for use in RouteFinder.

 

If turn restrictions are currently being used then you will be asked if you want to overwrite the existing restrictions.

 

ImportTurnFileOverwrite

 

The first step is to select the text file containing the turn restrictions.

 

ImportTurnFile

 

Turn files are simple text files made up of lines line this:

 

1 390 391 -1

1 258 259 -1

1 609 797 -1

 

The first number is the restriction type; the next two are the rowids of the network to create a restriction and finally the type of restriction.

 

However you can use an external ID if you specify the unique reference column when creating the network then they might look like this:

 

0 rowid_6535 rowid_16558 -1

0 rowid_7654 rowid_6474  -1

0 rowid_2183 rowid_9547  -1

 

The -1 is the cost value and indicates it is a banned turn. Here is a list of valid restrictions that RouteFinder can read from a text file:

 

0: Simple Turn restriction, 2 external link ID's + 1 cost value

1: Simple Turn restriction, 2 link ID's + 1 cost value

2: TurnStandard, coordinates for node

3: Mandatory turn, 2 external link ID's

4: Mandatory turn, 2 link ID's

5: Complex Turn restriction, >2 external link ID's + 1 cost value

6: Complex Turn restriction, >2 link ID's + 1 cost value

 

If you use turn restrictions with external ID's (type 0, 3 and 5) make sure you have specified an external ID column or you will get an error returned. Type 0, 2, 3 and 4 gets translated into one or more type 1 during import and type 5 gets translated into type 6 during import.

 

If you press cancel to the importing of turn restrictions then you will be notified of the import of one way streets and also any height, width and weight restrictions that have been set up at the network creation phase.

 

importOneWayStreets

 

Once the process have completed you are asked if you want to see the restrictions on the map.

 

DisplayImportRestrictions