snap

Pack: openrouteservice · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/snap for the schema, then POST the same URL with its arguments for the data.

“Snap coordinate to nearest road” / “find closest road to [lat,lng]” / “is there a road at this point” — snap arbitrary GPS coordinates to the nearest routable OSM road for a given profile (car / bike / foot). Use to clean noisy GPS, validate routability before calling directions, or place markers on a road network.

Parameters

NameTypeRequiredDescription
locationsarrayyes
itemsarrayno
itemsnumberno
profilestringno
radiusnumberno

Example call

Arguments

{
  "locations": [
    [
      8.681495,
      49.41461
    ],
    [
      8.687872,
      49.420318
    ]
  ],
  "profile": "driving-car",
  "radius": 50
}

curl

curl -X POST https://gateway.pipeworx.io/openrouteservice/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"snap","arguments":{"locations":[[8.681495,49.41461],[8.687872,49.420318]],"profile":"driving-car","radius":50}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('snap', {
  "locations": [
    [
      8.681495,
      49.41461
    ],
    [
      8.687872,
      49.420318
    ]
  ],
  "profile": "driving-car",
  "radius": 50
});

Response shape

Full JSON Schema
{
  "type": "object",
  "description": "Snap to road response from OpenRouteService"
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the openrouteservice pack
{
  "mcpServers": {
    "openrouteservice": {
      "url": "https://gateway.pipeworx.io/openrouteservice/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 5, 2026