{"uid":"cap_zSAJ0ztj29rmat1N-ixqP","slug":"relaystation-route-calculator-db1f0d74","name":"Relaystation Route Calculator","description":"$0.01/route. Calculate a route between two points — distance, duration, and geometry back as JSON. 155 tools, one balance — relaystation.ai","url":"https://api.relaystation.ai/v1/location/route","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"origin":{"type":"array","items":{"type":"number"},"maxItems":2,"minItems":2},"departNow":{"type":"boolean"},"travelMode":{"enum":["Car","Truck","Pedestrian","Scooter"],"type":"string"},"destination":{"type":"array","items":{"type":"number"},"maxItems":2,"minItems":2}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RVZAiVS_bYspaHNiPi8Q8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates a route between two geographic coordinates, returning distance, duration, and geometry as JSON","exampleAgentPrompt":"Can you calculate a driving route from coordinates 37.7749, -122.4194 to 37.3382, -121.8863 and tell me the distance and estimated travel time?","exampleUseCases":[{"title":"Delivery time estimation for logistics","prompt":"I need to calculate the driving route and estimated travel time from our warehouse at 40.7128, -74.0060 to a customer delivery address at 40.6501, -73.9496 — can you get me the distance and duration?"},{"title":"Pedestrian route for urban navigation app","prompt":"Get me the walking route between coordinates 48.8566, 2.3522 and 48.8606, 2.3376 in Paris so I can show the path and walking time on a map."},{"title":"Truck route for fleet management","prompt":"Calculate a truck route from 51.5074, -0.1278 to 51.4816, -0.0094, including the route geometry, so we can plan the driver's path for this delivery run."}],"resultDescription":"Returns a JSON object containing the calculated route between two coordinate pairs, including total distance, estimated travel duration, and route geometry (polyline or coordinates) suitable for map rendering or logistics planning.","failureModes":["Invalid or out-of-range coordinates cause a 4xx error","Unsupported travel mode enum value returns a validation error","Origin and destination too close or identical may return degenerate route","Network routing failure if coordinates are in an area with no road coverage","Missing required fields (origin, destination) return a schema validation error","Insufficient x402 balance results in payment failure before route calculation"],"whenToPreferThis":"Choose this endpoint when you need a quick, low-cost ($0.01) route calculation between two coordinate pairs and want JSON back with distance, duration, and geometry. Ideal for agents handling logistics, delivery planning, map rendering, or travel time estimation where a lightweight routing call is sufficient and you want unified billing across Relaystation's tool suite.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:31:44.661Z","isFirstParty":false}