Manage Real-Time codes with Chouette
Description
In Chouette, you can make your scheduled offer match your real-time offer in Ara SaaS.
If your data providers send GTFS for Chouette and GTFS-RT for Ara, the link is ensured by the integrity of the format’s identifiers — you simply publish the data from Chouette to Ara (see Ara publication below).
If a provider sends NeTEx or GTFS for Chouette and SIRI for Ara, you must link the identifiers of the stops, lines and vehicle journeys between the scheduled and real-time offer. When they have similarities, you can use Chouette’s Macro lists to build codes for the scheduled objects that will be published to and understood by Ara.
Context and requirements
Chouette publishes the offer in GTFS with the stops, lines and vehicle journeys
Ara broadcasts a GTFS-RT feed which must use the same identifiers as the GTFS publication of Chouette
The identifiers of the stops, lines and vehicle journeys of the scheduled and real time offer must have similarities
Example :
Object | Scheduled offer | Real-time offer |
|---|---|---|
Stop | OPERATOR:StopArea:00004821 | 00004821 |
Line | OPERATOR:Line:3 | 3 |
Vehicle journey | OPERATOR:VehicleJourney:21_110_6_08:39:01 | 21_110_6_08:39:01 |
Managing identifiers with Chouette
Creation of code spaces
Chouette must support a new type of code that will map stops, lines and vehicle journeys in Ara.
Code spaces are settable at the Workgroup level. To learn more about code spaces, see Code Spaces.
Macros for feeding the “Correspondance” codes
In the Macro lists, a macro “Create a code” allows you to specify the creation by Chouette of a code according to the format and the code space wanted.
For the example shown earlier, 3 macros are required. To learn more about Macro lists, see : Macro lists
Execute the Macro List
After creating the Macro List, it must be executed on a dataset. The dataset is then enriched: the new code is added to the target objects.
The result is directly visible on the Chouette stops, lines and vehicle journeys interfaces.
Ara publication
The Ara publication ensures that data (of the following days) is sent daily by Chouette to Ara.
Force a daily publication : so that Ara is fed even if the data is not updated in Chouette
Lines : all lines or the selected ones.
Ara Referential URL
Import token
Ara Exchange Partner update
The partner that broadcasts the GTFS-RT stream must use the "correspondance" code passed by the Ara publication (via the remote_code_space parameter) :
To learn more about exchange partners, see Exchange partners.