Home / Tools / osrm.matrix

OSRM Travel Time & Distance Matrix

Free

Tool ID: osrm.matrix

Compute all-pairs travel durations and distances across 2-15 coordinates for logistics and route optimization.

Provider
osrm
Category
Science, Gov, Geo & Knowledge
Pricing
Free public data ($0.00)
Replaces Signup
Replaces Distance Matrix API accounts
Get API Key ($0.50 Free Credit) Browse All 223 Tools

Input Parameters

ParameterTypeRequiredDescription
coordinatesarrayRequiredList of 2-15 waypoints to compute all-pairs duration/distance
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.matrix",
  "arguments": {
    "coordinates": [
      {
        "lat": 37.7749,
        "lon": -122.4194
      },
      {
        "lat": 37.7858,
        "lon": -122.4089
      }
    ],
    "profile": "driving"
  }
}'

Call via MCP (call_tool)

{
  "name": "call_tool",
  "arguments": {
    "tool_id": "osrm.matrix",
    "arguments": {
      "coordinates": [
        {
          "lat": 37.7749,
          "lon": -122.4194
        },
        {
          "lat": 37.7858,
          "lon": -122.4089
        }
      ],
      "profile": "driving"
    }
  }
}

Related Science, Gov, Geo & Knowledge Tools