polyline_length
Calculate total length of a polyline.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"polyline": "<polyline>"
},
"name": "polyline_length"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Unit: km or mi | km |
| polyline | Yes | Polyline points as lat1,lon1;lat2,lon2;lat3,lon3... |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| points | Yes | ||
| segments | Yes | ||
| total_length | Yes |