[{"data":1,"prerenderedAt":113},["ShallowReactive",2],{"docs-\u002Fdocs\u002Frest-api\u002Froutes":3,"_apollo:default":109,"_apollo:stationEditor":110,"_apollo:feedManagement":111,"_apollo:transferAnalyst":112},{"id":4,"title":5,"body":6,"description":98,"extension":99,"meta":100,"navigation":103,"path":104,"seo":105,"stem":106,"__hash__":107,"lastUpdated":108},"content\u002Fdocs\u002Frest-api\u002Froutes.md","REST API - Routes",{"type":7,"value":8,"toc":90},"minimark",[9,14,23,35,40,48,63,71,81,84],[10,11,13],"h2",{"id":12},"routes","Routes",[15,16,17,18,22],"p",{},"The REST API routes endpoint provides a fast and flexible way to browse ",[19,20,12],"a",{"href":21},"\u002Fdocumentation\u002Fconcepts\u002Froutes"," and to visualize their representative geometries.",[24,25,26,27],"info",{},"\n  ",[15,28,29,30,34],{},"When visualizing many routes over a large region, consider using Transitland's ",[19,31,33],{"href":32},"\u002Fdocumentation\u002Fvector-tiles","vector tiles"," instead of the REST API.",[36,37,39],"h3",{"id":38},"request-overview","Request overview",[15,41,42,43,47],{},"The routes API provides optional flags for including or disincluding certain response sections; this may be useful for optimizing the speed and size of requests. The API also provides ",[44,45,46],"code",{},"png"," as a format option, which returns a PNG format image containing a simple static map of the route and stops.",[15,49,50,51,54,55,58,59,62],{},"Geographic queries require all three parameters of ",[44,52,53],{},"lat",", ",[44,56,57],{},"lon",", and ",[44,60,61],{},"radius"," to be specified. The maximum radius is 10km.",[15,64,65,66,70],{},"The route API returns \"active\" ",[19,67,69],{"href":68},"\u002Fdocumentation\u002Fconcepts\u002Fstatic-gtfs-feed-versions","feed versions"," unless requesting a specific feed version.",[15,72,73,74,80],{},"Route API results are based on this ",[19,75,79],{"href":76,"rel":77},"https:\u002F\u002Fgithub.com\u002Finterline-io\u002Ftransitland-lib\u002Fblob\u002Fmain\u002Fserver\u002Frest\u002Froute_request.gql",[78],"nofollow","GraphQL query",".",[82,83],"hr",{},[85,86],"openapi-endpoint",{"doc":87,"path":88,":heading-level":89},"rest","\u002Froutes","3",{"title":91,"searchDepth":92,"depth":92,"links":93},"",2,[94],{"id":12,"depth":92,"text":13,"children":95},[96],{"id":38,"depth":97,"text":39},3,"Search GTFS routes by Onestop ID, operator, location, or route type with the Transitland v2 REST API routes endpoint, with GeoJSON and PNG map output.","md",{"layout":101,"template":102},"documentation","api-reference",true,"\u002Fdocs\u002Frest-api\u002Froutes",{"title":5,"description":98},"docs\u002Frest-api\u002Froutes","8nroFyQgN7Ebuh86q7kbQSsci782kf3y03obUXCEtUs","2026-10-02T21:22:46-07:00",{},{},{},{},1792376830332]