Using Enumerations
Overview
The enumerations file contains translated enum values used across Terra and represents all translated enumeration language terms on Tripadvisor for data types such as location categories, amenities, cuisines, and more.
Accessing the Enumerations FIle
Enumerations are made available for all users as data feeds which are updated on a daily basis. Use the Guide for Downloading Feeds to understand how to securely access the enumerations file.
Enum Types
1. category
categoryDescription: Location and attraction categories
Total Values: 496
Use Case: Categorize locations, restaurants, hotels, and attractions (e.g., "Romana", "Lazio", "Submarine Tours", "Surfing, Windsurfing & Kitesurfing", "Nature & Wildlife Tours")
Sample Values:
- Romana (Italian regional cuisine)
- Lazio (Italian regional cuisine)
- Submarine Tours
- Surfing, Windsurfing & Kitesurfing
- Nature & Wildlife Tours
2. amenities
amenitiesDescription: Property amenities and facilities
Total Values: 270
Use Case: Display available amenities at hotels, restaurants, and other properties (e.g., "Telephone", "Taxi service", "Fitness Center", "Swimming pool", "Hot tub", "Golf course")
Sample Values:
- Telephone
- Taxi service
- Fitness Center with Gym / Workout Room
- Clothes rack
- Swimming pool toys
- Laundry service
- Hot tub
- Golf course
3. restaurant_dining_options
restaurant_dining_optionsDescription: Restaurant dining features and options
Total Values: 39
Use Case: Display restaurant features and dining options (e.g., "Playgrounds", "BYOB", "Beach", "Drive Thru", "Waterfront", "Accepts Credit Cards", "Dog Friendly", "Buffet")
Sample Values:
- Playgrounds
- BYOB
- Beach
- Drive Thru
- Jazz Bar
- Waterfront
- Accepts Credit Cards
- Dog Friendly
- Street Parking
- Buffet
4. rules-based
rules-basedDescription: Hotel styles and property characteristics
Total Values: 43
Use Case: Categorize hotels and properties by style or characteristic (e.g., "Business", "Glamping", "Budget", "Marina View", "Mountain View", "Romantic", "Trendy", "City View", "Hidden Gems")
Sample Values:
- Business
- Glamping
- Budget
- Marina View
- Mountain View
- Romantic
- Trendy
- City View
- Harbor View
- Hidden Gems
5. rating
ratingDescription: Overall rating scale
Total Values: 5
Use Case: Display rating labels for reviews and ratings (e.g., "Terrible", "Poor", "Average", "Very Good", "Excellent")
Sample Values:
- Terrible
- Poor
- Average
- Very Good
- Excellent
6. sub_ratings
sub_ratingsDescription: Detailed rating categories
Total Values: 8
Use Case: Display sub-rating categories for detailed reviews (e.g., "Food", "Sleep Quality", "Atmosphere", "Service", "Cleanliness", "Location", "Rooms", "Value")
Sample Values:
- Food
- Sleep Quality
- Atmosphere
- Service
- Cleanliness
- Location
- Rooms
- Value
7. restaurant_styles
restaurant_stylesDescription: Restaurant style and atmosphere categories
Total Values: 11
Use Case: Categorize restaurants by style, atmosphere, or target audience (e.g., "Hidden Gems", "Local cuisine", "Hot New Restaurants", "Families with children", "Romantic", "Business meetings", "Bar scene", "Special occasions", "Large groups", "Kids")
Sample Values:
- Hidden Gems
- Local cuisine
- Hot New Restaurants
- Families with children
- Romantic
- Business meetings
- Bar scene
- Special occasions
- Large groups
- Kids
8. dining_restrictions
dining_restrictionsDescription: Dietary restrictions and special diets
Total Values: 5
Use Case: Display dietary options and restrictions (e.g., "Kosher", "Gluten free options", "Vegan options", "Halal", "Vegetarian friendly")
Sample Values:
- Kosher
- Gluten free options
- Vegan options
- Halal
- Vegetarian friendly
9. priority_1_attributes
priority_1_attributesDescription: "Good for" attributes for attractions and activities
Total Values: 9
Use Case: Display suitability attributes for attractions and activities (e.g., "Good for Kids", "Good for Big Groups", "Buy a Ticket in Advance", "Budget-friendly", "Good for a Rainy Day", "Hidden Gems", "Top Picnic Spots", "Good for Couples", "Good for Adrenaline Seekers")
Sample Values:
- Good for Kids
- Good for Big Groups
- Buy a Ticket in Advance
- Budget-friendly
- Good for a Rainy Day
- Hidden Gems
- Top Picnic Spots
- Good for Couples
- Good for Adrenaline Seekers
10. award_names
award_namesDescription: Award names and titles
Total Values: 2
Use Case: Display award names (e.g., "Travelers' Choice Awards Best of the Best 0", "Travelers' Choice Awards 0")
Sample Values:
- Travelers' Choice Awards Best of the Best 0
- Travelers' Choice Awards 0
Note: These values include placeholders (0) for dynamic content insertion.
11. restaurant_meal_types
restaurant_meal_typesDescription: Meal service times
Total Values: 6
Use Case: Display meal service availability (e.g., "Brunch", "Late Night", "Drinks", "Lunch", "Breakfast", "Dinner")
Sample Values:
- Brunch
- Late Night
- Drinks
- Lunch
- Breakfast
- Dinner
12. attribute_type
attribute_typeDescription: Attribute category labels
Total Values: 7
Use Case: Display section headers for different attribute types (e.g., "Amenities", "Meals", "Good for", "Hotel Style", "Special Diets", "FEATURES")
Sample Values:
- Amenities
- Meals
- Good for
- Hotel Style
- Special Diets
- FEATURES
- Good for (restaurant context)
13. other
otherDescription: Miscellaneous template strings
Total Values: 1
Use Case: Template strings for dynamic content (e.g., "#0 of 1 2 in 3")
Sample Values:
- 0 of 1 2 in 3 (for restaurant categories display)
Note: This value includes placeholders for dynamic content insertion.
Language Support
All enum values are translated into 50+ languages, including:
-
European Languages: English (en, en_US, en_UK, en_AU, en_CA, en_IE, en_IN, en_MY, en_NZ, en_PH, en_SG, en_ZA), Spanish (es, es_AR, es_CL, es_CO, es_MX, es_PE, es_VE), French (fr, fr_CA), German (de, de_AT, de_CH), Italian (it, it_CH), Portuguese (pt, pt_PT), Dutch (nl), Russian (ru), Polish (pl), Czech (cs), Hungarian (hu), Greek (el), Turkish (tr), Swedish (sv), Norwegian (no), Danish (da), Finnish (fi), and more
-
Asian Languages: Chinese (zh, zh_TW, zh_HK), Japanese (ja), Korean (ko), Thai (th), Vietnamese (vi), Indonesian (in)
-
Middle Eastern Languages: Arabic (ar, ar_EG), Hebrew (iw)
-
Other Languages: Ukrainian (uk), Serbian (sr), Slovak (sk)
Usage Recommendations
- Cache the enum file locally - Update daily or weekly since enum values don't change frequently
- Handle missing translations - Always provide a fallback to the enum ID if a translation is missing for a specific language
- Use appropriate enum types - Match the enum type to your use case (e.g., use
amenitiesfor hotel facilities,restaurant_dining_optionsfor restaurant features) - Support parameterized values - Some enum values (like
award_namesandother) include placeholders that require dynamic content insertion
Updated about 2 months ago