Place name to coordinates and timezone
astro_find_placeResolve a place name to coordinates, region, country, IANA timezone and a stable place_id, or reverse-look-up the nearest places to a lat/lon. Results are GeoNames data (CC BY 4.0); the response carries the required credit in its attribution field, which must be preserved when results are shown. Note the other tools accept a place argument directly, so this is only needed to disambiguate a name, filter by country, or reverse-geocode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | A place_id from an earlier result, to fetch that exact place. | |
| lat | No | Latitude in decimal degrees, north positive. Send lat and lon together. | |
| lon | No | Longitude in decimal degrees, east positive (Lisbon is about -9.14). Send lat and lon together. | |
| limit | No | Maximum matches to return. Default 5. | |
| query | No | Place name to search for, e.g. "Springfield". | |
| country | No | Two-letter ISO country code filter, e.g. "US". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Coordinates for a place name, or the nearest named places to coordinates. | |
| rights | No | Either unrestricted, or attribution_required when third-party place data was used. When attribution_required, the attribution line must be shown. | |
| warnings | No | Machine-readable notices about this answer. Present only when non-empty. Never changes whether the call succeeded. | |
| attribution | No | The credit line to display verbatim when rights is attribution_required. | |
| next_cursor | No | Present only when more rows exist. Send it back with the SAME start/end arguments as the first call to get the next page. | |
| not_computed | No | Data this API deliberately does not serve, and why. Present only when the question touched such a field. An absence named here is information: treat it as "withheld", never as "none exists". |