Google Flights Location Search
google_flights_location_searchSearch for airports and cities to get their identifiers for Google Flights tools. Returns:
IATA airport codes (e.g., 'JFK') for specific airports
kgmid (e.g., '/m/02_286') for cities - searches all airports in that city
Required: q (location name), e.g. {"q":"Chicago"}.
Use this tool when you have a city name like 'New York' or 'Paris' and need to convert it to codes that the flight tools accept.
Note: Common IATA codes like JFK, LAX, SFO, LHR, CDG, NRT can be used directly without this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Location search query (e.g., 'New York', 'Paris', 'Chicago'). Returns matching cities with kgmid and airports with IATA codes. | |
| search_type | No | Search context: 'departure' for origin airports, 'arrival' for destination airports. Default: departure. |