Find place codes
mb_find_placeConvert city, airport, station, or hotel names into the codes and IDs needed for flight, train, bus, taxi, and hotel searches.
Instructions
Turn a city, airport, station or hotel name into the code a search takes.
flight: airports (Iranian airports, IATA code for domestic flights; Tehran domestic is THR,
not IKA; prefer these to XXXALL codes for domestic routes) and cities (any country,
XXXALL city code = all its airports, plus each airport).
train: station ids (Tehran 1, Mashhad 191). bus / taxi: 8-digit city ids (Tehran 11320000 =
all terminals; terminal ids such as 11321006 Tehran South). hotel: city slugs for
mb_search_hotels / mb_city_hotels and hotel slugs for mb_hotel / mb_hotel_rooms.
Next: mb_search_flights, mb_search_trains, mb_search_buses, mb_search_taxis or mb_search_hotels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Which search the code is for; each mode uses its own ids. | |
| limit | No | Max places per list. | |
| query | Yes | Place name in Persian or English, or a code, e.g. 'مشهد', 'tehran' or 'IST'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||