Importing HAFAS data
Note: You can import HAFAS data of different formats. However, within a HAFAS project, all data must have the same format, e.g. UTF-8. |
1. In the File menu, select the Import > HAFAS entry.
The HAFAS import window opens.
2. Select the Files tab.
3. Depending on the type of HAFAS data file for which you want to import data, click the respective button .
The Open <file type> window opens.
Notes: For the Timetable file(s) file type you can select more than one file. By clicking the button in the Timetable file(s) row, the Timetable files window opens. Here you can add several timetable files to or delete from the selection via the Add and Delete button. Be careful if reading includes a destination coach train. Select the pulling train data files first and the destination coach train data files then. The files link points, edges, and vehicle journey allocation of the Real graph can be read in to take over the real route network from HAFAS data and to route vehicle journeys in it (Real graph: Link points, edges, and vehicle journey allocation). If one of the files is specified, the others must also be specified. You can also select the files using a relative path. |
4. Select the desired file.
5. Click the Open button.
The file name and directory are adopted.
Tip: You can directly delete the allocation of a file to be imported by clicking the respective Delete button. |
Note: If additionally obligatory HAFAS data files of a different file type are required to complement a selected HAFAS data file, these file types are marked by a red bar. |
6. Decide whether warnings are to be displayed on screen during importation process.
Element |
Description |
No warnings |
If the option is selected, no warnings will be displayed during the import. Note To save warnings to a message file, in the warning settings, select Save warnings and details to the message file and in the log file settings, select Create new file (Specifying settings for protocol files). |
7. Select the Transport systems tab.
Note: The settings in the Transport systems tab are only accessible if a HAFAS data file of the Train types file type has been selected. |
8. Make the desired changes.
Element |
Description |
Import |
In this column, you can specify per transport type, whether you want to import it as a Visum transport system. If the check box is disabled, the train type will not be imported. |
Train type code Train type name |
Display of the HAFAS train type attributes |
TSys code TSys name |
Short and long name of the imported transport system By double clicking into the desired cell you can change short and long names. Tip You can aggregate several train types to one Visum transport system using the same TSys code and TSys name for all train types. Note For all PuT transport systems one mode and one demand segment only are generated. |
Category |
Display of HAFAS transport system quality or product class |
Fare group |
Display of HAFAS fare group |
Supplement |
Display of HAFAS supplement information |
N |
Display of HAFAS public transport indicator |
A |
Display of value for output control in HAFAS |
Check all |
Via this button, you may select all train types for the import. |
Uncheck all |
Via this button, you may uncheck all train types for the import. |
9. Select the Calendar tab.
10. Make the desired changes.
Element |
Description |
Calendar type |
From the drop-down list you may select a calendar type to specify the calendar period. Note The calendar types Weekly calendar and Annual calendar are only provided if the Calendar / valid days add-on is activated ( Enabling or disabling add-ons ). |
Dates |
Calendar period for which vehicle journeys are imported Note If a timetable period data file is imported, the complete time table period is used as calendar period. From, To Via the button you can open a calendar and select the beginning or the end of the calendar period with a mouse click on the desired date. Alternatively, enter the parameters of your choice in the entry fields. Notes This option is only available if the Weekly calendar or Annual calendar is selected as calendar type. All vehicle journeys with at least one valid day within the range of dates are imported if no filter is defined. |
Filters |
Using the filter you may limit the number of vehicle journeys to be imported to those journeys operating on the days you specified. Click the symbol to open a calendar. To select a key date, click the date of your choice. Alternatively, enter the date directly in the entry field. Click the Add button to add a key date to the list. Click the Delete button to delete the key dates selected in the list. Via the Delete all button you delete all key dates simultaneously. |
Time shifts |
Select this option to enter a postponement of arrival and departure times of journeys at stops in the Resulting time shift field or import the postponement from a time shift file and calculate it for each stop, based on the evaluation point in time. Via the button you can open a calendar and select the key date with a mouse click on the desired date. Enter the evaluation point in time in time format (hh:mm:ss). |
11. Select the Vehicle journey names tab.
Note: In this tab you define from which data the names of the lines and vehicle journeys will be generated in Visum. The lists on the left contain the data used to create the names in the order specified. The list on the right contains all data available for naming. |
12. In the Line name area in the list on the left, select the entry above which you want to add another name component.
13. In the Line name area in the list on the right, select the entry you want to add to the line name.
14. Click the symbol.
The entry is inserted in the left list above the currently selected entry.
15. If necessary, change the character for separating several name components in the Separator filed in the Line name area.
Note: The semicolon is not allowed as a separator. |
16. Add further entries if necessary.
Note: You can remove an entry from the list to the left by selecting the desired entry and clicking the button. |
17. In the Vehicle journey names area, specify the name conventions accordingly.
18. Select the Destination coach journey names tab.
Note: In this tab you define the data from which the names of the lines and vehicle journeys are generated for destination coach journeys in Visum. To distinguish it from the other lines and vehicle journeys, you can define a character string that is included in the name at a specific position. |
19. In the Decisive train is area, select the desired option.
Element |
Description |
First pulling journey |
If this option has been checked, the following data is gained from the train data in the first row *KWZ: HAFAS train type code, HAFAS line name, HAFAS train number, HAFAS operator administration and the Visum transport system code. |
Top-ranking pulling journey |
If this option has been checked, the data mentioned above is gained from the *KWZ data row of the top-ranking train. If there are several top-ranking trains, the first one will be used. |
20. Enter the desired character strings in the entry fields Fixed name component for line and Fixed name component for vehicle journey.
Note: For the name generation, the appropriate string is provided as Mandatory name component. |
21. Like in the Vehicle journey names tab, set up the data for the naming of lines and vehicle journeys.
22. Confirm with OK.
The selected HAFAS data is imported.
Note: During a HAFAS import, a separate line route is generated from each HAFAS vehicle journey. Then you can aggregate line routes (Aggregating line routes). |