find_nearest_airports
Identify the closest airports to a town, resort, or coordinates. Returns city codes for flight fare searches.
Instructions
Find the airports closest to a place name or to a latitude and longitude.
Use when the user asks which airport to fly into for a town, a resort, or
a point on the map. lookup_airports only matches a name, and the nearest
airport is rarely named after the town, so call this tool for that
question. Feed the returned city code, not the airport code, to
search_flights for fares.
Pass either near (resolved against the city and airport datasets) or an
explicit latitude/longitude pair.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| near | No | Place name or IATA code to search around (e.g. "Pattaya", "UTP"). | |
| limit | No | Max airports to return (1-50, default 5). | |
| locale | No | 2-letter locale for names. Defaults to the server's locale. | |
| latitude | No | Latitude in degrees, -90 to 90. Overrides `near`. | |
| longitude | No | Longitude in degrees, -180 to 180. Overrides `near`. | |
| flightable_only | No | Skip airports with no scheduled service (default True). | |
| max_distance_km | No | Ignore airports further away than this. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||