get_city_stats
City statistics
Aggregate Thai-venue figures for one UK city/area, or up to five side by side. Use for totals and density, not for named venues. Returns venue count split by type, venues per 100k residents, and hygiene figures - a mean FHRS rating with the number rated, or FHIS pass/improvement counts for Scotland. Scottish venues have no numeric score and are never averaged. Counts cover venues identified in FSA data, so they are a floor.
输入参数citycities
search_restaurants
Search venues by city
Lists named Thai venues in a city or area. Use when the user wants specific places rather than totals. Filters: business type, minimum FHRS rating (0-5, integers only). Returns name, address, postcode, rating, last inspection date and the total number of matches. Omitting city searches the whole UK by rating. No phone, opening hours, menu, booking or ordering data is held.
输入参数citytypelimitmin_rating
find_nearby
Find venues near a postcode
Thai venues within a straight-line radius of a UK postcode. Use when the user gives a postcode or a place rather than a city name. Returns venues with great-circle distance in miles, rating and address; road distance will always be longer than the figure returned. No delivery, booking or opening-hours data.
输入参数typelimitradiuspostcode必填min_rating
UK-wide totals for Thai venues in FSA data: venue count with the dine-in, takeaway and pub-kitchen split, number of city/area rows, mean FHRS rating with the number rated, and the date of the snapshot. Single dated snapshot - there is no trend, growth or market-size figure.
无需输入参数。
rank_cities
City league table
Order city/area rows by Thai venue count, mean FHRS rating or venues per 100k residents. Use for 'which city has the most or the best'. Rating ranking excludes Scottish areas, which report Pass/Improvement Required instead of a score, and rows with small samples can top it - each row returns n so the sample can be judged. Names are dataset area names, which are sometimes councils rather than towns.
输入参数limitmetric必填
get_hygiene_profile
Hygiene profile
Food hygiene profile for Thai venues in a city, a local authority or a postcode district: the distribution of FHRS ratings 0-5 with mean and counts, or FHIS pass/improvement counts in Scotland, plus how old the inspections are. Use for 'how hygienic are Thai places in X' or 'are these ratings out of date'. Returns counts and dates only - no composite score, and hygiene is not food quality.
输入参数cityoutcodelocal_authority
get_opening_requirements
Opening requirements
Statutory steps for opening a food business in the UK, with the responsible local authority for a given city and official GOV.UK links. Use for 'what do I need to open a Thai restaurant in X'. This server holds no cost, rent, fit-out or equipment figures, so none are returned - the answer is requirements and links, not a budget.
输入参数city
get_venue
Single venue record
Full record for one venue by its FSA establishment id, with context: days since the last inspection, whether the inspection date is known, the rating scheme, and where the venue's rating sits within its city (percentile among rated peers). Use when the user asks about a specific named venue. The returned fsa_url opens the official FSA record.
输入参数id必填