Find the nearest locations
find_nearest_locationsRank locations by distance from a point, the way the widget ranks them for a visitor. Also answers questions about the data when given tag or q without a point.
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": "find_nearest_locations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Match against name, address and description. | |
| lat | No | Latitude of the point to measure from. | |
| lng | No | Longitude of the point to measure from. | |
| tag | No | Only locations carrying this category name. | |
| limit | No | Default 25, maximum 200. | |
| units | No | Default km. | |
| radius | No | Only return locations within this distance. | |
| includeHidden | No | Include locations hidden from the public locator. |