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 • 2.26 kB
JavaScript
;var chunk2C2WA5LS_js=require('./chunk-2C2WA5LS.js'),chunkGWRLC6BC_js=require('./chunk-GWRLC6BC.js'),chunkXD2OIZAB_js=require('./chunk-XD2OIZAB.js');exports.a=void 0;var r=chunkXD2OIZAB_js.a(()=>{exports.a={name:"wsdot-traffic-flow",baseUrl:"https://www.wsdot.wa.gov/traffic/api/trafficflow/trafficflowrest.svc"};});var i,h,I;exports.f=void 0;exports.g=void 0;var y=chunkXD2OIZAB_js.a(()=>{chunkGWRLC6BC_js.j();r();chunk2C2WA5LS_js.c();chunk2C2WA5LS_js.e();i={functionName:"fetchTrafficFlows",endpoint:"/getTrafficFlowsAsJson",inputSchema:chunk2C2WA5LS_js.b,outputSchema:chunk2C2WA5LS_js.d.array(),sampleParams:{},endpointDescription:"List current traffic flow conditions for all stations statewide."},{fetch:h,useHook:I}=chunkGWRLC6BC_js.i({api:exports.a,endpoint:i,getCacheStrategy:()=>(c(),chunkXD2OIZAB_js.c(f)).flowDataGroup.cacheStrategy}),exports.f=h,exports.g=I;});var f={};chunkXD2OIZAB_js.b(f,{flowDataGroup:()=>exports.i});exports.i=void 0;var c=chunkXD2OIZAB_js.a(()=>{d();y();exports.i={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;exports.c=void 0;exports.d=void 0;var d=chunkXD2OIZAB_js.a(()=>{chunkGWRLC6BC_js.j();r();chunk2C2WA5LS_js.c();chunk2C2WA5LS_js.e();n={functionName:"fetchTrafficFlowById",endpoint:"/getTrafficFlowAsJson?FlowDataID={FlowDataID}",inputSchema:chunk2C2WA5LS_js.a,outputSchema:chunk2C2WA5LS_js.d,sampleParams:{FlowDataID:2482},endpointDescription:"Get current traffic flow condition for a specific station by ID."},{fetch:T,useHook:g}=chunkGWRLC6BC_js.i({api:exports.a,endpoint:n,getCacheStrategy:()=>(c(),chunkXD2OIZAB_js.c(f)).flowDataGroup.cacheStrategy}),exports.c=T,exports.d=g;});
exports.b=r;exports.e=d;exports.h=y;exports.j=c;//# sourceMappingURL=chunk-QEVXGIO2.js.map
//# sourceMappingURL=chunk-QEVXGIO2.js.map