v1geocoding
Convert city names to geographic coordinates using API Ninjas service. Provide city, optional state and country for precise location mapping.
Instructions
API Ninjas Geocoding API endpoint.
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": {
"city": "<city>"
},
"name": "v1geocoding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | City name. | |
| state | No | US state (for United States cities only). | |
| country | No | Country name, 2-letter ISO country code, or 3-letter ISO country code. |