nearest
Pack: osrm · Endpoint: https://gateway.pipeworx.io/osrm/mcp
Snap a single point to the nearest road segment.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
longitude | number | yes | |
latitude | number | yes | |
profile | string | no | |
number | number | no | How many alternatives to return (default 1) |
Example call
curl -X POST https://gateway.pipeworx.io/osrm/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"nearest","arguments":{}}}'
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"osrm": {
"url": "https://gateway.pipeworx.io/osrm/mcp"
}
}
}
See Getting Started for client-specific install steps.