snap
Pack: openrouteservice · Endpoint: https://gateway.pipeworx.io/openrouteservice/mcp
“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
| Name | Type | Required | Description |
|---|---|---|---|
locations | array | yes | |
items | array | no | |
items | number | no | |
profile | string | no | |
radius | number | no |
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, or use one-click install buttons:
{
"mcpServers": {
"openrouteservice": {
"url": "https://gateway.pipeworx.io/openrouteservice/mcp"
}
}
}
See Getting Started for client-specific install steps.