Sprint 47
All our products have been updated on Sep 25, 2020 with the releases associated to this Sprint 47.
Chouette
Service statistics in GraphQL API
The user can retrieve:
per day Vehicle Journeys count “Service counts” for a date range for Line(s)
total Vehicle Journeys count “Service count” for a date range for Line(s)
Example 1: Retrieve daily statistics
{
lines {
nodes {
objectid
serviceCounts(from: "2021-01-01", to: "2021-01-31") {
date
count
}
}
}
{
"data": {
"lines": {
"nodes": [
{
"objectid": "chouette:Line:d1b1f581-8b68-456c-8de8-714c142a8ec9:LOC",
"serviceCounts": {
"nodes": [
{
date: "2021-01-01",
count: 17,
},
{
date: "2021-01-02",
count: 33,
},
...
{
date: "2021-01-31",
count: 35,
},
]
}
{
"objectid": "chouette:Line:d1b1f581-8b68-456c-8de8-714c142a8ec9:LOC",
"serviceCounts": {
"nodes": [
{
date: "2021-01-01",
count: 67,
},
...
]
}
}
]
}
}
}
Example 2: Retrieve total count
{
lines {
nodes {
objectid
serviceCount(from: "2021-01-01", to: "2021-01-31")
}
}
Import GTFS Trip without initial day offset
The GTFS format allows to define a GTFS Trip where all passing times are delayed from one or more days.
To avoid misunderstanding, Chouette created the resulted Vehicle Journey without the initial day offset and a dedicated crafted timetable:
A GTFS trip with the following stop times:
with a calendar on saturday/sunday:
is imported by Chouette with a dedicated timetable:
Performance improvements
We’re monitoring and improving constantly the Chouette operation performances. This release provides improvements especially on referential creation and reduce drastically the database table usage.
Security updates
Chouette dependencies are constantly analyzed to find and resolve possible security issues. These libraries have been updated in this new release :
Ara
Custom formats for identifiers in GTFS-RT feed
The user can customize the GTFS connectors to format Stop Area, Line and Vehicle Journey identifiers via generators.reference_identifier
and generators.reference_stop_area_identifier
settings.
Without rewriting:
With rewriting:
Define a substitution to insert objectid in a generator identifier
The user can define a generator identifier where the objectid
value is modified by a given substitution.
The syntax to define a such substitution is: %{objectid//pattern/replacement}
.
Example
generator identifier:
prefix:%{objectid//:/_}
objectid value:
x:y:z
resulted identifier:
prefix:x_y_z
Include Direction Name in VehicleMonitoring SIRI Lite response
When the Direction Name is defined in the Vehicle Journey associated to the Vehicle, the VehicleMonitoring SIRI Lite response contains the DirectionName
attribute: