সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
heatmapTiles এন্ডপয়েন্ট একটি টালি ওভারলে এর মাধ্যমে বাতাসের গুণমান সম্পর্কিত হিটম্যাপ প্রদান করে। একটি টাইল ওভারলে হল PNG ইমেজ টাইলের একটি সংগ্রহ যা Google মানচিত্রের উপরে প্রদর্শিত হতে পারে। প্রতিটি ছবির টাইল (256 x 256 পিক্সেল)।
হিটম্যাপ টাইলস সম্পর্কে
টাইল ওভারলে হল একটি গ্রিড যা টাইলসের সংগ্রহ থেকে একত্রিত হয়, প্রতিটি নির্ধারিত ( X , Y ) স্থানাঙ্ক। স্থানাঙ্ক (0,0) সহ টাইল সর্বদা মানচিত্রের উত্তর-পশ্চিম কোণে থাকে। X মান পশ্চিম থেকে পূর্বে বৃদ্ধি পায়, যখন Y মান উত্তর থেকে দক্ষিণে বৃদ্ধি পায়।
zoom level নির্ধারণ করে যে একটি মানচিত্রের বিষয়বস্তু কত বড় বা ছোট একটি মানচিত্র দৃশ্যে প্রদর্শিত হবে। টাইল গ্রিডের আকার জুম স্তর দ্বারা X এবং Y স্থানাঙ্কগুলিকে ত্বরান্বিতভাবে স্কেলিং করে নির্ধারিত হয়।
gridSizeX = XzoomLevel
gridSizeY = YzoomLevel
উদাহরণস্বরূপ, 2 এর জুম স্তরে, মোট 16টি টাইলের জন্য 4 x 4 ম্যাট্রিক্স ব্যবহার করে বিশ্বের মানচিত্রটি উপস্থাপন করা হয়। স্থানাঙ্কগুলির জন্য অনুমোদিত সর্বোচ্চ মান কী তাও জুম নির্ধারণ করে।
নিম্নলিখিত চিত্রটি প্রতিটি টাইলের স্থানাঙ্ক সহ 2 এর জুম স্তর সহ একটি US_AQI হিটম্যাপ দেখায়:
একটি হিটম্যাপ টাইল একটি PNG ইমেজ হিসাবে টাইল ডেটা ধারণকারী একটি বাইট অ্যারে দ্বারা প্রতিনিধিত্ব করা হয়। আপনি একটি HTTP GET অনুরোধ পাঠিয়ে heatmapTiles এন্ডপয়েন্ট ব্যবহার করে বর্তমান বায়ু মানের হিটম্যাপ টাইলসের অনুরোধ করেন:
TYPE - টাইপ হিটম্যাপ ফেরত দিতে হবে। অনুমোদিত মান দেখুন।
Z - জুম স্তর যা মানচিত্র দৃশ্যে একটি মানচিত্রের বিষয়বস্তু কতটা বড় বা ছোট তা নির্ধারণ করে। অনুমোদিত মানগুলি হল 0-16, যেখানে 0-এর মান একটি একক টাইলে সমগ্র বিশ্বকে প্রদর্শন করে৷
X , Y - পুনরুদ্ধার করার জন্য টাইলের স্থানাঙ্ক, উত্তর-পশ্চিম কোণে (0,0)। X মান পশ্চিম থেকে পূর্বে এবং Y মান উত্তর থেকে দক্ষিণে বাড়ছে।
টাইল স্থানাঙ্কগুলি নির্দিষ্ট জুম স্তরের জন্য বৈধ হতে হবে৷ উদাহরণস্বরূপ, যদি আপনি জুম স্তরটি 2 এ সেট করেন এবং 10,10 এর স্থানাঙ্কে একটি টাইলের অনুরোধ করেন, API একটি ত্রুটি প্রদান করে।
YOUR_API_KEY - আপনার অ্যাপ্লিকেশনের API কী। এই কী কোটা ব্যবস্থাপনার উদ্দেশ্যে আপনার আবেদনকে চিহ্নিত করে। আরও তথ্যের জন্য, একটি কী পান দেখুন।
উদাহরণ হিটম্যাপ অনুরোধ
উপরের ছবিটি প্রতিটি টাইলের স্থানাঙ্ক সহ 2 এর জুম স্তর সহ একটি US_AQI হিটম্যাপ দেখায়। নিম্নোক্ত উদাহরণটি হিটম্যাপ থেকে স্থানাঙ্ক 0,1 এ টাইলের অনুরোধ করতে heatmapTiles এন্ডপয়েন্ট ব্যবহার করে:
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe \u003ccode\u003eheatmapTiles\u003c/code\u003e endpoint delivers air quality heatmaps as a tile overlay, which is a collection of PNG images displayed on top of a Google Map.\u003c/p\u003e\n"],["\u003cp\u003eEach tile within the overlay has specific (X, Y) coordinates, with (0,0) at the northwest corner and increasing values eastward (X) and southward (Y), determined by the zoom level.\u003c/p\u003e\n"],["\u003cp\u003eThe zoom level (0-16) controls the map's scale and the tile grid size, with higher zoom levels showing more detailed areas.\u003c/p\u003e\n"],["\u003cp\u003eTo request a heatmap tile, you need to provide the heatmap type, zoom level (Z), tile coordinates (X, Y), and your API key in the request URL.\u003c/p\u003e\n"],["\u003cp\u003eYou can overlay these heatmap tiles on top of the default map using methods described in the provided documentation for a comprehensive air quality visualization.\u003c/p\u003e\n"]]],[],null,["The\n[`heatmapTiles`](/maps/documentation/air-quality/reference/rest/v1/mapTypes.heatmapTiles/lookupHeatmapTile)\nendpoint provides air quality related heatmaps through a tile overlay. A tile\noverlay is a collection of PNG image tiles that can be displayed on top of a\nGoogle Maps. Each image tile is (256 x 256 pixels).\n\nAbout heatmap tiles\n\nThe tile overlay is a grid assembled from a collection of tiles,\neach assigned (`X`,`Y`) coordinates.\nThe tile with coordinates (0,0) is always at the northwest corner\nof the map. The `X` values increase from west to east,\nwhile the `Y` values increase from north to south.\n\nThe `zoom level` determines how large or small the contents of a map appear in a\nmap view. The tile grid size is determined by scaling the `X` and `Y`\ncoordinates exponentially by the zoom level. \n\n```text\ngridSizeX = XzoomLevel\ngridSizeY = YzoomLevel\n```\n\nFor example, at a zoom level of 2, the world map is represented using a 4 x 4\nmatrix, for a total of 16 tiles. The zoom also determines what is the max value\nallowed for the coordinates.\n\nThe following image shows a `US_AQI` heatmap with a zoom level of 2,\nalong with the coordinates of each tile:\n\nSee [Map and Tile coordinates](/maps/documentation/javascript/coordinates)\nfor additional details.\n\nAbout the heatmap endpoint\n\nA heatmap tile is represented by a bytes array containing the tile data as a PNG\nimage. You request current air quality heatmap tiles using the\n[`heatmapTiles`](/maps/documentation/air-quality/reference/rest/v1/mapTypes.heatmapTiles/lookupHeatmapTile)\nendpoint by sending an HTTP GET request to: \n\n```html\nhttps://airquality.googleapis.com/v1/mapTypes/TYPE/heatmapTiles/Z/X/Y?key=YOUR_API_KEY\n```\n\nAll request parameters are required in a request:\n\n- `TYPE` - The type heatmap to return. See [allowed\n values](/maps/documentation/air-quality/reference/rest/v1/mapTypes.heatmapTiles/lookupHeatmapTile#maptype).\n\n- `Z` - Zoom level that determines how large or small the contents of a map\n appear in a map view. Allowed values are 0-16, where a value of 0 displays\n the entire world in a single tile.\n\n- `X`,`Y` - The coordinates of the tile to retrieve, relative to the north\n west corner (0,0). `X` values are increasing from west to east and `Y`\n values are increasing from north to south.\n\n Tile coordinates have to be valid for the specified zoom level.\n For example, if you set the zoom level to 2, and request a tile at\n coordinates of 10,10, the API returns an error.\n- `YOUR_API_KEY` - Your application's API key. This key identifies your\n application for purposes of quota management. For more information, see [get\n a key](/maps/documentation/air-quality/get-api-key).\n\nExample heatmap request\n\nThe image above shows a `US_AQI` heatmap with a zoom level of 2,\nalong with the coordinates of each tile. The following example uses the\n`heatmapTiles` endpoint to request the tile at coordinates 0,1 from the\nheatmap: \n\n```html\nhttps://airquality.googleapis.com/v1/mapTypes/US_AQI/heatmapTiles/2/0/1?key=YOUR_API_KEY\n```\n\nThe tile appears as:\n\nFor more information on overlaying tiles on top of the default map, see\n[Overlay Map Types](/maps/documentation/javascript/examples/maptype-overlay)."]]