[{"data":1,"prerenderedAt":156},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fconcepts\u002Falerts":3,"_apollo:default":155,"_apollo:stationEditor":155,"_apollo:feedManagement":155,"_apollo:transferAnalyst":155},{"id":4,"title":5,"body":6,"description":145,"extension":146,"meta":147,"navigation":149,"path":150,"seo":151,"stem":152,"__hash__":153,"lastUpdated":154},"content\u002Fdocs\u002Fconcepts\u002Falerts.md","Alerts",{"type":7,"value":8,"toc":139},"minimark",[9,20,28,33,41,111,123,127],[10,11,12,13,19],"p",{},"Transitland enriches static schedule data with real-time alerts. Alerts are read from ",[14,15,18],"a",{"href":16,"target":17},"https:\u002F\u002Fgtfs.org\u002Fdocumentation\u002Frealtime\u002Freference\u002F","_blank","GTFS Realtime"," service alerts feeds. Alert entities that appear inside a trip updates feed are not used.",[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,36,40],{},"Each alert lists the entities it applies to in its ",[37,38,39],"code",{},"informed_entity"," selectors. The Transitland v2 REST API matches those selectors to the most appropriate endpoint:",[42,43,44,57],"table",{},[45,46,47],"thead",{},[48,49,50,54],"tr",{},[51,52,53],"th",{},"Endpoint",[51,55,56],{},"Alerts included",[58,59,60,75,89,100],"tbody",{},[48,61,62,69],{},[63,64,65],"td",{},[14,66,68],{"href":67},"\u002Fdocumentation\u002Frest-api\u002Fagencies","Agencies and operators",[63,70,71,72],{},"Alerts for the agency as a whole, or for all routes of one ",[37,73,74],{},"route_type",[48,76,77,83],{},[63,78,79],{},[14,80,82],{"href":81},"\u002Fdocumentation\u002Frest-api\u002Froutes","Routes",[63,84,85,86,88],{},"Alerts for the route, the route at a specific stop, the route's ",[37,87,74],{},", or one of the route's trips",[48,90,91,97],{},[63,92,93],{},[14,94,96],{"href":95},"\u002Fdocumentation\u002Frest-api\u002Fstops","Stops",[63,98,99],{},"Alerts for the stop that do not name a specific trip",[48,101,102,108],{},[63,103,104],{},[14,105,107],{"href":106},"\u002Fdocumentation\u002Frest-api\u002Ftrips","Trips",[63,109,110],{},"Alerts for that specific trip",[10,112,113,114,118,119,122],{},"All of the above endpoints, and the ",[14,115,117],{"href":116},"\u002Fdocumentation\u002Frest-api\u002Fdepartures","departures endpoint",", take the ",[37,120,121],{},"include_alerts"," query parameter to turn on or off the inclusion of alerts in the API response.",[29,124,126],{"id":125},"alerts-in-the-graphql-api","Alerts in the GraphQL API",[10,128,129,130,134,135,138],{},"The ",[14,131,133],{"href":132},"\u002Fdocumentation\u002Fgraphql-api","GraphQL API"," provides an ",[37,136,137],{},"alerts"," field on agencies, routes, stops, and trips, with arguments to limit results to currently active alerts.",{"title":140,"searchDepth":141,"depth":141,"links":142},"",2,[143,144],{"id":31,"depth":141,"text":32},{"id":125,"depth":141,"text":126},"Transitland imports GTFS Realtime service alerts and returns them through the agencies, operators, routes, stops, trips, and departures REST endpoints and the GraphQL API.","md",{"layout":148},"documentation",true,"\u002Fdocs\u002Fconcepts\u002Falerts",{"title":5,"description":145},"docs\u002Fconcepts\u002Falerts","1pcqmxefpv-IXk2dpSoc69HZ1oidQ_6EkAIDzE2OB-U","2026-10-06T21:54:02-07:00","{}",1793614314805]