Search dishes
tf_search_dishesSearch dishes by name near a delivery point, filter discounted items, and sort by price or rating to find meals. Returns dish prices, discounts, and restaurant names.
Instructions
Search dishes by name near a delivery point, with price, discount and restaurant.
Use for "find X near me" or "cheapest / discounted X". Prices are the search index's and can lag the menu: confirm with tf_menu before recommending. Then call tf_vendor_info for fee and minimum order. Tapsi's search lists only restaurants open now: at night total can be 0 (the site shows the same); tf_restaurants / tf_discounted_vendors also list closed vendors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Delivery point latitude, e.g. 35.7577. | |
| long | Yes | Delivery point longitude, e.g. 51.4095. | |
| page | No | Page number, from 1. | |
| sort | No | Order of the results; cheapest / biggest_discount / top_rated sort the first 100 matches (top_rated = dish rating, then restaurant rating; unrated last). nearest is Tapsi's own order. | relevance |
| limit | No | Max dishes (40 keeps the reply under 15 KB). | |
| query | Yes | Dish or restaurant word, e.g. 'پیتزا'. | |
| discounted_only | No | Only dishes with a discount. |