Code Spaces
Description
In Chouette, you can associate codes with lines and/or stop areas. A code can be used to complete the data in your offer or match your objects in different systems (e.g., a CAD/AVL, ticketing software, etc.). These codes will be included in the export.
Code spaces allow you to create a code “category” that you assign to stops and/or lines. This feature is defined at the Workgroup level.
Consult the Code Spaces
You can view the list of code spaces created by your organization in the Workgroup:
Code spaces are described by:
the short name used by Chouette for import and export,
the name used to identify the code,
a description.
The cogwheel icon allows you to view or edit the selected code space.
The “external” code is used in all types of imports and exports to read or create file identifiers.
The “public” code is used by GTFS imports.
Code Space management
Code Space Creation
To create a new code space, click on the “Add Code Space” button and complete the creation form:
After validation, you will be redirected to your code space page with all the information:
Chouette does not allow the deletion of a code space once it’s been created.
Add a code to a line
If you have defined code spaces, you can now associate a code with a line.
First, edit a line in the line repository. In the edit form, click on “Add a code” in the “Codes” block and select the code space you have created:
After validation, the code appears on the line’s page :
Add a code to a stop area
Just like with a line, you can add a code to a stop area. If you have defined code spaces, you can associate a code with a stop area.
You need to edit a stop area in the stop area repository. In the edit form, click on “Add a code” in the “Codes” block and select the code space you have created:
After validation, the code will appear on the line's page:
You can create codes automatically using Macro lists | Create a code.
Export the Code Space
To export objects with the desired code space, simply select it in the export or publication settings:
Chouette includes in the export all models with a value in the selected code space. For other models, it uses the registration number or the code “external” according to the usual procedure.