Hi All,
Working on a new project with a transit API to provide dynamic information about bus schedules. From API I am able to return json values, but am new to Hype and don’t know if there is any documentation about how to display and refresh returned values on a 30 second interval. Looking for someone to point me in the correct direction here…
I am posting the following example for bus stop 3211:
returns the following predictions.json file
{
"predictions": [{
"routeShortName": "61",
"routeName": "61 - Dtc - Pershing - Malls",
"routeId": "61",
"stopId": "3211",
"stopName": "Alpine & Grange Av Wb",
"stopCode": 3211,
"destinations": [{
"directionId": "1",
"dir": "1",
"headsign": "Southbound Downtown Transit Center Arr A",
"predictions": []
}, {
"directionId": "1",
"dir": "1",
"headsign": "Quail Lakes - Pershing - Country Club - Dtc",
"predictions": []
}]
}, {
"routeShortName": "745",
"routeName": "745 - Malls - Pershing - Country Club",
"routeId": "745",
"stopId": "3211",
"stopName": "Alpine & Grange Av Wb",
"stopCode": 3211,
"destinations": [{
"directionId": "1",
"dir": "1",
"headsign": "Robinhood - Quail Lakes - Pershing - Alpine - Country Club",
"predictions": []
}]
}, {
"routeShortName": "4",
"routeName": "4 - Metro Hopper - Central Stockton",
"routeId": "4",
"stopId": "3211",
"stopName": "Alpine & Grange Av Wb",
"stopCode": 3211,
"destinations": [{
"directionId": "0",
"dir": "0",
"headsign": "Pershing - Flora - Commerce - Dtc",
"predictions": []
}]
}]
}
My goal is to display a table with the following “routeId” “headsign” “min”. Looking for any documentation on how to accomplish this with Hype. Thanks all for any guidance on how to accomplish this with this wonderful tool.