You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何获取Google Place API business type与Google MyBusiness Profile business category映射关系?

Mapping Google Places API Categories to Business Types

If you’re trying to connect granular categories like "Event Venue" or "Pub" to official business types (such as restaurant), here are practical ways to build that mapping:

  • Fetch Place Details for Sample Locations
    Use the place/details endpoint to pull data for places matching the categories you care about. The response includes two critical arrays:

    • types: The official business types recognized by the API (e.g., restaurant, bar)
    • categories: Specific, often localized category labels (e.g., "Pub", "Event Venue")
      By collecting these pairs from multiple sample places, you can spot consistent mappings. For example, a "Pub" might commonly have types values like bar and restaurant.
  • Reverse-Engineer via Text/Autocomplete Searches
    Run text searches using terms like "Pub" or "Event Venue" with the textsearch endpoint, then retrieve details for each result. This lets you bulk-collect category-type pairs to build your own reference table.

  • Adjust Your Filter Logic
    Since the API’s type parameter only accepts official business types, expand your filter to include relevant categories using the keyword parameter. For example, to include Pubs in your restaurant-focused results, combine type=restaurant with keyword=pub.

  • Account for Localized Categories
    Use the language parameter in requests to get region-specific category labels, as some categories may vary by location.

Note: Google does not publish a public, comprehensive mapping between all categories and business types, so building your own dataset via sampling is the most reliable approach.

内容的提问来源于stack exchange,提问作者Werner Huijboom

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.21 19:42:07