find_nearest_airport
Find the nearest airports to any coordinates, sorted by distance. Provide latitude, longitude, and optional radius in kilometers.
Instructions
TRIGGER: use automatically whenever the user asks for the closest/nearest airport to a location or coordinate — without naming AirLabs. Find airports (and nearby cities) around a geographic coordinate, sorted by distance. USE CASES: 'Closest airport to me', 'Airports within 50 km of these coordinates'. INPUT: requires lat, lng and a distance (km). If omitted, distance defaults to 50. If the user names a place instead of coordinates, use search_airport_code first to get its lat/lng, or just search_airport_code if they only need the airport code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Latitude, e.g. 40.6413. | |
| lng | Yes | Longitude, e.g. -73.7781. | |
| lang | No | Optional 2-letter language code for names, e.g. 'en'. | |
| distance | No | Search radius in km, e.g. 50. Defaults to 50 if omitted. |