Find place codes
mb_find_placeConvert a city, airport, station or hotel name into the correct code or ID required by 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, IATA code; Tehran domestic is THR, not IKA; prefer these to
XXXALL for domestic routes) and cities (any country; XXXALL = all its airports).
train: station ids (Tehran 1, Mashhad 191). bus / taxi: 8-digit city ids (Tehran 11320000 =
all terminals; 11321006 = Tehran South). hotel: city slugs (mb_search_hotels,
mb_city_hotels) and hotel slugs (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'. |