Get Nearby
get_nearbyFind places near a given latitude/longitude. Returns nearby cities, landmarks, and features sorted by distance. Example: get_nearby(48.8566, 2.3522) for places near Paris.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lat": 48.8566,
"lng": 2.3522
},
"name": "get_nearby"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Latitude (e.g., 48.8566) | |
| lng | Yes | Longitude (e.g., 2.3522) | |
| radius | No | Search radius in km (default: 10, max: 300) | |
| _apiKey | Yes | GeoNames username |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of nearby places found | |
| nearby | Yes | ||
| latitude | Yes | Query latitude coordinate | |
| longitude | Yes | Query longitude coordinate | |
| radius_km | Yes | Search radius in kilometers |