science Dieses Produkt oder diese Funktion ist eine Vorabversion (pre-GA). Pre-GA-Produkte und ‑Funktionen werden eventuell nur eingeschränkt unterstützt. Außerdem sind Änderungen an diesen Produkten und Funktionen möglicherweise nicht mit anderen pre-GA-Versionen kompatibel. Pre-GA-Angebote sind durch die dienstspezifischen Nutzungsbedingungen für die Google Maps Platform abgedeckt. Weitere Informationen finden Sie unter den Beschreibungen der Startphase. Melden Sie sich an, um Places Insights zu testen.
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Places Insights bietet Markeninformationen für viele Kategorien von Orten. Beispiel:
Für die Kategorie „Geldautomaten, Banken und Kreditgenossenschaften“ enthalten die Markendaten einen Eintrag für jede der Marken PNC, UBS und Chase.
Für die Kategorie „Autovermietungen“ enthält der Datensatz einen Eintrag für jede der Marken Budget, Hertz und Thrifty.
Ein typischer Anwendungsfall für das Abfragen des Markendatasets ist das Verknüpfen mit einer Abfrage der Ortsdaten, um Fragen wie die folgenden zu beantworten:
Wie viele Geschäfte gibt es in einem bestimmten Gebiet für jede Marke?
Wie viele Nutzer haben die drei wichtigsten Marken meiner Mitbewerber in der Region?
Wie viele Marken einer bestimmten Kategorie, z. B. „Fitness“ oder „Tankstelle“, gibt es in der Gegend?
Dataset „Marken“
Das Dataset für Marken in den USA heißt places_insights___us___sample.brands.
Schema für das Dataset „Marken“
Das Schema für das Dataset „Marken“ definiert drei Felder:
id: Die Marken-ID.
name: Der Markenname, z. B. „Hertz“ oder „Chase“.
category: Der Markentyp, z. B. „Tankstelle“, „Essen und Trinken“ oder „Unterkunft“. Eine Liste der möglichen Werte finden Sie unter Kategorie-Werte.
Marken-Dataset in einer Abfrage verwenden
Das Schema des Ortsdatensatzes definiert das Feld brand_ids. Wenn ein Ort im Places-Dataset mit einer Marke verknüpft ist, enthält das Feld brand_ids für den Ort die entsprechende Marken-ID.
Bei einer typischen Abfrage, die auf das Dataset „Marken“ verweist, wird ein JOIN mit dem Dataset „Orte“ basierend auf dem Feld brand_ids ausgeführt.
Wenn Sie beispielsweise die Anzahl der McDonald's-Restaurants im Umkreis von 2.000 Metern um das Empire State Building in New York City ermitteln möchten, gehen Sie so vor:
Die nächste Abfrage gibt die Anzahl der Cafés in New York City zurück, die zu einer Marke gehören, gruppiert nach Markennamen:
SELECTWITHAGGREGATION_THRESHOLDbrands.name,COUNT(*)ASstore_countFROMPROJECT_NAME.places_insights___us___sample.places_sampleplaces,UNNEST(brand_ids)ASbrand_idLEFTJOINPROJECT_NAME.places_insights___us___sample.brandsONbrand_id=brands.idWHEREbrands.category="Food and Drink"AND"cafe"INUNNEST(places.types)ANDbusiness_status="OPERATIONAL"GROUPBYbrands.nameORDERBYstore_countDESC;
Die folgende Abbildung zeigt die Anzahl nach Marke:
Kategoriewerte
Das Feld category für eine Marke kann die folgenden Werte enthalten:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-06 (UTC)."],[],[],null,["| **Note:** For the Preview release, the brands dataset is only available for New York City in the United States.\n\nPlaces Insights provides brand information for many categories of places. For\nexample:\n\n- For the category of \"ATMs, Banks, and Credit Unions\", the brands data contains an entry for each of the brands PNC, UBS, and Chase banks.\n- For the category \"Automotive Rentals\", the data contains an entry for each of the brands Budget, Hertz, and Thrifty.\n\nA typical use case for querying the brands dataset is to join it with a query on\nthe place data to answer questions such as:\n\n- What is the count of all stores by brand in an area?\n- What is the count of my top three competitor brands in the area?\n- What is the count of brands of a specific category, such as \"Fitness\" or \"Gas Station\", in the area?\n\nAbout the brands dataset\n\nThe brands dataset for the US is named `places_insights___us___sample.brands`.\n\nBrands dataset schema\n\nThe schema for the brands dataset defines three fields:\n\n- `id`: The brand ID.\n- `name`: The brand name, such as \"Hertz\" or \"Chase\".\n- `category`: The brand type, such as \"Gas Station\", \"Food and Drink\", or \"Lodging\". For a list of possible values, see [Category\n values](#category-values)\n\nUse brands dataset in a query\n\nThe **places dataset** schema defines the `brand_ids` field. If a place in the\nplaces dataset is associated with a brand, then the `brand_ids` field for the\nplace contains the corresponding brand ID.\n\nA typical query that references the **brands dataset** performs a `JOIN` with\nthe **places dataset** based on the `brand_ids` field.\n\nFor example, to find the count of the number of McDonald's restaurants within\n2000 meters of the Empire State Building in New York City: \n\n```googlesql\nSELECT WITH AGGREGATION_THRESHOLD\n COUNT(*)\nFROM places_insights___us___sample.places_sample places, UNNEST(brand_ids) AS brand_id\nLEFT JOIN places_insights___us___sample.brands ON brand_id = brands.id\nWHERE\nST_DWITHIN(ST_GEOGPOINT(-73.9857, 40.7484), point, 2000)\nAND brands.name = \"McDonald's\"\nAND business_status = \"OPERATIONAL\"\n```\n\nThe next query returns the count of the number of cafes in New York City that\nbelong to a brand, grouped by brand name: \n\n```googlesql\nSELECT WITH AGGREGATION_THRESHOLD\n brands.name,\n COUNT(*) AS store_count\nFROM places_insights___us___sample.places_sample places, UNNEST(brand_ids) AS brand_id\nLEFT JOIN places_insights___us___sample.brands ON brand_id = brands.id\nWHERE brands.category = \"Food and Drink\"\nAND \"cafe\" IN UNNEST(places.types)\nAND business_status = \"OPERATIONAL\"\nGROUP BY brands.name\nORDER BY store_count DESC;\n```\n\nThe following image shows the counts by brand:\n\nCategory values\n\nThe `category` field for a brand can contain the following values:\n\n| Category type value |\n|--------------------------------------|\n| `ATMs, Banks and Credit Unions` |\n| `Automotive and Parts Dealers` |\n| `Automotive Rentals` |\n| `Automotive Services` |\n| `Dental` |\n| `Electric Vehicle Charging Stations` |\n| `Electronics Retailers` |\n| `Fitness` |\n| `Food and Drink` |\n| `Gas Station` |\n| `Grocery and Liquor` |\n| `Health and Personal Care Retailers` |\n| `Hospital` |\n| `Lodging` |\n| `Merchandise Retail` |\n| `Movie Theater` |\n| `Parking` |\n| `Telecommunications` |"]]