nearest_road_of_class
Find the nearest road segment of a specified class to any location. Uses coordinates and road type to return the closest matching road, with radius and geometry options.
Instructions
Find the single closest road segment of a given class to a point
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": {
"lat": "<lat>",
"lng": "<lng>",
"road_class": "<road_class>"
},
"name": "nearest_road_of_class"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | ||
| lng | Yes | ||
| road_class | Yes | ||
| max_radius_m | No | ||
| include_geometry | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |