The GTFS import creates or updates Shapes in the Workbench Shape Referential.
Chouette SaaS associates the GTFS Shape with the Chouette Shape via the GTFS shape_id and the Chouette “external” code. This association is performed in the scope of the Workbench owner, so two teams can import independently their Shapes.
If a such Shape is found, the Shape will be updated. Otherwise, the Shape is created.
When GTFS Trips are imported, they are associated to a Shape according their shape_id (by looking for a Shape with the same “external” code and the the same Workbench owner).
Export GTFS in GTFS
The GTFS export will use shapes associated to a JourneyPattern included in the export scope.
If the Chouette Shape “external” code is unique in the GTFS export scope, it uses as value for the GTFS Shape shape_id. Otherwise, the GTFS export uses the the Scope ID.
The Shape associated to a Journey Pattern is used for each associated GTFS trip (exported for Vehicle Journeys).
Endpoint for line metadatas on Publication API
The Publication API provides an endpoint to retrieve the Line statuses, on /api/v1/datas/<api slug>/lines.json.
For each Line in the aggregated data set, the Line status API returns:
the Line object id
the Line name
the creation time of the most recent metadata associated to the Line