[{"data":1,"prerenderedAt":126},["ShallowReactive",2],{"docs-\u002Fdocs\u002Frest-api\u002Ftrips":3,"_apollo:default":122,"_apollo:stationEditor":123,"_apollo:feedManagement":124,"_apollo:transferAnalyst":125},{"id":4,"title":5,"body":6,"description":112,"extension":113,"meta":114,"navigation":117,"path":118,"seo":119,"stem":120,"__hash__":121},"content\u002Fdocs\u002Frest-api\u002Ftrips.md","REST API - Trips",{"type":7,"value":8,"toc":104},"minimark",[9,14,23,26,35,40,43,46,53,67,78,86,95,98],[10,11,13],"h2",{"id":12},"trips","Trips",[15,16,17,18,22],"p",{},"Trips are ",[19,20,21],"code",{},"trips.txt"," entities imported from GTFS, and include the same basic structure and fields, plus some additional metadata.",[15,24,25],{},"Trip responses include their associated shape, calendar, frequency, and stop departure information; these entities do not have stand-alone endpoints.",[15,27,28,29,34],{},"For an overview of trips, schedules, and service calendars, see the ",[30,31,33],"a",{"href":32},"\u002Fdocumentation\u002Fconcepts\u002Ftrips-schedules","Trips & Schedules concept page",".",[36,37,39],"h3",{"id":38},"request-overview","Request overview",[15,41,42],{},"Trips must be accessed through a route; either a route ID or Onestop ID may be used.",[15,44,45],{},"Stop time information is only available when requesting a single trip by ID.",[15,47,48,49,34],{},"To instead see all departures from a given stop, use the ",[30,50,52],{"href":51},"\u002Fdocumentation\u002Frest-api\u002Fstops#stop-departures","stops departures endpoint",[15,54,55,56,59,60,63,64,34],{},"Shapes are included when accessing a single trip, requesting ",[19,57,58],{},"geojson"," or ",[19,61,62],{},"geojsonl"," formats, or with ",[19,65,66],{},"include_geometry=true",[15,68,69,70,73,74,77],{},"Trips scheduled to run on a particular date can be selected using the ",[19,71,72],{},"service_date"," parameter, a date in ",[19,75,76],{},"YYYY-MM-DD"," format.",[15,79,80,81,85],{},"The trip API returns \"active\" ",[30,82,84],{"href":83},"feed_versions","feed versions"," unless requesting a specific feed version.",[15,87,88,89,34],{},"Trip API results are based on this ",[30,90,94],{"href":91,"rel":92},"https:\u002F\u002Fgithub.com\u002Finterline-io\u002Ftransitland-lib\u002Fblob\u002Fmain\u002Fserver\u002Frest\u002Ftrip_request.gql",[93],"nofollow","GraphQL query",[96,97],"hr",{},[99,100],"openapi-endpoint",{"doc":101,"path":102,":heading-level":103},"rest","\u002Froutes\u002F{route_key}\u002Ftrips","3",{"title":105,"searchDepth":106,"depth":106,"links":107},"",2,[108],{"id":12,"depth":106,"text":13,"children":109},[110],{"id":38,"depth":111,"text":39},3,"Query trips for a route with the Transitland v2 REST API, including stop times, shapes, calendars, frequencies, and filtering by GTFS service date.","md",{"layout":115,"template":116},"documentation","api-reference",true,"\u002Fdocs\u002Frest-api\u002Ftrips",{"title":5,"description":112},"docs\u002Frest-api\u002Ftrips","0qOWQe6es6fWjGBEkDEmeYRrIxdahKX7aL6v-a_UcLA",{},{},{},{},1791248218748]