হিটম্যাপ

হিটম্যাপটাইলস এন্ডপয়েন্ট টাইল ওভারলে এর মাধ্যমে পরাগ-সম্পর্কিত হিটম্যাপ প্রদান করে। একটি টাইল ওভারলে হল ছবির টাইলসের একটি সংগ্রহ যা Google মানচিত্রের উপরে প্রদর্শিত হতে পারে। Each image tile is 256 x 256 pixels.

The tile overlay is a grid assembled from a collection of tiles, each assigned ( X , Y ) coordinates. স্থানাঙ্ক (0,0) সহ টাইল সর্বদা মানচিত্রের উত্তর-পশ্চিম কোণে থাকে। X মান পশ্চিম থেকে পূর্বে বৃদ্ধি পায়, যখন Y মান উত্তর থেকে দক্ষিণে বৃদ্ধি পায়।

The zoom level determines how large or small the contents of a map appear in a map view. The tile grid size is determined by scaling the X and Y coordinates exponentially by the zoom level.

gridSizeX = XzoomLevel
gridSizeY = YzoomLevel

For example, at a zoom level of 2, the world map is represented using a 4 x 4 matrix, for a total of 16 tiles.

The following image shows a TREE_UPI heatmap of the entire world, sectioned into tiles that can be accessed at a zoom level of 2.

A heatmap of the entire world as a 4 by 4 grid.

অতিরিক্ত বিবরণের জন্য মানচিত্র এবং টাইল স্থানাঙ্ক দেখুন।

You can request current pollen heatmap tiles using the heatmapTiles endpoint by sending an HTTP GET request to:

https://pollen.googleapis.com/v1/mapTypes/TYPE/heatmapTiles/Z/X/Y?key=YOUR_API_KEY

হিটম্যাপ এন্ডপয়েন্ট সম্পর্কে

All parameters listed below are required for a successful request:

  • KEY : Your application's API key. This key identifies your application for purposes of quota management. Learn how to get a key .
  • TYPE : The type of heatmap to return. See allowed values .
  • Z : জুম স্তর যা একটি মানচিত্রের বিষয়বস্তু কত বড় বা ছোট একটি মানচিত্র দৃশ্যে প্রদর্শিত হবে তা নির্ধারণ করে। অনুমোদিত মানগুলি হল 0-16, যেখানে 0-এর মান একটি একক টাইলে সমগ্র বিশ্বকে প্রদর্শন করে৷
  • X , Y : The tile coordinates relatively to the north east corner (0,0). X মান পশ্চিম থেকে পূর্বে বৃদ্ধি পায় এবং Y মান উত্তর থেকে দক্ষিণে বৃদ্ধি পায়। স্থানাঙ্কগুলি নির্দিষ্ট জুম স্তরের জন্য বৈধ হতে হবে৷ উদাহরণস্বরূপ, আপনি যদি জুম স্তরটি 2 এ সেট করেন এবং স্থানাঙ্কে একটি টাইলের অনুরোধ করেন (10,10), API একটি ত্রুটি প্রদান করে।

Example heatmap request

উপরের চিত্রটি প্রতিটি টাইলের স্থানাঙ্ক সহ 2 এর জুম স্তর সহ একটি TREE_UPI হিটম্যাপ দেখায়। The following example uses the heatmapTiles endpoint to request the tile at coordinates (2,1):

https://pollen.googleapis.com/v1/mapTypes/TREE_UPI/heatmapTiles/2/2/1?key=YOUR_API_KEY

The tile appears as an image that can be overlaid on a map:

TREE_UPI মানচিত্র ব্যবহার করে একটি হিটম্যাপ টাইলের উদাহরণ।

For more information on overlaying tiles on top of the default map, see Overlay Map Types .