City and airport codes
al_citiesLook up Iranian or international city codes and supported transport options before searching trains, buses, or flights. Returns codes, station/airport availability, and service coverage for each city.
Instructions
Look up the city codes the other tools take (THR for Tehran, MHD for Mashhad) and what is sold for each city.
Use first when the user names a city: pass the returned code to al_trains, al_buses or al_flights.
train is true for cities with a station, flight for cities with a domestic airport. Buses use the same
codes (a tiny train stop may have no buses). With international=true it searches the whole world (Dubai,
Istanbul, Paris) and returns airports; whole_city rows (code ending in ALL) cover every airport of a city.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results. | |
| query | No | Part of a city name in Persian or English, or a code. Empty lists all. | |
| international | No | Look up airports and cities worldwide for al_flights_international instead of Iranian cities. |