NlpSemanticParsingLocalBusinessType

GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingLocalBusinessType


Table of Contents ▼

Jump to a specific part of the page:

Description

A high-level categorization of business types. Used for location elements that are either BUSINESS_NAME or BUSINESS_CATEGORY. The business types roughly correspond to QRef collections and should be interpreted broadly. E.g., hotel also include motels, youth hostels, and guest houses; restaurants includes bars and cafes, etc. Business types can be populated by QRef collections; other population is done by grammar categories from local_categories.grammar. It is expected that some business organizations will match more than one business type. E.g., Safeway is both a grocery store and a pharmacy. Next ID: 43 NOTE(oksana): LocalCategoryReliable grammar over-rides a few business type queries to include hyper_reliable location element. If you change this, please make sure that LocalCategoryReliable grammar reflects this too. LINT.IfChange

Attributes List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. bank (type: boolean(), default: nil)
    -
  2. hardwareStore (type: boolean(), default: nil)
    -
  3. hotel (type: boolean(), default: nil)
    - Also youth hostels, guest houses, etc.
  4. busStop (type: boolean(), default: nil)
    -
  5. telecom (type: boolean(), default: nil)
    -
  6. vehicleType (type: list(String.t), default: nil)
    - All of the vehicle types serviced by this business or business category. e.g. VEHICLE_TYPE_RAIL and VEHICLE_TYPE__BUS for "transit stop". This allows downstream to serve different result types for transit station categories in different languages. e.g. In en-US "train station" seeks both railway station and subway station results. But the equivalent word in French/Italian/German seeks only railway stations.
  7. venue (type: boolean(), default: nil)
    - Stadiums, theaters, cinemas, etc.
  8. hospital (type: boolean(), default: nil)
    -
  9. hairdresser (type: boolean(), default: nil)
    -
  10. transitOperator (type: boolean(), default: nil)
    - Operator of a transit line, e.g., "MTA", "BART", "CTA", etc.
  11. transitLine (type: boolean(), default: nil)
    - A particular line in a transit system, e.g., "3 train", "Red Line", "Cirle Line", etc.
  12. university (type: boolean(), default: nil)
    - Also colleges
  13. subwayStation (type: boolean(), default: nil)
    -
  14. trainStation (type: boolean(), default: nil)
    -
  15. cuisineGcid (type: list(String.t), default: nil)
    - If the element implies a cuisine type then we include the gcid string when available. Currently this happens for BUSINESS_CATEGORY type. The field is repeated to model categories like "mandarin buffet restaurant" with multiple cuisine gcid's: mandarin_restaurant and buffet_restaurant.
  16. soupKitchen (type: boolean(), default: nil)
    -
  17. shoppingCenter (type: boolean(), default: nil)
    -
  18. toyStore (type: boolean(), default: nil)
    -
  19. parking (type: boolean(), default: nil)
    -
  20. drugDropOff (type: boolean(), default: nil)
    -
  21. sportStore (type: boolean(), default: nil)
    -
  22. petStore (type: boolean(), default: nil)
    -
  23. emergency (type: String.t, default: nil)
    - This field is used to determine the emergency type of the element, which is specified by the grammar parse in (http://cs/file:googledata/localsearch/quality/grammar/local_patterns.asciipb). e.g. "coronavirus_treatment_locations" TODO(b/151330576) Deprecate the emergency field and replace with normal triggering.
  24. restaurant (type: boolean(), default: nil)
    - Also bars and cafes
  25. transitStation (type: boolean(), default: nil)
    - The different types of transit station business types will be used to figure out which vehicle types to use when querying Tripfinder's SearchStations service. The stations in that backend seem to be divided into HEAVY_RAIL, SUBWAY, and TRAM. There isn't a very reliable division between intercity rail and commuter rail -- Amtrak, LIRR, PATH, and NJ Transit are all classified as HEAVY_RAIL. That's why in these types we make a distinction between train and subway, and not train and muni_rail, (unlike TransitMode in the TravelAction proto).
  26. electricVehicleChargingStation (type: boolean(), default: nil)
    -
  27. groceryStore (type: boolean(), default: nil)
    -
  28. departmentStore (type: boolean(), default: nil)
    -
  29. gasStation (type: boolean(), default: nil)
    -
  30. electronicStore (type: boolean(), default: nil)
    -
  31. airport (type: boolean(), default: nil)
    -
  32. airline (type: boolean(), default: nil)
    -
  33. clothingStore (type: boolean(), default: nil)
    -
  34. qrefTransitStation (type: boolean(), default: nil)
    - This is used for transit stations annotated by QRef. The transit_station business_type above is only used for business categories, and therefore is used downstream to find nearby stations rather than a particular station, and so cannot be present in a Location that is a specific station from QRef. For these cases, this business_type is used instead. e.g. "grand central" "millbrae station" "union station" will have business_type qref_transit_station
  35. foodPantry (type: boolean(), default: nil)
    -
  36. school (type: boolean(), default: nil)
    - Pre-k to high school
  37. pharmacy (type: boolean(), default: nil)
    -
  38. retail (type: boolean(), default: nil)
    -
  39. bikeSharingStation (type: boolean(), default: nil)
    -

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingLocalBusinessType{
airline: boolean() | nil,
airport: boolean() | nil,
bank: boolean() | nil,
bikeSharingStation: boolean() | nil,
busStop: boolean() | nil,
clothingStore: boolean() | nil,
cuisineGcid: [String.t()] | nil,
departmentStore: boolean() | nil,
drugDropOff: boolean() | nil,
electricVehicleChargingStation: boolean() | nil,
electronicStore: boolean() | nil,
emergency: String.t() | nil,
foodPantry: boolean() | nil,
gasStation: boolean() | nil,
groceryStore: boolean() | nil,
hairdresser: boolean() | nil,
hardwareStore: boolean() | nil,
hospital: boolean() | nil,
hotel: boolean() | nil,
parking: boolean() | nil,
petStore: boolean() | nil,
pharmacy: boolean() | nil,
qrefTransitStation: boolean() | nil,
restaurant: boolean() | nil,
retail: boolean() | nil,
school: boolean() | nil,
shoppingCenter: boolean() | nil,
soupKitchen: boolean() | nil,
sportStore: boolean() | nil,
subwayStation: boolean() | nil,
telecom: boolean() | nil,
toyStore: boolean() | nil,
trainStation: boolean() | nil,
transitLine: boolean() | nil,
transitOperator: boolean() | nil,
transitStation: boolean() | nil,
university: boolean() | nil,
vehicleType: [String.t()] | nil,
venue: boolean() | nil
}

Function

@spec decode(struct(), keyword()) :: struct()

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.NlpSemanticParsingLocalBusinessType