All checks were successful
Build and Deploy / Build & Push (push) Successful in 2m51s
Park detail pages now show real-time ride open/closed status and wait times sourced from Queue-Times.com (updates every 5 min) when a park is operating. Falls back to the Six Flags schedule API for off-hours or parks without a Queue-Times mapping. - lib/queue-times-map.ts: maps all 24 park IDs to Queue-Times park IDs - lib/scrapers/queuetimes.ts: fetches and parses queue_times.json with 5-minute ISR cache; returns LiveRidesResult with isOpen + waitMinutes - app/park/[id]/page.tsx: tries Queue-Times first; renders LiveRideList with Live badge and per-ride wait times; falls back to RideList for schedule data when live data is unavailable - README: documents two-tier ride status approach Attribution: Queue-Times.com (displayed in UI per their API terms) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
952 B
TypeScript
36 lines
952 B
TypeScript
/**
|
|
* Maps our internal park IDs to Queue-Times.com park IDs.
|
|
*
|
|
* API: https://queue-times.com/parks/{id}/queue_times.json
|
|
* Attribution required: "Powered by Queue-Times.com"
|
|
* See: https://queue-times.com/en-US/pages/api
|
|
*/
|
|
export const QUEUE_TIMES_IDS: Record<string, number> = {
|
|
// Six Flags branded parks
|
|
greatadventure: 37,
|
|
magicmountain: 32,
|
|
greatamerica: 38,
|
|
overgeorgia: 35,
|
|
overtexas: 34,
|
|
stlouis: 36,
|
|
fiestatexas: 39,
|
|
newengland: 43,
|
|
discoverykingdom: 33,
|
|
mexico: 47,
|
|
greatescape: 45,
|
|
darienlake: 281,
|
|
// Former Cedar Fair parks
|
|
cedarpoint: 50,
|
|
knotts: 61,
|
|
canadaswonderland: 58,
|
|
carowinds: 59,
|
|
kingsdominion: 62,
|
|
kingsisland: 60,
|
|
valleyfair: 68,
|
|
worldsoffun: 63,
|
|
miadventure: 70,
|
|
dorneypark: 69,
|
|
cagreatamerica: 57,
|
|
frontiercity: 282,
|
|
};
|