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.8 kB
import {c,e,d as d$1,b,a as a$1}from'./chunk-SYIUDQVA.mjs';import {j,i as i$1}from'./chunk-ZI3JNZGU.mjs';import {a,c as c$1,b as b$1}from'./chunk-XEHBQAFR.mjs';var r,i=a(()=>{r={name:"wsdot-travel-times",baseUrl:"https://www.wsdot.wa.gov/traffic/api/traveltimes/traveltimesrest.svc"};});var o,h,B,E,d=a(()=>{j();i();c();e();o={functionName:"fetchTravelTimes",endpoint:"/getTravelTimesAsJson",inputSchema:b,outputSchema:d$1.array(),sampleParams:{},endpointDescription:"List travel time data for all available routes."},h=i$1({api:r,endpoint:o,getEndpointGroup:()=>(s(),c$1(m)).travelTimeRoutesGroup}),{fetch:B,hook:E}=h;});var m={};b$1(m,{travelTimeRoutesGroup:()=>I});var I,s=a(()=>{f();d();I={name:"travel-time-routes",cacheStrategy:"STATIC",documentation:{summary:"Current and average travel times for major Washington State highway routes.",description:"Travel time data for routes in Seattle, Tacoma, and Snoqualmie Pass areas, including distance, start/end points, and comparison of current vs. average times.",useCases:["Plan travel routes and estimate arrival times.","Compare current conditions against historical averages to identify delays.","Optimize departure times based on real-time traffic conditions."],updateFrequency:"5m"},endpoints:[o,p]};});var p,M,C,P,f=a(()=>{j();i();c();e();p={functionName:"fetchTravelTimeById",endpoint:"/getTravelTimeAsJson?TravelTimeID={TravelTimeID}",inputSchema:a$1,outputSchema:d$1,sampleParams:{TravelTimeID:1},endpointDescription:"Get travel time data for a specific route by ID."},M=i$1({api:r,endpoint:p,getEndpointGroup:()=>(s(),c$1(m)).travelTimeRoutesGroup}),{fetch:C,hook:P}=M;}); export{r as a,i as b,C as c,P as d,f as e,B as f,E as g,d as h,I as i,s as j};//# sourceMappingURL=chunk-ZPSKPQF3.mjs.map //# sourceMappingURL=chunk-ZPSKPQF3.mjs.map