What this attribute represents
The enrichment classifies a place into three main components that work together to provide a comprehensive categorization.Place Type Classification
Theplacetype field categorizes the business into one of four primary types: accommodation, restaurant, attraction, or CANT_VERIFY. This high-level classification determines the fundamental nature of the business and drives the overall user experience.
Subtype Taxonomy
Thesubtype provides more granular classification within each place type. It consists of a human-readable category name paired with a numeric subtype_id that follows Tripadvisor-style taxonomy standards. This allows for both display-friendly labels and stable programmatic identification.
Decision Reasoning
Thereasoning field offers a concise, transparent justification of the classification decision. This is not a confidence score but rather an explanation of the key evidence that led to the final determination.
Fallback Behavior
When sufficient evidence is unavailable or inconsistent, the enrichment returnsCANT_VERIFY with subtype_id 0 and subtype “CANT_VERIFY”. This ensures a clear signal when the system cannot make a confident determination.
Provide the most complete and accurate name and full address. Adding a first-party website significantly improves accuracy, especially for accommodations. The agent matches against multiple OTA sources to verify details.
Output schema
Short narrative explaining the classification and key evidence used for the decision.Useful for transparency and QA, not intended as machine-parsable logic.
Primary classification of the business type.Values:
accommodation- Lodging establishmentsrestaurant- Food service establishmentsattraction- Tourist attractions and activitiesCANT_VERIFY- Unable to determine classification (uppercase indicates definitive “no decision”)
Granular classification within the place type using Tripadvisor-style taxonomy.
How the enrichment decides
Step 1 — Determine placetype
The AI agent performs a comprehensive web search using the provided place name and full address to establish the primary business classification. The agent evaluates search results to determine whether the establishment operates as an accommodation, restaurant, or attraction. When reliable evidence cannot be found or when search results present conflicting information, the agent returnsCANT_VERIFY as the placetype.
Step 2 — Determine subtype
Restaurant and Attraction Classification For restaurants and attractions, the agent uses search result context to classify establishments into Tripadvisor-style categories, assigning both a subtype name and numeric subtype_id without additional site browsing. Accommodation Classification Accommodation classification follows a three-step deterministic process: Step 1: Count bookable units — Single bookable units receive subtype_id 33 (“vacation rental”) immediately. Step 2: Determine family — Multi-unit properties are classified into families:- Hotel family requires: 24-hour front desk (explicitly stated), private bathrooms, and included housekeeping.
- B&B/Inn family requires: included housekeeping (breakfast optional). Does not require 24-hour front desk.
- Specialty Lodging applies when hotel/B&B evidence is insufficient or shared rooms exist.
CANT_VERIFY.
Source handling and evidence
Web search is always used to determine preliminary context.- For accommodations:
- The agent visits up to 2-3 online travel agency (OTA) sources that have strong name/address matches (e.g., Trip.com, Agoda, Traveloka, Booking.com).
- If a provided first-party website is present, the agent attempts to visit it.
- If no OTA sources can be loaded or yield sufficient content, the result becomes CANT_VERIFY.
- The agent is explicitly instructed to ignore “tripadvisor.com” as a source.
Edge cases and special scenarios
- Evidence specificity for hotels:
- 24-hour room service does NOT count as proof of 24-hour front desk.
- “Daily housekeeping” listed in room amenities without extra fees counts as included housekeeping.
- Each criterion must be explicitly stated or clearly demonstrated.
- Ambiguous or sparse online presence:
- If search results are inconclusive or conflict, the enrichment returns CANT_VERIFY rather than guessing.
- Duplicate names across locations:
- The address is critical. If the evidence mismatches the provided location, the result may be CANT_VERIFY.
- Mapping misalignment:
- Any name/ID inconsistency for the chosen placetype results in CANT_VERIFY.
- Reasoning vs. machine signals:
- The reasoning string helps humans understand the decision; it should not be treated as a contract or parsed for logic.
