science هذا المنتج أو الميزة قيد الاختبار (قبل طرحه للجميع). قد يكون الدعم المقدَّم للمنتجات والميزات في مرحلة ما قبل الإصدار العلني محدودًا، وقد لا تكون التغييرات التي يتم إجراؤها على المنتجات والميزات في مرحلة ما قبل الإصدار العلني متوافقة مع الإصدارات الأخرى من مرحلة ما قبل الإصدار العلني. تخضع "عروض مرحلة ما قبل الإطلاق" للأحكام المحدّدة لخدمة Google Maps Platform. لمزيد من المعلومات، يُرجى الاطّلاع على أوصاف مراحل الإطلاق. الاشتراك لاختبار "إحصاءات الأماكن"
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تأخذ الدالة PLACES_COUNT_PER_H3 منطقة جغرافية للبحث وتعرض جدولاً يتضمّن عدد الأماكن لكل خلية H3 في منطقة البحث.
بما أنّ الدالة PLACES_COUNT_PER_GEO تعرض جدولاً، استدعِها باستخدام عبارة FROM.
مَعلمات الإدخال:
مطلوبة: geographyمَعلمة الفلترة التي تحدّد مساحة البحث. المَعلمة geography هي قيمة محدّدة حسب نوع البيانات GEOGRAPHY في BigQuery، والذي يتيح استخدام النقاط والخطوط المتعددة الأجزاء والمضلّعات.
للاطّلاع على أمثلة حول استخدام أنواع مختلفة من المواقع الجغرافية للبحث، مثل منافذ العرض والخطوط، يمكنك الاطّلاع على دالة PLACES_COUNT.
مطلوبة: h3_resolutionمَعلمة الفلتر التي تحدّد دقة H3 المستخدَمة لتجميع عدد الأماكن في كل خلية H3. تتراوح القيم المسموح بها بين 0 و8.
اختياري: مَعلمات الفلتر الإضافية لتحسين
نتائج البحث.
المرتجعات:
جدول يتضمّن صفًا واحدًا لكل خلية H3. يحتوي الجدول على الأعمدة h3_cell_index (STRING) وgeography (GEOGRAPHY) التي تحدّد المضلّع الذي يمثّل خلية H3، وcount (INT64)، وsample_place_ids (ARRAY<STRING>) حيث يحتوي sample_place_ids على ما يصل إلى 250 معرّف مكان لكل خلية H3.
مثال: عدد متاجر البقالة والمتاجر الصغيرة التي يمكن الوصول إليها باستخدام الكراسي المتحركة لكل خلية H3
يحسب المثال أدناه عدد المتاجر الصغيرة ومتاجر البقالة التي يمكن الوصول إليها بواسطة الكراسي المتحركة والتي تعمل في كل خلية H3 في مدينة نيويورك. تستخدم خلايا H3 مستوى دقة يبلغ 8.
DECLAREgeoGEOGRAPHY;-- Get the geography for New York City.SETgeo=(SELECTgeometryFROM`bigquery-public-data.overture_maps.division_area`WHEREcountry='US'ANDnames.primary='City of New York'LIMIT1);SELECT*FROM`maps-platform-analytics-hub.sample_places_insights_us.PLACES_COUNT_PER_H3`(JSON_OBJECT('geography',geo,'types',["convenience_store","grocery_store"],'wheelchair_accessible_entrance',true,'business_status',['OPERATIONAL'],'h3_resolution',8));
الردّ على الدالة:
عرض النتائج
تعرض الصور التالية هذه البيانات في Looker Studio كخريطة مملوءة.
كلما كانت خلية H3 أغمق، زاد تركيز النتائج:
لاستيراد بياناتك إلى Looker Studio، اتّبِع الخطوات التالية:
شغِّل الدالة أعلاه لإنشاء النتائج.
في نتائج BigQuery، انقر على فتح في -> Looker Studio. يتم تلقائيًا استيراد نتائجك إلى Looker Studio.
تنشئ Looker Studio صفحة تقرير تلقائية وتضبطها باستخدام عنوان وجدول ورسم بياني شريطي للنتائج.
اختَر كل محتوى الصفحة واحذفه.
انقر على إدراج -> خريطة مملوءة لإضافة خريطة مملوءة إلى تقريرك.
ضمن أنواع الرسوم البيانية -> الإعداد، اضبط الحقول كما هو موضّح أدناه:
يظهر الخريطة المملوءة كما هو موضح أعلاه. يمكنك اختياريًا النقر على أنواع الرسوم البيانية ->
الأنماط لمزيد من إعدادات مظهر الخريطة.
لمزيد من المعلومات والأمثلة حول عرض نتائج Places Insights بشكل مرئي، يُرجى الاطّلاع على عرض نتائج طلب البحث بشكل مرئي.
تاريخ التعديل الأخير: 2025-07-17 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-17 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["The `PLACES_COUNT_PER_H3` function takes a geographic area to search\nand returns a table of places counts per [H3](https://h3geo.org/docs/) cell in\nthe search area.\n\nBecause the `PLACES_COUNT_PER_GEO` function returns a table, call it using\na `FROM` clause.\n\n- Input parameters:\n\n - **Required** : The `geography` [filter parameter](/maps/documentation/placesinsights/experimental/filter-params) that\n specifies the search area. The `geography` parameter a value defined by\n the BigQuery\n [`GEOGRAPHY`](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#geography_type)\n data type, which supports points, linestrings, and polygons.\n\n For examples of using different types of search geographies, such as\n viewports and lines, see\n [`PLACES_COUNT` function](/maps/documentation/placesinsights/experimental/places-count).\n - **Required** : The `h3_resolution` [filter parameter](/maps/documentation/placesinsights/experimental/filter-params) that\n specifies the [H3](https://h3geo.org/docs/) resolution used to aggregate\n the count of places in each H3 cell. Supported value are from 0 to 8.\n\n - **Optional** : Additional [filter](/maps/documentation/placesinsights/experimental/filter-params) parameters to refine\n your search.\n\n- Returns:\n\n - A table with one row per H3 cell. The table contains the columns `h3_cell_index` (`STRING`), `geography` (`GEOGRAPHY`) which defines the polygon representing the H3 cell, and `count` (`INT64`).\n\nExample: Count wheelchair accessible convenience and grocery stores per H3 cell\n\nThe example below computes the number of operational, wheelchair accessible\nconvenience and grocery stores per H3 cell in New York City. The H3 cells use a\n[resolution level](https://h3geo.org/docs/core-library/restable) of 8.\n\nThis example uses the [Overture Maps\nData](https://console.cloud.google.com/marketplace/product/bigquery-public-data/overture-maps)\nBigQuery [public dataset](https://cloud.google.com/bigquery/public-data) to get\nthe geography for New York City.\n| **Note:** Because the response table contains a `geography` field, you can visualize it using tools that support BigQuery `GEOGRAPHY` types. For an example of visualizing the results of a function, see [Visualize\nresults](#visualize_results). For more information and example on visualizing Places Insights results, see [Visualize query results](/maps/documentation/placesinsights/visualize-data). \n\n```googlesql\nDECLARE geo GEOGRAPHY;\n\n-- Get the geography for New York City.\nSET geo = (SELECT geometry FROM `bigquery-public-data.overture_maps.division_area`\n WHERE country = 'US' AND names.primary = 'City of New York' LIMIT 1);\n\nSELECT * FROM `maps-platform-analytics-hub.sample_places_insights_us.PLACES_COUNT_PER_H3`(\n JSON_OBJECT(\n 'geography', geo,\n 'types', [\"convenience_store\",\"grocery_store\"],\n 'wheelchair_accessible_entrance', true,\n 'business_status', ['OPERATIONAL'],\n 'h3_resolution', 8\n )\n);\n```\n\nThe response for the function:\n\nVisualize results\n\nThe following images show this data displayed in Looker Studio as a filled map.\nThe darker the H3 cell the higher the concentration of results:\n\nTo import your data into Looker Studio:\n\n1. Run the function above to generate the results.\n\n2. In the BigQuery results, click **Open in -\\\u003e Looker Studio**. Your results\n are automatically imported into Looker Studio.\n\n3. Looker Studio creates a default report page and initializes it with a title,\n table, and bar graph of the results.\n\n4. Select everything on the page and delete it.\n\n5. Click **Insert -\\\u003e Filled map** to add a filled map to your report.\n\n6. Under **Chart types -\\\u003e Setup** configure the fields as shown below::\n\n7. The filled map appears as above. You can optionally select **Chart types -\\\u003e\n Styles** to further configure the appearance of the map.\n\nFor more information and example on visualizing Places Insights results, see\n[Visualize query results](/maps/documentation/placesinsights/visualize-data)."]]