[{"data":1,"prerenderedAt":98},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fconcepts\u002Falerts":3,"_apollo:default":94,"_apollo:stationEditor":95,"_apollo:feedManagement":96,"_apollo:transferAnalyst":97},{"id":4,"title":5,"body":6,"description":85,"extension":86,"meta":87,"navigation":89,"path":90,"seo":91,"stem":92,"__hash__":93},"content\u002Fdocs\u002Fconcepts\u002Falerts.md","Alerts",{"type":7,"value":8,"toc":80},"minimark",[9,20,28,33,36,73],[10,11,12,13,19],"p",{},"Transitland enriches static schedule data with real-time alerts. Alerts are imported from ",[14,15,18],"a",{"href":16,"target":17},"https:\u002F\u002Fgtfs.org\u002Fdocumentation\u002Frealtime\u002Freference\u002F","_blank","GTFS Realtime"," service alerts and trip updates feeds.",[10,21,22,23,27],{},"See also ",[14,24,26],{"href":25},"\u002Fdocumentation\u002Fconcepts\u002Fsource-feeds#gtfs-realtime-feed-fetching-and-caching","GTFS Realtime feed fetching and caching",".",[29,30,32],"h2",{"id":31},"alerts-available-through-the-rest-api","Alerts available through the REST API",[10,34,35],{},"The Transitland v2 REST API filters all alerts and provides a subset of alerts through the most appropriate endpoint:",[37,38,39,52,59,66],"ul",{},[40,41,42,46,47,51],"li",{},[14,43,45],{"href":44},"\u002Fdocumentation\u002Frest-api\u002Fagencies","Agencies",": when the alert does not provide (via ",[48,49,50],"code",{},"InformedEntities",") a specific stop, route, or trip",[40,53,54,58],{},[14,55,57],{"href":56},"\u002Fdocumentation\u002Frest-api\u002Froutes","Routes",": when the alert does not provide a specific stop or trip",[40,60,61,65],{},[14,62,64],{"href":63},"\u002Fdocumentation\u002Frest-api\u002Fstops","Stops",": when the alert does not provide a specific trip",[40,67,68,72],{},[14,69,71],{"href":70},"\u002Fdocumentation\u002Frest-api\u002Ftrips","Trips",": only for that specific trip",[10,74,75,76,79],{},"All of the above endpoints can take the ",[48,77,78],{},"include_alerts"," query parameter to turn on or off the inclusion of alerts in the API response.",{"title":81,"searchDepth":82,"depth":82,"links":83},"",2,[84],{"id":31,"depth":82,"text":32},"Transitland imports GTFS Realtime service alerts and returns them through the agencies, routes, stops, and trips REST endpoints with include_alerts.","md",{"layout":88},"documentation",true,"\u002Fdocs\u002Fconcepts\u002Falerts",{"title":5,"description":85},"docs\u002Fconcepts\u002Falerts","k4pM90YTwMLkblR2roCVnkg_VfnAABbPfTTtfsoFD5M",{},{},{},{},1791115792678]