PageSourceSearch

https://trains.fyi/_next/static/chunks/pages/most-delayed-trains-e202b8f4eb7e56ee.js

js trains.fyi collected 2026-09-24 09:54:57 UTC 10,427 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2044],{5876:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(37876);a(14232);var r=a(28766);let l=({text:e,className:t=""})=>(0,s.jsxs)("div",{className:`flex flex-col justify-center items-center ${t}`,children:[(0,s.jsxs)("div",{className:"relative w-10 h-10","aria-hidden":!0,children:[(0,s.jsx)("div",{className:"absolute inset-0 rounded-full border-2 border-gray-200 border-t-blue-600 animate-spin"}),(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,s.jsx)("img",{src:r.A.src??r.A,alt:"",className:"w-6 h-6 object-contain pointer-events-none"})})]}),e&&(0,s.jsx)("p",{className:"mt-2 text-sm text-gray-600",children:e})]})},27318:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(14232);let r=s.forwardRef(function({title:e,titleId:t,...a},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))})},36949:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>p});var s=a(37876),r=a(14232);let l=r.forwardRef(function({title:e,titleId:t,...a},s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 18.75h-9m9 0a3 3 0 0 1 3 3h-15a3 3 0 0 1 3-3m9 0v-3.375c0-.621-.503-1.125-1.125-1.125h-.871M7.5 18.75v-3.375c0-.621.504-1.125 1.125-1.125h.872m5.007 0H9.497m5.007 0a7.454 7.454 0 0 1-.982-3.172M9.497 14.25a7.454 7.454 0 0 0 .981-3.172M5.25 4.236c-.982.143-1.954.317-2.916.52A6.003 6.003 0 0 0 7.73 9.728M5.25 4.236V4.5c0 2.108.966 3.99 2.48 5.228M5.25 4.236V2.721C7.456 2.41 9.71 2.25 12 2.25c2.291 0 4.545.16 6.75.47v1.516M7.73 9.728a6.726 6.726 0 0 0 2.748 1.35m8.272-6.842V4.5c0 2.108-.966 3.99-2.48 5.228m2.48-5.492a46.32 46.32 0 0 1 2.916.52 6.003 6.003 0 0 1-5.395 4.972m0 0a6.726 6.726 0 0 1-2.749 1.35m0 0a6.772 6.772 0 0 1-3.044 0"}))});var n=a(27318),i=a(48230),d=a.n(i),o=a(49915),c=a(85392),m=a(74),x=a(5876),h=a(93408),u=a(74880),g=a(78240);function p(){let{trains:e,isLoading:t,isUpdating:a,isError:i}=(0,g.e9)(),p=e?.trains||[],f=(0,r.useMemo)(()=>((e,t=Date.now())=>{let a=(e||[]).filter(e=>{let a=Number(e.delay_seconds),s=new Date(e.vehicle_timestamp||e.updated).getTime(),r=t-s;return Number.isFinite(a)&&a>60&&a<=86400&&"ghost"!==e.position_source&&"cancelled"!==e.status&&Number.isFinite(s)&&r>=0&&r<=9e5});a.sort((e,t)=>Number(t.delay_seconds)-Number(e.delay_seconds));let s=new Set;return a.filter(e=>{let t=e.gtfs?.trip_id,a=`${e.agency||""}:${t||e.vid||e.name||""}`;return!s.has(a)&&(s.add(a),!0)}).slice(0,10)})(p),[p]);return(0,r.useEffect)(()=>{window.gtag&&window.gtag("event","page_view",{page_title:"World's Most Delayed Trains | trains.fyi",page_location:window.location.href,page_path:"/most-delayed-trains/"})},[]),(0,s.jsxs)("div",{className:"flex min-h-screen flex-col bg-slate-50",children:[(0,s.jsx)(h.A,{title:"World's Most Delayed Trains Right Now",description:"See the ten most delayed passenger trains currently tracked by trains.fyi, updated from live operator data around the world.",canonical:"/most-delayed-trains/",image:"/social.png",type:"website",keywords:"most delayed trains, late trains, train delays, live train delays, delayed trains today"}),(0,s.jsx)(m.A,{}),(0,s.jsxs)("main",{className:"mx-auto w-full max-w-5xl flex-grow px-4 pb-16 sm:px-6 lg:px-8",children:[(0,s.jsx)("div",{className:"py-4",children:(0,s.jsx)(o.A,{pages:[{name:"Most Delayed Trains",href:"/most-delayed-trains/",current:!0}]})}),(0,s.jsxs)("section",{className:"overflow-hidden rounded-2xl bg-gradient-to-br from-blue-900 via-blue-800 to-indigo-700 px-6 py-10 text-white shadow-xl sm:px-10",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 text-amber-300",children:[(0,s.jsx)(l,{className:"h-8 w-8","aria-hidden":"true"}),(0,s.jsx)("span",{className:"text-sm font-semibold uppercase tracking-[0.2em]",children:"The Late List"})]}),(0,s.jsx)("h1",{className:"mt-4 max-w-3xl text-4xl font-bold tracking-tight sm:text-6xl",children:"World's most delayed trains right now"}),(0,s.jsx)("p",{className:"mt-4 max-w-2xl text-lg text-blue-100",children:"A live top ten based on delay data reported by the passenger rail networks tracked by trains.fyi."}),(0,s.jsxs)("div",{className:"mt-6 flex items-center gap-2 text-sm text-blue-200","aria-live":"polite",children:[(0,s.jsx)(n.A,{className:`h-5 w-5 ${a?"animate-spin":""}`,"aria-hidden":"true"}),e?.metadata?.updated?`Data updated ${new Date(e.metadata.updated).toLocaleTimeString([],{hour:"numeric",minute:"2-digit"})}`:"Checking live train data…"]})]}),(0,s.jsxs)("section",{className:"mt-8","aria-labelledby":"leaderboard-heading",children:[(0,s.jsx)("h2",{id:"leaderboard-heading",className:"sr-only",children:"Most delayed trains leaderboard"}),t&&(0,s.jsx)("div",{className:"rounded-xl bg-white py-20 shadow-sm",children:(0,s.jsx)(x.A,{text:"Finding the latest trains…"})}),i&&(0,s.jsxs)("div",{className:"rounded-xl border border-red-200 bg-red-50 p-8 text-center",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold text-red-900",children:"The Late List is temporarily unavailable"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-red-700",children:"We couldn't load the live train data. Please try again shortly."})]}),!t&&!i&&0===f.length&&(0,s.jsxs)("div",{className:"rounded-xl border border-slate-200 bg-white p-10 text-center shadow-sm",children:[(0,s.jsx)("h2",{className:"text-xl font-semibold text-slate-900",children:"No major delays reported"}),(0,s.jsx)("p",{className:"mt-2 text-slate-600",children:"There aren't any fresh qualifying delays in the live feed right now."})]}),!t&&!i&&f.length>0&&(0,s.jsx)("ol",{className:"space-y-3","aria-label":"Most delayed trains leaderboard",children:f.map((e,t)=>{let a,r,l,n=u.Y.getNetwork(String(e.agency||"").toLowerCase()),i=e.agency&&e.vid?`/networks/${encodeURIComponent(e.agency)}/trains/${encodeURIComponent(e.vid)}/`:null,o=n?.countries?.[0],c=(0,s.jsxs)("div",{className:"grid grid-cols-[3rem_1fr] items-center gap-3 rounded-xl border border-slate-200 bg-white p-4 shadow-sm transition sm:grid-cols-[4rem_1fr_auto] sm:gap-5 sm:p-5 group-hover:border-blue-300 group-hover:shadow-md",children:[(0,s.jsx)("div",{className:`flex h-11 w-11 items-center justify-center rounded-full text-lg font-bold ${0===t?"bg-amber-100 text-amber-800":"bg-slate-100 text-slate-600"}`,children:t+1}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h3",{className:"truncate text-lg font-semibold text-slate-950 sm:text-xl",children:e.name||e.vid||"Unnamed train"}),(0,s.jsxs)("p",{className:"truncate text-sm text-slate-600",children:[n?.name||e.agency,o?` \xb7 ${o}`:""]}),(e.org||e.dst)&&(0,s.jsxs)("p",{className:"mt-1 truncate text-sm text-slate-500",children:[e.org||"Unknown origin"," → ",e.dst||"Unknown de
1stination"]})]}),(0,s.jsxs)("div",{className:"col-start-2 text-left sm:col-auto sm:text-right",children:[(0,s.jsxs)("p",{className:"text-2xl font-bold tabular-nums text-red-600 sm:text-3xl",children:["+",(r=Math.floor((a=Math.round(Number(e.delay_seconds)/60))/60),l=a%60,r?l?`${r} hr ${l} min`:`${r} hr`:`${a} min`)]}),(0,s.jsx)("p",{className:"mt-1 text-xs text-slate-500",children:"reported delay"})]})]});return(0,s.jsx)("li",{children:i?(0,s.jsx)(d(),{href:i,className:"group block",children:c}):c},`${e.agency}-${e.gtfs?.trip_id||e.vid||t}`)})})]}),(0,s.jsx)("p",{className:"mx-auto mt-8 max-w-3xl text-center text-xs leading-5 text-slate-500",children:"Based on live data available to trains.fyi. Coverage and update frequency vary by operator, so this list may not include every delayed train worldwide."})]}),(0,s.jsx)(c.A,{})]})}},49915:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(37876),r=a(60570),l=a(48230),n=a.n(l);function i({pages:e}){return(0,s.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,s.jsxs)("ol",{role:"list",className:"flex items-center space-x-4 pt-6",children:[(0,s.jsx)("li",{children:(0,s.jsx)("div",{children:(0,s.jsxs)(n(),{href:"/",className:"text-gray-400 hover:text-gray-500",children:[(0,s.jsx)(r.A,{"aria-hidden":"true",className:"h-5 w-5 flex-shrink-0"}),(0,s.jsx)("span",{className:"sr-only",children:"Home"})]})})}),e.map(e=>(0,s.jsx)("li",{children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)("svg",{fill:"currentColor",viewBox:"0 0 20 20","aria-hidden":"true",className:"h-5 w-5 flex-shrink-0 text-gray-300",children:(0,s.jsx)("path",{d:"M5.555 17.776l8-16 .894.448-8 16-.894-.448z"})}),(0,s.jsx)(n(),{href:e.href,"aria-current":e.current?"page":void 0,className:"ml-4 text-sm font-medium text-gray-500 hover:text-gray-700",children:e.name})]})},e.name))]})})}},60570:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(14232);let r=s.forwardRef(function({title:e,titleId:t,...a},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M9.293 2.293a1 1 0 0 1 1.414 0l7 7A1 1 0 0 1 17 11h-1v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-6H3a1 1 0 0 1-.707-1.707l7-7Z",clipRule:"evenodd"}))})},77808:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var s=a(14232);let r=s.forwardRef(function({title:e,titleId:t,...a},r){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"}))})},90700:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/most-delayed-trains",function(){return a(36949)}])}},e=>{e.O(0,[6701,3927,2325,3990,8447,5392,636,6593,8792],()=>e(e.s=90700)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.