Encoded polyline encode/decode
route-optimization_polyline-codecEncode or decode Google Encoded Polyline strings and optionally simplify with Douglas-Peucker. Price $0.01 USDC. POST /api/v1/route-optimization/polyline-codec. An unpaid call returns the x402 payment terms and does not run.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "route-optimization_polyline-codec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decode | No | decode, value. Optional. | |
| encode | No | encode, array. Optional. | |
| simplify | No | simplify, value. Optional. | |
| precision | No | precision, value. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | No | points. Number. | |
| encoded | No | encoded. String. | |
| sources | No | sources. Array. | |
| limitations | No | limitations. Array. |