geo_polyline
Encoded polyline decode/encode — Offline Google Encoded Polyline codec (the format returned by Google Directions, OSRM, Valhalla, Mapbox, HERE flexible polyline is a different format). polyline= an encoded string to decode into [lat,lon] points plus a GeoJSON LineString, start/end, bbox and great-circle length in km/mi; precision is auto-detected (5 = Google, 6 = OSRM/Valhalla polyline6) or set with precision=. Or pass coords=lat,lon;lat,lon (or a JSON [[lat,lon]] array / GeoJSON LineString) instead to encode. Bad characters and truncated strings return 422 with the exact position. Price: $0.001 USDC (Base, via x402).
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": "geo_polyline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| polyline | Yes | otuwFriqbMwLwVgsBcaB |