Geonames Get Timezone
geonames_get_timezoneGet timezone information for a latitude/longitude location. Returns timezone ID, GMT offset, DST offset, current local time, sunrise, and sunset. Example: get_timezone(40.7128, -74.0060) for New York.
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": 40.7128,
"lng": -74.006
},
"name": "geonames_get_timezone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Latitude (e.g., 40.7128) | |
| lng | Yes | Longitude (e.g., -74.0060) | |
| _apiKey | Yes | GeoNames username |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sunset | Yes | Sunset time | |
| sunrise | Yes | Sunrise time | |
| latitude | Yes | Latitude coordinate | |
| longitude | Yes | Longitude coordinate | |
| dst_offset | Yes | Daylight saving time offset | |
| gmt_offset | Yes | Current GMT offset in hours | |
| raw_offset | Yes | Raw offset from GMT | |
| timezone_id | Yes | IANA timezone identifier | |
| country_code | Yes | ISO country code | |
| country_name | Yes | Full country name | |
| current_time | Yes | Current local time at location |