{"uid":"cap_O_psa5D4PbmOUORxicOIE","slug":"x-402-route-directions-e57646fb","name":"x-402 Route Directions","description":"Point-to-point directions between 2 and 10 stops by car, bike or on foot: total and per-leg distance and travel time, snapped stops, route geometry as GeoJSON or polyline Point-to-point directions between 2 and 10 stops by car, bike or on foot: total an…","url":"https://api.x-402.online/v1/route/directions?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kJFFDiithWDCPK7txfrVN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns point-to-point driving, cycling, or walking directions for 2–10 stops including total and per-leg distance, travel time, snapped waypoints, and route geometry","exampleAgentPrompt":"Can you get me driving directions from 51.5074,-0.1278 to 51.5155,-0.0922 with a stop at 51.5100,-0.1000, and return the route as GeoJSON?","exampleUseCases":[{"title":"Multi-stop delivery route planning","prompt":"I need to plan a driving route from our warehouse at 40.7128,-74.0060 through three customer stops at 40.7282,-73.9942, 40.7411,-73.9897, and 40.7549,-73.9840 — give me the total distance and time for each leg."},{"title":"Cycling commute time estimate","prompt":"How long will it take me to cycle from 48.8566,2.3522 to 48.8738,2.2950 in Paris? Give me the route geometry and per-leg breakdown."},{"title":"Walking tour waypoint routing","prompt":"Plan a walking route visiting these four spots in London: 51.5007,-0.1246, 51.5033,-0.1195, 51.5074,-0.1278, and 51.5081,-0.0759 — I need distance and time for each segment and a GeoJSON of the full path."}],"resultDescription":"Returns total route distance and travel time, per-leg distance and time breakdowns, snapped stop coordinates, and the full route geometry encoded as GeoJSON or polyline — covering all legs between 2 and 10 stops for the chosen travel mode (car, bike, or foot).","failureModes":["Invalid or unparseable coordinates return an error","More than 10 stops exceeds the limit and returns a validation error","Unsupported travel mode string returns a bad request error","Unreachable route (e.g. island with no road connection) may return no route found","Missing required origin or destination returns a 400-level error","Payment failure (insufficient USDC balance) returns a 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need structured, machine-readable routing data (distances, times, geometry) for up to 10 stops via car, bike, or walking — especially in agent workflows that require pay-per-call pricing with no account setup via the x402 protocol. Prefer it over full mapping SDKs when you only need directions data without a rendered map UI.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:30:59.682Z","isFirstParty":false,"canonicalSlug":"x-402-route-directions-e57646fb"}