geocode_city
Find latitude and longitude for a city name, returning multiple candidates to handle ambiguous city names. Essential before using get_forecast.
Instructions
Find the latitude and longitude of a city by name.
Returns candidate matches, since city names are ambiguous -- there are Portlands in both Oregon and Maine. Use this before get_forecast, which only accepts coordinates.
Args: name: City name to search for, e.g. "Denver" or "Paris". limit: Maximum number of candidate matches to return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |