AI-generated Key Takeaways
-
Categoryresource describes a business's type using a stable
categoryIdand provides human-readable names (displayName). -
Each Categorycan optionally include ServiceTypeand MoreHoursTypeinformation detailing the services offered and special hours.
-
ServiceTypeobjects provide specific service details with unique IDs (
serviceTypeId) and human-readable names (displayName). -
MoreHoursTypeobjects specify additional hours beyond regular business hours using an ID (
hoursTypeId) and localized display names. -
Developers can access and utilize Category data using the
batchGetandlistmethods documented in the Methodssection.
Resource: Category
A category describing what this business is (not what it does). For a list of valid category IDs, and the mappings to their human-readable names, see categories.list .
| JSON representation | |
|---|---|
{ "displayName" : string , "categoryId" : string , "serviceTypes" : [ { object ( |
|
| Fields | |
|---|---|
displayName
|
. The human-readable name of the category. This is set when reading the location. When modifying the location, Note: This field is used in responses only. Any value specified here in a request is ignored. |
categoryId
|
. A stable ID (provided by Google) for this category. The Note: This field is used in responses only. Any value specified here in a request is ignored. |
serviceTypes[]
|
. A list of all the service types that are available for this business category. Note: This field is used in responses only. Any value specified here in a request is ignored. |
moreHoursTypes[]
|
Output only. More hours types that are available for this business category. |
ServiceType
A message describing a service type that the business offers.
| JSON representation | |
|---|---|
{ "serviceTypeId" : string , "displayName" : string } |
|
| Fields | |
|---|---|
serviceTypeId
|
Output only. A stable ID (provided by Google) for this service type. |
displayName
|
Output only. The human-readable display name for the service type. |
MoreHoursType
More hours types that a business can offers, in addition to its regular hours.
| JSON representation | |
|---|---|
{ "hoursTypeId" : string , "displayName" : string , "localizedDisplayName" : string } |
|
| Fields | |
|---|---|
hoursTypeId
|
Output only. A stable ID provided by Google for this hours type. |
displayName
|
Output only. The human-readable English display name for the hours type. |
localizedDisplayName
|
Output only. The human-readable localized display name for the hours type. |
Methods |
|
|---|---|
|
Returns a list of business categories for the provided language and GConcept ids. |
|
Returns a list of business categories. |

