My dev is trying to use the GTFS API to effectively create a version of the picture below.
Does anyone have guidance on how to do that?
I have pasted our troubleshooting code below (and the results we get...which do NOT match the "Service Status")
$headers = ['x-api-key: XXXXXXXXXXXXXXXXXXX'];
$curl = curl_init();
curl_setopt( $curl, CURLOPT_URL, $apiUrl );
curl_setopt( $curl, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $curl, CURLOPT_HTTPHEADER, $headers);
try {
$results = json_decode(curl_exec($curl), true, 512, JSON_THROW_ON_ERROR);
} catch (JsonException $e)
{
echo $e;
exit();
}
----
What we do get
suspended
multiple impacts
part suspended
trains rerouted
delays
service change
local to express
express to local
stations skipped
some delays
slow speeds
planned work
good service
on or close
boarding change
weekday service
special schedule
extra service
planned - substitute buses
planned - part suspended
planned - stations skipped
reduced service
special event
no scheduled service
planned - boarding change
saturday schedule
station notice
sunday schedule
weekend schedule