science এই পণ্য বা বৈশিষ্ট্যটি পরীক্ষামূলক (প্রি-GA)। প্রাক-GA পণ্য এবং বৈশিষ্ট্যগুলির সীমিত সমর্থন থাকতে পারে এবং প্রাক-GA পণ্য এবং বৈশিষ্ট্যগুলির পরিবর্তনগুলি অন্যান্য প্রাক-GA সংস্করণগুলির সাথে সামঞ্জস্যপূর্ণ নাও হতে পারে। প্রাক-GA অফারগুলি Google মানচিত্র প্ল্যাটফর্ম পরিষেবার নির্দিষ্ট শর্তাবলী দ্বারা আচ্ছাদিত। আরও তথ্যের জন্য, লঞ্চ পর্যায়ের বিবরণ দেখুন। স্থানের অন্তর্দৃষ্টি পরীক্ষা করতে সাইন আপ করুন !
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
PLACES_COUNT_PER_TYPE ফাংশন ফাংশনে নির্দিষ্ট করা প্রতিটি স্থানের প্রকারের জন্য গণনার একটি সারণী প্রদান করে। উদাহরণস্বরূপ, আপনি যদি doctor , hospital এবং pharmacy প্রকারগুলি অনুসন্ধান করেন তবে প্রতিক্রিয়াটিতে প্রতিটি ধরণের জন্য একটি পৃথক সারি সহ একটি টেবিল রয়েছে৷
কারণ PLACES_COUNT_PER_TYPE ফাংশন একটি টেবিল প্রদান করে, এটি একটি FROM ক্লজ ব্যবহার করে কল করুন৷
ইনপুট পরামিতি:
প্রয়োজনীয় : geographyফিল্টার প্যারামিটার যা অনুসন্ধান এলাকা নির্দিষ্ট করে। geography প্যারামিটার BigQuery GEOGRAPHY ডেটা টাইপ দ্বারা সংজ্ঞায়িত একটি মান নেয়, যা পয়েন্ট, লাইনস্ট্রিং এবং বহুভুজ সমর্থন করে।
বিভিন্ন ধরনের অনুসন্ধান ভৌগলিক ব্যবহার করার উদাহরণের জন্য, যেমন ভিউপোর্ট এবং লাইন, দেখুন PLACES_COUNT ফাংশন ।
প্রয়োজনীয় : typesফিল্টার প্যারামিটার যা অনুসন্ধান করার জন্য স্থানের প্রকারগুলি নির্দিষ্ট করে৷
ঐচ্ছিক : আপনার অনুসন্ধান পরিমার্জিত করার জন্য অতিরিক্ত ফিল্টার পরামিতি।
রিটার্ন:
একটি সারি প্রতি types মান সহ একটি টেবিল। সারণীতে কলামের type ( STRING ), count ( INT64 ), এবং sample_place_ids ( ARRAY<STRING> ) রয়েছে যেখানে sample_place_ids প্রতিটি type জন্য 250টি পর্যন্ত স্থান আইডি রয়েছে।
উদাহরণ: রেস্তোরাঁ, ক্যাফে এবং বারগুলির রিটার্ন কাউন্ট
এই উদাহরণে, আপনি নিউ ইয়র্ক সিটিতে বহুভুজ হিসাবে সংজ্ঞায়িত নির্দিষ্ট অনুসন্ধান এলাকায় সমস্ত অপারেশনাল রেস্তোরাঁ, ক্যাফে এবং বারগুলির জন্য অনুসন্ধান করেন৷
types পরামিতি STRING মানের একটি অ্যারে নেয় যা অনুসন্ধান করার জন্য স্থানের প্রকারগুলি নির্দিষ্ট করে৷ সম্ভাব্য মানগুলির সম্পূর্ণ তালিকার জন্য, স্থানের ধরনগুলিতে সারণি A এবং টেবিল B দেখুন।
এই উদাহরণটি একটি বহুভুজ থেকে একটি GEOGRAPHY মান ফেরাতে BigQuery ST_GEOGFROMTEXT ফাংশন ব্যবহার করে।
[null,null,["2025-07-17 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["The `PLACES_COUNT_PER_TYPE` function returns a table of counts for each place\n**type** specified to the function. For example, if you search for the types\n`doctor`, `hospital`, and `pharmacy` the response contains a table with a\nseparate row for each type.\n| **Note:** If you specify these same three types to the `PLACES_COUNT` function, `PLACES_COUNT` returns a single value containing the combined count for all three types.\n\nBecause the `PLACES_COUNT_PER_TYPE` function returns a table, call it using a\n`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 takes a value\n defined by 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 [`PLACES_COUNT`\n function](/maps/documentation/placesinsights/experimental/places-count).\n - **Required** : The `types` [filter parameter](/maps/documentation/placesinsights/experimental/filter-params) that\n specifies the place types to search for.\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 `types` value. The table contains the columns `type` (`STRING`) and `count` (`INT64`).\n\nExample: Return count of restaurant, cafes, and bars\n\nIn this example, you search for all operational restaurant, cafe, and bars in\nthe specified search area defined as a polygon in New York City.\n\nThe `types` parameter takes an array of `STRING` values specifying the place\ntypes to search for. For the complete list of possible values, see Table A and\nTable B at [Places types](/maps/documentation/places/web-service/place-types).\n\nThis example also uses the BigQuery\n[`ST_GEOGFROMTEXT`](https://cloud.google.com/bigquery/docs/reference/standard-sql/geography_functions#st_geogfromtext)\nfunction to return a `GEOGRAPHY` value from a polygon. \n\n```googlesql\nDECLARE geo GEOGRAPHY;\nSET geo = ST_GEOGFROMTEXT('''POLYGON((-73.985708 40.75773,-73.993324 40.750298,\n -73.9857 40.7484,-73.9785 40.7575,\n -73.985708 40.75773))'''); -- NYC viewport\n\nSELECT * FROM `maps-platform-analytics-hub.sample_places_insights_us.PLACES_COUNT_PER_TYPE`(\n JSON_OBJECT(\n 'types', [\"restaurant\", \"cafe\", \"bar\"],\n 'geography', geo,\n 'business_status', ['OPERATIONAL']\n )\n);\n```\n\nThis function returns a table with three rows, one per type:"]]