UNPKG

ws-dottie

Version:

Your friendly TypeScript companion for Washington State transportation APIs - WSDOT and WSF data with smart caching and React Query integration

3 lines 1.84 kB
import {c as c$1,e as e$1,d as d$1,b,a as a$1}from'./chunk-TVLIS7LG.mjs';import {j,i as i$1}from'./chunk-DOBO2Q4R.mjs';import {a,c as c$2,b as b$1}from'./chunk-XEHBQAFR.mjs';var e,r=a(()=>{e={name:"wsdot-traffic-flow",baseUrl:"https://www.wsdot.wa.gov/traffic/api/trafficflow/trafficflowrest.svc"};});var i,h,I,x,E,y=a(()=>{j();r();c$1();e$1();i={functionName:"fetchTrafficFlows",endpoint:"/getTrafficFlowsAsJson",inputSchema:b,outputSchema:d$1.array(),sampleParams:{},endpointDescription:"List current traffic flow conditions for all stations statewide."},{fetch:h,useHook:I}=i$1({api:e,endpoint:i,getCacheStrategy:()=>(c(),c$2(f)).flowDataGroup.cacheStrategy}),x=h,E=I;});var f={};b$1(f,{flowDataGroup:()=>D});var D,c=a(()=>{d();y();D={name:"flow-data",cacheStrategy:"FREQUENT",documentation:{summary:"Real-time traffic flow conditions from sensor stations across Washington state.",description:"Current traffic flow readings, station locations, and timestamps for traffic monitoring and congestion detection.",useCases:["Monitor real-time traffic flow conditions across Washington highways.","Detect congestion and traffic patterns for route planning.","Display current traffic status in traveler information systems."],updateFrequency:"90s"},endpoints:[i,n]};});var n,T,g,J,P,d=a(()=>{j();r();c$1();e$1();n={functionName:"fetchTrafficFlowById",endpoint:"/getTrafficFlowAsJson?FlowDataID={FlowDataID}",inputSchema:a$1,outputSchema:d$1,sampleParams:{FlowDataID:2482},endpointDescription:"Get current traffic flow condition for a specific station by ID."},{fetch:T,useHook:g}=i$1({api:e,endpoint:n,getCacheStrategy:()=>(c(),c$2(f)).flowDataGroup.cacheStrategy}),J=T,P=g;}); export{e as a,r as b,J as c,P as d,d as e,x as f,E as g,y as h,D as i,c as j};//# sourceMappingURL=chunk-VKVXEZNC.mjs.map //# sourceMappingURL=chunk-VKVXEZNC.mjs.map