PageSourceSearch

https://trains.fyi/_next/static/chunks/pages/networks-e82d10789cb1ba55.js?dpl=dpl_5vQSvZVhuinF4HqkBsmkPs3cGsp5

js trains.fyi collected 2026-09-24 09:54:30 UTC 5,782 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7597],{10880:(e,t,s)=>{"use strict";s.d(t,{rT:()=>r});let r=e=>{switch(e){case"kph":return"km/h";case"mph":return"mph";default:return e}}},49915:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var r=s(37876),a=s(60570),l=s(48230),n=s.n(l);function i({pages:e}){return(0,r.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,r.jsxs)("ol",{role:"list",className:"flex items-center space-x-4 pt-6",children:[(0,r.jsx)("li",{children:(0,r.jsx)("div",{children:(0,r.jsxs)(n(),{href:"/",className:"text-gray-400 hover:text-gray-500",children:[(0,r.jsx)(a.A,{"aria-hidden":"true",className:"h-5 w-5 flex-shrink-0"}),(0,r.jsx)("span",{className:"sr-only",children:"Home"})]})})}),e.map(e=>(0,r.jsx)("li",{children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.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,r.jsx)("path",{d:"M5.555 17.776l8-16 .894.448-8 16-.894-.448z"})}),(0,r.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,s)=>{"use strict";s.d(t,{A:()=>a});var r=s(14232);let a=r.forwardRef(function({title:e,titleId:t,...s},a){return r.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:a,"aria-labelledby":t},s),e?r.createElement("title",{id:t},e):null,r.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"}))})},66021:(e,t,s)=>{"use strict";s.d(t,{A:()=>m});var r=s(37876),a=s(6986),l=s(48230),n=s.n(l),i=s(14232),o=s(48166),c=s(99904),d=s(78240),u=s(10880);let m=({network:e})=>{let{convertSpeed:t,formatSpeed:s}=(0,o.t)(),{trains:l}=(0,d.nC)(),{counts:m}=(0,d.a2)(),h=m[e?.slug]??m[e?.slug?.toLowerCase()]??0,g=(0,i.useMemo)(()=>l?.byAgency&&e&&l.byAgency.get(e.slug.toLowerCase())||[],[l,e]),x=(0,i.useMemo)(()=>{let e=g.filter(e=>e.spd&&e.spd.value);return 0===e.length?null:{value:Math.round(e.reduce((e,s)=>e+t(s.spd.value,s.spd.unit,"kph"),0)/e.length),unit:"kph"}},[g,t]),w=(0,i.useMemo)(()=>{let t=e.cities?.[0];return t?c.L.getCity(t)?.name??null:null},[e]);return(0,r.jsxs)(n(),{href:`/networks/${e.slug}
1/`,className:"flex items-center gap-4 rounded-lg bg-white p-4 shadow-md hover:shadow-lg focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2",children:[(0,r.jsx)("div",{className:"flex h-12 w-12 flex-none items-center justify-center rounded-lg",style:{backgroundColor:e.color},children:(0,r.jsx)(a.A,{className:"h-7 w-7",style:{color:e.textColor||"#ffffff"},"aria-hidden":"true"})}),(0,r.jsxs)("div",{className:"min-w-0 flex-auto",children:[(0,r.jsx)("h3",{className:"truncate text-xl font-medium text-gray-900",children:e.name}),(0,r.jsxs)("p",{className:"mt-1 truncate text-sm text-gray-500",children:[w&&`${w} \xb7 `,h," active train",1!==h?"s":"",null!==x&&` (${s(x.value,(0,u.rT)(x.unit))} avg)`]})]})]})}},77808:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var r=s(14232);let a=r.forwardRef(function({title:e,titleId:t,...s},a){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:a,"aria-labelledby":t},s),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"}))})},88565:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/networks",function(){return s(93595)}])},93595:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>h});var r=s(37876),a=s(14232),l=s(66021),n=s(49915),i=s(85392),o=s(74),c=s(93408),d=s(74880),u=s(73865),m=s(78240);function h(){let{t:e}=(0,u.B)(),t=d.Y.getAllNetworks(),{networks:s}=(0,m.xM)(),h=(0,a.useMemo)(()=>{let e=new Map(t.map(e=>[e.slug?.toLowerCase(),e]));return s.forEach(t=>{let s=t.slug?.toLowerCase();s&&!e.has(s)&&e.set(s,t)}),Array.from(e.values())},[t,s]),g=[{name:e("networks"),href:"/networks",current:!0}];return(0,a.useEffect)(()=>{window.gtag&&window.gtag("event","page_view",{page_title:"Train Networks | trains.fyi",page_location:window.location.href,page_path:"/networks"})},[]),(0,r.jsxs)("div",{className:"bg-white",children:[(0,r.jsx)(c.A,{title:"Train Networks",description:"Explore real-time train information for various networks across North America.",canonical:"/networks/",image:"/social.png",type:"website",keywords:"train networks, railway systems, transit networks, passenger rail, commuter trains, subway systems, light rail, North America trains"}),(0,r.jsx)(o.A,{}),(0,r.jsxs)("main",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[(0,r.jsx)("div",{className:"py-4",children:(0,r.jsx)(n.A,{pages:g})}),(0,r.jsxs)("div",{className:"my-8",children:[(0,r.jsx)("h1",{className:"text-5xl font-bold mb-4 text-gray-900",children:e("networks")}),(0,r.jsx)("div",{className:"text-xl text-gray-500",children:e("networksSubtitle")})]}),(0,r.jsxs)("div",{className:"py-4",children:[(0,r.jsx)("div",{className:"hidden lg:grid lg:grid-cols-2 lg:gap-6 mb-6",children:h.filter(e=>"amtrak"===e.slug||"via"===e.slug).map(e=>(0,r.jsx)(l.A,{network:e},e.slug))}),(0,r.jsx)("div",{className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:h.filter(e=>"amtrak"!==e.slug&&"via"!==e.slug).map(e=>(0,r.jsx)(l.A,{network:e},e.slug))})]})]}),(0,r.jsx)(i.A,{})]})}}},e=>{e.O(0,[6701,3927,2325,3990,8447,5392,636,6593,8792],()=>e(e.s=88565)),_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.