Find airport and city codes
find_placesUse when unsure of an airport or city code before searching. Matches a place name or code and returns the code to pass as origin or destination, whether it is one airport or all airports in a city, and the airports a city code covers. Not needed for well-known codes like JFK or LHR.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Most matches to return. | |
| query | Yes | A city or airport name, or a code to check. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | On an error: a machine-readable kind, e.g. unknown_place | |
| note | No | How to use the code, or no-match hint | |
| field | No | On unknown_place: which argument (origin, destination, ...) | |
| places | No | Items: code, name, kind, country, plus airports[] (city) or city (airport) | |
| status | No | error | sign_in_required (absent on success) | |
| message | No | Error or sign-in message from the server wrapper | |
| suggestions | No | On unknown_place: places to offer the traveler, each with code, name, kind (airport, all airports in the city, nearby airport), city, country | |
| places_assumed | No | Place names this call resolved on its own, e.g. 'Portland = Portland, OR (PDX)'; tell the traveler |