{"uid":"cap_xQUHswnOojHU1RXKQA9y3","slug":"transit402-dev-5f4ac3e0","name":"transit402.dev Nearby Bus Stops","description":"Nearby bus stops with real-time arrival predictions","url":"https://transit402.dev/bus/nearest","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"lat":{"type":"number","description":"Latitude in WGS84 decimal degrees."},"lng":{"type":"number","description":"Longitude in WGS84 decimal degrees."},"limit":{"type":"integer","default":5,"maximum":10,"minimum":1,"description":"Optional number of nearby results to return (1–10, defaults to 5). Fetch the full set to filter by user constraints (min bikes, max walk time, e-bikes only, specific lines/routes), then present the top 3 to the user."}}},"responseSchema":{"type":"json","example":{}},"example":{"request":{"lat":40.7128,"lng":-74.006,"limit":5},"response":{"results":[{"lat":40.712679,"lng":-74.007665,"name":"BROADWAY/PARK PL","routes":["M55"],"arrivals":[],"walk_minutes":2,"distance_feet":505},{"lat":40.714954,"lng":-74.007835,"name":"CHURCH ST/CHAMBERS ST","routes":["BxM18","M55","X27","X28"],"arrivals":[],"walk_minutes":6,"distance_feet":1293},{"lat":40.711588,"lng":-74.007089,"name":"PARK ROW/BEEKMAN ST","routes":["QM65"],"arrivals":[],"walk_minutes":3,"distance_feet":743},{"lat":40.713272,"lng":-74.004029,"name":"CENTRE ST/CHAMBERS ST","routes":["M22"],"arrivals":[{"route":"M22","minutes":5,"proximity":"1 stop away","stops_away":1,"destination":"BATTERY PK CTY VESEY ST"},{"route":"M22","minutes":39,"proximity":"3.8 miles away","stops_away":14,"destination":"BATTERY PK CTY VESEY ST"}],"walk_minutes":3,"distance_feet":717},{"lat":40.711845,"lng":-74.006641,"name":"PARK ROW/SPRUCE ST","routes":["M9"],"arrivals":[],"walk_minutes":2,"distance_feet":526}]}},"exampleRequest":{"lat":40.7128,"lng":-74.006,"limit":5},"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_geCx3Eq3_AkD_CopzfCVp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns nearby bus stops with real-time arrival predictions given a latitude/longitude coordinate","exampleAgentPrompt":"What bus stops are near 40.7128, -74.0060 right now, and when are the next buses arriving? Show me up to 5 closest stops with live predictions.","exampleUseCases":null,"resultDescription":"A list of up to 10 nearby bus stops (defaulting to 5), each with location details and real-time arrival predictions for buses expected at that stop.","failureModes":["Invalid or out-of-range coordinates return an error","No bus stops found within range of the given location","Real-time prediction data unavailable for a stop","limit parameter outside 1–10 range rejected","Payment not completed or insufficient USDC results in 402 response"],"whenToPreferThis":"Use this endpoint when you need real-time bus arrival predictions for stops near a specific geographic coordinate, especially in a transit-aware agent workflow. Prefer this over static schedule APIs when live prediction data matters and you need to surface actionable departure times to a user in the field.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:41:15.027Z","isFirstParty":false}