[{"data":1,"prerenderedAt":327},["ShallowReactive",2],{"docs-\u002Fdocs\u002Frouting-platform\u002Ftransit-otp":3,"_apollo:default":323,"_apollo:stationEditor":324,"_apollo:feedManagement":325,"_apollo:transferAnalyst":326},{"id":4,"title":5,"body":6,"description":15,"extension":316,"meta":317,"navigation":318,"path":319,"seo":320,"stem":321,"__hash__":322},"content\u002Fdocs\u002Frouting-platform\u002Ftransit-otp.md","Transit routing (OTP-compatible)",{"type":7,"value":8,"toc":302},"minimark",[9,16,20,23,32,56,61,64,72,76,83,86,90,93,96,100,103,126,130,133,211,214,229,233,240,243,250,255,258,267,270,274,277,285,289,294],[10,11,12],"div",{},[13,14],"account-tiers",{"beta":15},"",[17,18,19],"p",{},"The Transitland Routing API plans routes from an origin\u002Fstart location to a destination\u002Fstop location by transit and other modes of travel.",[17,21,22],{},"The Transitland Routing API is powered by the same archive of GTFS archives as the other Transitland v2 APIs. Users can combine itineraries from the Transitland Routing API with queries performed against other Transitland v2 APIs.",[17,24,25,26,31],{},"For definitions of journeys, itineraries, and legs, see ",[27,28,30],"a",{"href":29},"\u002Fdocumentation\u002Fconcepts\u002Fjourneys-and-itineraries","Journeys and Itineraries",".",[33,34,35,36,35,50,35,53],"info",{},"\n  ",[17,37,38,39,44,45,49],{},"To sign up for the Transitland Routing API beta, use your Interline account to ",[27,40,43],{"href":41,"target":42},"https:\u002F\u002Fapp.interline.io\u002Fproducts\u002Ftlv2_api\u002Forders\u002Fnew","_blank","place a new order for a Transitland API subscription",". Select the ",[46,47,48],"em",{},"Transitland Routing API - Beta"," plan.",[17,51,52],{},"The beta plan includes 1,000 free routing queries per month.",[17,54,55],{},"At the end of the beta period, we will announce free and paid plans.",[57,58,60],"h2",{"id":59},"online-vs-batch-usage","Online vs. batch usage",[17,62,63],{},"The public Transitland Routing API is intended for \"online\" purposes such as interactive web or mobile applications.",[33,65,66,67,71],{},"\n  For batch purposes, such as analyzing transit travel between thousands or millions of origin\u002Fdestination pairs that are known in advance, Interline also offers a full-service option. ",[27,68,70],{"href":69},"https:\u002F\u002Fapp.interline.io\u002Fcontact_forms\u002Fbatch_routing","Contact Interline for more information about batch routing analysis",".\n",[57,73,75],{"id":74},"geographic-coverage","Geographic coverage",[17,77,78,79,31],{},"For beta release, coverage is ",[27,80,82],{"href":81},"\u002Fplaces\u002FUnited+States+of+America","all current operators in the United States",[17,84,85],{},"In the future, we expect to increase routing coverage to match worldwide coverage offered by other Transitland v2 APIs.",[57,87,89],{"id":88},"modes-of-travel","Modes of travel",[17,91,92],{},"Transitland Routing APIs support travel by transit and walking.",[17,94,95],{},"In the future, additional modes of travel may be supported.",[57,97,99],{"id":98},"features-and-benefits","Features and benefits",[17,101,102],{},"The beta release of Transitland Routing API provides the following features and benefits:",[104,105,106,114,120],"ul",{},[107,108,109,113],"li",{},[110,111,112],"strong",{},"Broad coverage in one routing engine",": Transit routing across all locations in the United States where Transitland has GTFS source feed coverage (to be expanded worldwide in the future). No need to maintain separate routing engines for each metro region.",[107,115,116,119],{},[110,117,118],{},"Rapidly updating schedules",": When the Transitland platform receives new versions of source feeds, the new routing graph tiles are rapidly created behind the scenes. Transitland Routing API switches to using the new source feed version's service schedules within minutes. No need to wait hours or days for the routing engine to rebuild.",[107,121,122,125],{},[110,123,124],{},"Compatible APIs",": Transitland Routing API beta is released with an API endpoint that is compatible with OpenTripPlanner. We may add additional compatibility modes in the future, such as a Google Directions API compatibility endpoint.",[57,127,129],{"id":128},"known-limitations","Known limitations",[17,131,132],{},"Transitland Routing API is a beta release and is under ongoing development. The following are known limitations:",[104,134,135,146,175,183,195,203],{},[107,136,137,138],{},"Journey itineraries:\n",[104,139,140,143],{},[107,141,142],{},"Pedestrian legs include a shape, origin, and destination, which is sufficient for plotting on a map; pedestrian legs do not include detailed street names or maneuver routing for narrative instructions.",[107,144,145],{},"Itineraries do not include fares.",[107,147,148,149],{},"Stops and routes:\n",[104,150,151,162,172],{},[107,152,153,157,158,161],{},[154,155,156],"code",{},"pickup_type"," or ",[154,159,160],{},"drop_off_type"," > 0 not supported.",[107,163,164,167,168,171],{},[154,165,166],{},"continuous_pickup"," and ",[154,169,170],{},"continuous_drop_off"," not supported",[107,173,174],{},"Loop routes not well supported.",[107,176,177,178],{},"Timezones:\n",[104,179,180],{},[107,181,182],{},"Trips spanning multiple timezones are not well supported.",[107,184,185,186],{},"Transfers:\n",[104,187,188],{},[107,189,190,191,194],{},"Transitland Routing API doesn't make use of ",[154,192,193],{},"transfers.txt"," when calculating transfers.",[107,196,197,198],{},"GTFS Realtime:\n",[104,199,200],{},[107,201,202],{},"Transitland Routing API doesn't make use of GTFS Realtime TripUpdates or VehiclePositions.",[107,204,205,206],{},"Performance:\n",[104,207,208],{},[107,209,210],{},"Users of the beta may intentionally be slowed or rate limited in their use.",[17,212,213],{},"The following are previous limitations that have since been resolved:",[104,215,216,219],{},[107,217,218],{},"Transfers after midnight are now supported.",[107,220,221,224,225,228],{},[154,222,223],{},"block_id"," in ",[154,226,227],{},"trips.txt"," is now used when calculating transfers.",[57,230,232],{"id":231},"otp-compatible-api-endpoint","OTP-compatible API endpoint",[17,234,235,236,239],{},"The beta release of the Transitland Routing API provides an endpoint that supports the main request options and response type as OpenTripPlanner's ",[154,237,238],{},"plan"," REST API.",[17,241,242],{},"Software libraries designed to work with the OTP REST API will also likely work with the Transitland Routing API.",[33,244,35,245,249],{},[27,246,248],{"href":247},"http:\u002F\u002Fwww.opentripplanner.org","OpenTripPlanner"," (OTP) is an open-source transit trip planner. No code from the OTP project is used to power the Transitland Routing API.\n",[251,252,254],"h3",{"id":253},"endpoint","Endpoint",[17,256,257],{},"Submit requests to",[259,260,265],"pre",{"className":261,"code":263,"language":264},[262],"language-text","https:\u002F\u002Ftransit.land\u002Fapi\u002Fv2\u002Frouting\u002Fotp\u002Fplan\n","text",[154,266,263],{"__ignoreMap":15},[17,268,269],{},"Requests may use GET or POST methods.",[251,271,273],{"id":272},"transit-routing-or-stop-departures","Transit routing or stop departures?",[17,275,276],{},"This endpoint plans a journey from an origin to a destination. It selects stops, routes, and transfers, and returns itineraries with walking legs and timings.",[17,278,279,280,284],{},"To list departures from a known stop, use the REST API ",[27,281,283],{"href":282},"\u002Fdocumentation\u002Frest-api\u002Fdepartures","stop departures endpoint",". It returns the trips serving a stop in a time window, with real-time estimates where a feed provides them.",[251,286,288],{"id":287},"request-and-response","Request and response",[290,291],"openapi-endpoint",{"doc":292,"path":293},"routing","\u002Fotp\u002Fplan",[17,295,296,297,301],{},"See the ",[27,298,300],{"href":299},"\u002Fdocumentation\u002Frouting-platform\u002F","Routing Platform overview"," for API access and the machine-readable schema.",{"title":15,"searchDepth":303,"depth":303,"links":304},2,[305,306,307,308,309,310],{"id":59,"depth":303,"text":60},{"id":74,"depth":303,"text":75},{"id":88,"depth":303,"text":89},{"id":98,"depth":303,"text":99},{"id":128,"depth":303,"text":129},{"id":231,"depth":303,"text":232,"children":311},[312,314,315],{"id":253,"depth":313,"text":254},3,{"id":272,"depth":313,"text":273},{"id":287,"depth":313,"text":288},"md",{},true,"\u002Fdocs\u002Frouting-platform\u002Ftransit-otp",{"title":5,"description":15},"docs\u002Frouting-platform\u002Ftransit-otp","I_03aa62Ywfab3-hz7-yF-fy6O-4zwo3CjOfEfD1H0U",{},{},{},{},1790811157345]