Home / Tools / osrm.route

OSRM Turn-by-Turn Routing

Free

Tool ID: osrm.route

Compute driving, walking, or cycling route distance (meters) and duration (seconds) between two coordinates via OSRM.

Provider
osrm
Category
Science, Gov, Geo & Knowledge
Pricing
Free public data ($0.00)
Replaces Signup
Replaces Google Maps Directions / Mapbox account setup for A-to-B routing
Get API Key ($0.50 Free Credit) Browse All 223 Tools

Input Parameters

ParameterTypeRequiredDescription
originobjectRequiredStarting coordinates
destinationobjectRequiredEnding coordinates
profilestring (driving | walking | cycling)RequiredDefault: "driving"

Call via REST API

curl -X POST https://helve.dev/v1/tools/call \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "tool_id": "osrm.route",
  "arguments": {
    "origin": {
      "lat": 37.7749,
      "lon": -122.4194
    },
    "destination": {
      "lat": 37.7858,
      "lon": -122.4089
    },
    "profile": "driving"
  }
}'

Call via MCP (call_tool)

{
  "name": "call_tool",
  "arguments": {
    "tool_id": "osrm.route",
    "arguments": {
      "origin": {
        "lat": 37.7749,
        "lon": -122.4194
      },
      "destination": {
        "lat": 37.7858,
        "lon": -122.4089
      },
      "profile": "driving"
    }
  }
}

Related Science, Gov, Geo & Knowledge Tools