Geohashing and Quadtrees
An app must show the cafes near you. A database cannot scan every cafe in the world for each request. Geohashes and quadkeys help: both turn a place into one short key.
7 min read7 মিনিটে পড়া যায় · 7 sections7টি সেকশন · 3 sources3টি সোর্স · updated Oct 2026আপডেট: Oct 2026
Geohash precision and cell edgesজিওহ্যাশের প্রিসিশন ও সেলের কিনারা
Lengthen a geohash and watch cells shrink, then miss a cafe across an edge.জিওহ্যাশ লম্বা করুন, সেল ছোট হতে দেখুন, তারপর কিনারার ওপারের একটি ক্যাফে বাদ পড়তে দেখুন।
You’ll learnআপনি শিখবেন
- A longer code names a smaller cellলম্বা কোড ছোট সেলকে নাম দেয়
- Why a quadkey has 4^L tilesকোয়াডকিতে কেন 4^L টাইল
- A parent key starts the child keyপ্যারেন্টের কী দিয়ে সন্তানের কী শুরু
- Why one cell can miss a near cafeকেন একটি সেল কাছের ক্যাফে হারায়
- Why Redis checks 1+8 areasRedis কেন 1+8 এলাকা দেখে
In plain words
A geohash is a short code for a cell on a grid that covers the map. Elasticsearch labels each cell of its grid with a geohash, and you pick the precision Source 1সোর্স 1.
Precision is the length of the code. A long code names a small cell. A short code names a large cell Source 1সোর্স 1. Elasticsearch accepts a precision from 1 to 12 Source 1সোর্স 1.
A quadkey does the same job for map tiles. Bing Maps cuts its map into tiles, and a quadkey is a string that names one tile at one level of detail Source 3সোর্স 3.
Both ideas mix the bits of two numbers into one key: latitude and longitude for the geohash of Redis Source 2সোর্স 2, and the X and Y tile numbers for the quadkey Source 3সোর্স 3. This comparison is the tutorial's own.
সহজ English
A geohash is a short code for a cell on a grid that covers the map. Elasticsearch labels each cell of its grid with a geohash. You pick the precision Source 1সোর্স 1.
Precision is the length of the code. A long code names a small cell. A short code names a large cell Source 1সোর্স 1. Elasticsearch accepts a precision from 1 to 12 Source 1সোর্স 1.
A quadkey does the same job for map tiles. Bing Maps cuts its map into tiles. A quadkey is a string that names one tile at one level of detail Source 3সোর্স 3.
Both ideas mix the bits of two numbers into one key. The geohash of Redis mixes latitude and longitude Source 2সোর্স 2. The quadkey mixes the X and Y tile numbers Source 3সোর্স 3. This comparison is the tutorial's own.
বাংলা ব্যাখ্যা
জিওহ্যাশ (geohash) হলো ম্যাপকে ঢেকে রাখা একটি গ্রিডের একটি সেলের ছোট কোড। Elasticsearch তার গ্রিডের প্রতিটি সেলকে একটি জিওহ্যাশ দিয়ে চিহ্নিত করে। আপনি প্রিসিশন (precision) বেছে নেন Source 1সোর্স 1।
প্রিসিশন হলো কোডের দৈর্ঘ্য। লম্বা কোড একটি ছোট সেলকে নাম দেয়। ছোট কোড একটি বড় সেলকে নাম দেয় Source 1সোর্স 1। Elasticsearch 1 থেকে 12 পর্যন্ত প্রিসিশন নেয় Source 1সোর্স 1।
কোয়াডকি (quadkey) ম্যাপ টাইলের জন্য একই কাজ করে। Bing Maps তার ম্যাপকে টাইলে (tile) কাটে। কোয়াডকি হলো একটি স্ট্রিং, যা একটি লেভেল অব ডিটেইলে (level of detail) একটি টাইলকে নাম দেয় Source 3সোর্স 3।
দুটি ধারণাই দুটি সংখ্যার বিট মিশিয়ে একটি কী (key) বানায়। Redis-এর জিওহ্যাশ অক্ষাংশ (latitude) ও দ্রাঘিমাংশ (longitude) মেশায় Source 2সোর্স 2। কোয়াডকি টাইলের X ও Y সংখ্যা মেশায় Source 3সোর্স 3। এই তুলনাটি টিউটোরিয়ালের নিজের।
When you need it
- You must find points near a place, such as shops, drivers, or bike stations. Redis keeps such points in a geospatial index and can search a box or a radius Source 2সোর্স 2.
- You must count points in map cells. Elasticsearch does this with its geohash grid aggregation Source 1সোর্স 1.
- You must serve a map in pieces. Bing Maps pre-renders the map at many levels of detail and cuts each one into tiles Source 3সোর্স 3.
সহজ English
- You must find points near a place, such as shops, drivers, or bike stations. Redis keeps such points in a geospatial index. It can search a box or a radius Source 2সোর্স 2.
- You must count points in map cells. Elasticsearch does this with its geohash grid aggregation Source 1সোর্স 1.
- You must serve a map in pieces. Bing Maps pre-renders the map at many levels of detail. It cuts each one into tiles Source 3সোর্স 3.
বাংলা ব্যাখ্যা
- আপনাকে কোনো জায়গার কাছাকাছি পয়েন্ট খুঁজতে হবে, যেমন দোকান, ড্রাইভার বা বাইক স্টেশন। Redis এমন পয়েন্ট একটি জিওস্পেশিয়াল ইনডেক্সে (geospatial index) রাখে। এটি একটি বক্স বা রেডিয়াসে খুঁজতে পারে Source 2সোর্স 2।
- আপনাকে ম্যাপের সেলের মধ্যে পয়েন্ট গুনতে হবে। Elasticsearch এটি তার জিওহ্যাশ গ্রিড অ্যাগ্রিগেশন (geohash grid aggregation) দিয়ে করে Source 1সোর্স 1।
- আপনাকে ম্যাপ টুকরো টুকরো করে দিতে হবে। Bing Maps অনেক লেভেল অব ডিটেইলে ম্যাপ আগে থেকে রেন্ডার করে। প্রতিটিকে টাইলে কাটে Source 3সোর্স 3।
How it works
Geohash in Redis. GEOADD stores each item in a sorted set. The set is filled with a technique called Geohash: the bits of latitude and longitude are interleaved into one 52-bit integer, and the score of a sorted set can hold it without loss Source 2সোর্স 2. Redis refuses a latitude outside -85.05112878 to 85.05112878, and a longitude outside -180 to 180 Source 2সোর্স 2.
Search in a box or a radius. Redis checks the 1+8 areas that are needed to cover the whole shape. It then drops the elements that lie outside the shape Source 2সোর্স 2. The tutorial's own reading: one cell is not enough, because a search shape can reach over the edge of a cell. That is why the neighbors are checked too.
Precision and cost. A geohash of length 12 gives cells under one square metre. Elasticsearch warns that a high precision can cost much RAM and give large results, so you should filter to a small area first Source 1সোর্স 1.
Quadkeys. At each level of detail, the width and height of the Bing map grow by a factor of 2 Source 3সোর্স 3. The map is cut into tiles of 256 by 256 pixels, so it is 2 to the power of the level tiles wide and high Source 3সোর্স 3. This is the tutorial's own arithmetic: each tile splits into 4 tiles at the next level.
To make a quadkey, you interleave the bits of the tile Y and X numbers, read the result as a base-4 number, and write it as a string. The tile at (3, 5) on level 3 gets the quadkey "213" Source 3সোর্স 3.
Three properties follow Source 3সোর্স 3:
- The length of a quadkey equals the level of its tile.
- The first digits of a quadkey are the whole key of its parent tile. For example, the tiles with keys 20, 21, 22, and 23 all have tile 2 as their parent.
- Tiles that are near on the map usually have keys that are near in order. The source says this matters because neighbor tiles are usually asked for together, so it is good to keep them on the same disk blocks.
A quadkey can be a key in a common B-tree index Source 3সোর্স 3.
| Idea | Geohash | Quadkey |
|---|---|---|
| What the key names | A cell of a grid Source 1সোর্স 1 | A map tile at one level Source 3সোর্স 3 |
| What a longer key means | A smaller cell Source 1সোর্স 1 | A deeper level, so a smaller tile Source 3সোর্স 3 |
| How it is built | Latitude and longitude bits, interleaved Source 2সোর্স 2 | Tile X and Y bits, interleaved Source 3সোর্স 3 |
সহজ English
Geohash in Redis. GEOADD stores each item in a sorted set. A technique called Geohash fills the set. The bits of latitude and longitude are interleaved into one 52-bit integer. The score of a sorted set can hold it without loss Source 2সোর্স 2. Redis refuses a latitude outside -85.05112878 to 85.05112878. It also refuses a longitude outside -180 to 180 Source 2সোর্স 2.
Search in a box or a radius. Redis checks the 1+8 areas that are needed to cover the whole shape. It then drops the elements that lie outside the shape Source 2সোর্স 2. The tutorial's own reading: one cell is not enough, because a search shape can reach over the edge of a cell. That is why Redis checks the neighbors too.
Precision and cost. A geohash of length 12 gives cells under one square metre. Elasticsearch warns that a high precision can cost much RAM and give large results. So you should filter to a small area first Source 1সোর্স 1.
Quadkeys. At each level of detail, the width and height of the Bing map grow by a factor of 2 Source 3সোর্স 3. The map is cut into tiles of 256 by 256 pixels. So it is 2 to the power of the level tiles wide and high Source 3সোর্স 3. This is the tutorial's own arithmetic: each tile splits into 4 tiles at the next level.
To make a quadkey, you interleave the bits of the tile Y and X numbers. You read the result as a base-4 number and write it as a string. The tile at (3, 5) on level 3 gets the quadkey "213" Source 3সোর্স 3.
Three properties follow Source 3সোর্স 3:
- The length of a quadkey equals the level of its tile.
- The first digits of a quadkey are the whole key of its parent tile. For example, the tiles with keys 20, 21, 22, and 23 all have tile 2 as their parent.
- Tiles that are near on the map usually have keys that are near in order. The source says this matters because neighbor tiles are usually asked for together. So it is good to keep them on the same disk blocks.
A quadkey can be a key in a common B-tree index Source 3সোর্স 3.
This list compares the two ideas:
- What the key names: a geohash names a cell of a grid Source 1সোর্স 1. A quadkey names a map tile at one level Source 3সোর্স 3.
- What a longer key means: a longer geohash means a smaller cell Source 1সোর্স 1. A longer quadkey means a deeper level, so a smaller tile Source 3সোর্স 3.
- How it is built: a geohash interleaves latitude and longitude bits Source 2সোর্স 2. A quadkey interleaves tile X and Y bits Source 3সোর্স 3.
বাংলা ব্যাখ্যা
Redis-এ জিওহ্যাশ। GEOADD প্রতিটি আইটেম একটি সর্টেড সেটে (sorted set) রাখে। Geohash নামের একটি কৌশল সেটটি ভরে। অক্ষাংশ ও দ্রাঘিমাংশের বিট ইন্টারলিভ (interleave) করে একটি 52-বিটের ইন্টিজার বানানো হয়। সর্টেড সেটের স্কোর সেটি ক্ষতি ছাড়াই ধারণ করতে পারে Source 2সোর্স 2। Redis -85.05112878 থেকে 85.05112878-এর বাইরের অক্ষাংশ প্রত্যাখ্যান করে। এটি -180 থেকে 180-এর বাইরের দ্রাঘিমাংশও প্রত্যাখ্যান করে Source 2সোর্স 2।
বক্স বা রেডিয়াসে খোঁজা। পুরো আকৃতি ঢাকতে যে 1+8 টি এলাকা দরকার, Redis সেগুলো পরীক্ষা করে। তারপর আকৃতির বাইরে থাকা এলিমেন্ট বাদ দেয় Source 2সোর্স 2। টিউটোরিয়ালের নিজের ব্যাখ্যা: একটি সেল যথেষ্ট নয়, কারণ খোঁজার আকৃতি একটি সেলের কিনারা পেরিয়ে যেতে পারে। তাই পাশের সেলও পরীক্ষা করা হয়।
প্রিসিশন ও খরচ। দৈর্ঘ্য 12-র একটি জিওহ্যাশ এক বর্গমিটারের কম সেল দেয়। Elasticsearch সতর্ক করে, বেশি প্রিসিশনে অনেক RAM লাগতে পারে এবং বড় ফলাফল আসতে পারে। তাই আগে ছোট একটি এলাকায় ফিল্টার করা উচিত Source 1সোর্স 1।
কোয়াডকি। প্রতিটি লেভেল অব ডিটেইলে Bing ম্যাপের প্রস্থ ও উচ্চতা 2 গুণ করে বাড়ে Source 3সোর্স 3। ম্যাপ 256 বাই 256 পিক্সেলের টাইলে কাটা হয়। তাই এর প্রস্থ ও উচ্চতায় লেভেলের 2 ঘাত সংখ্যক টাইল থাকে Source 3সোর্স 3। এটি টিউটোরিয়ালের নিজের হিসাব: প্রতিটি টাইল পরের লেভেলে 4 টি টাইলে ভাগ হয়।
কোয়াডকি বানাতে টাইলের Y ও X সংখ্যার বিট ইন্টারলিভ করা হয়। ফলাফলকে বেস-4 (base-4) সংখ্যা হিসেবে পড়ে স্ট্রিং হিসেবে লেখা হয়। লেভেল 3-এ (3, 5)-এর টাইলের কোয়াডকি হয় "213" Source 3সোর্স 3।
তিনটি বৈশিষ্ট্য পাওয়া যায় Source 3সোর্স 3:
- কোয়াডকির দৈর্ঘ্য তার টাইলের লেভেলের সমান।
- কোয়াডকির প্রথম অঙ্কগুলো তার প্যারেন্ট টাইলের পুরো কী। যেমন, 20, 21, 22 ও 23 কী-র টাইলগুলোর সবার প্যারেন্ট হলো টাইল 2।
- ম্যাপে কাছাকাছি টাইলগুলোর কী সাধারণত ক্রমে কাছাকাছি হয়। সোর্স বলে, এটি গুরুত্বপূর্ণ, কারণ পাশের টাইলগুলো সাধারণত একসাথে চাওয়া হয়। তাই সেগুলোকে একই ডিস্ক ব্লকে রাখা ভালো।
কোয়াডকি একটি সাধারণ B-tree ইনডেক্সের কী হতে পারে Source 3সোর্স 3।
এই তালিকা দুটি ধারণার তুলনা করে:
- কী কীসের নাম: জিওহ্যাশ একটি গ্রিডের সেলকে নাম দেয় Source 1সোর্স 1। কোয়াডকি একটি লেভেলের একটি ম্যাপ টাইলকে নাম দেয় Source 3সোর্স 3।
- লম্বা কী মানে কী: লম্বা জিওহ্যাশ মানে ছোট সেল Source 1সোর্স 1। লম্বা কোয়াডকি মানে গভীর লেভেল, অর্থাৎ ছোট টাইল Source 3সোর্স 3।
- কীভাবে তৈরি: জিওহ্যাশ অক্ষাংশ ও দ্রাঘিমাংশের বিট ইন্টারলিভ করে Source 2সোর্স 2। কোয়াডকি টাইলের X ও Y বিট ইন্টারলিভ করে Source 3সোর্স 3।
A real-life example
This example is the tutorial's own. It uses the first point of the Elasticsearch example, 52.374081 N and 4.912350 E, and a short script that follows the rules of the sources.
| Length or level | Geohash | Quadkey |
|---|---|---|
| 3 | u17 | 120 |
| 5 | u173z | 12020 |
| 8 | u173zy3j | 12020211 |
Each longer code starts with the shorter code, so a cell sits inside its parent cell.
The Elasticsearch page shows the decoded box of u17: from 52.03125 to 53.4375 N, and from 4.21875 to 5.625 E Source 1সোর্স 1. It is about 1.4 degrees high and wide (the tutorial's own arithmetic).
Now take two cafes at 52.5 N, one at 5.624 E and one at 5.626 E, about 135 m apart. At length 3, the first is in u17 and the second is in u1k. The codes share only 2 characters. A search of one cell would miss the second cafe. Redis checks 1+8 areas to cover a search shape Source 2সোর্স 2. The tutorial's own reading: this is how it avoids such a miss.
সহজ English
This example is the tutorial's own. It uses the first point of the Elasticsearch example, 52.374081 N and 4.912350 E. It also uses a short script that follows the rules of the sources.
- Length or level 3: the geohash is
u17and the quadkey is120. - Length or level 5: the geohash is
u173zand the quadkey is12020. - Length or level 8: the geohash is
u173zy3jand the quadkey is12020211.
Each longer code starts with the shorter code, so a cell sits inside its parent cell.
The Elasticsearch page shows the decoded box of u17: from 52.03125 to 53.4375 N, and from 4.21875 to 5.625 E Source 1সোর্স 1. It is about 1.4 degrees high and wide (the tutorial's own arithmetic).
Now take two cafes at 52.5 N, one at 5.624 E and one at 5.626 E, about 135 m apart. At length 3, the first is in u17 and the second is in u1k. The codes share only 2 characters. A search of one cell would miss the second cafe. Redis checks 1+8 areas to cover a search shape Source 2সোর্স 2. The tutorial's own reading: this is how it avoids such a miss.
বাংলা ব্যাখ্যা
এই উদাহরণটি টিউটোরিয়ালের নিজের। এটি Elasticsearch উদাহরণের প্রথম পয়েন্ট, 52.374081 N ও 4.912350 E, ব্যবহার করে। এটি সোর্সগুলোর নিয়ম মানা একটি ছোট স্ক্রিপ্টও ব্যবহার করে।
- দৈর্ঘ্য বা লেভেল 3: জিওহ্যাশ
u17এবং কোয়াডকি120। - দৈর্ঘ্য বা লেভেল 5: জিওহ্যাশ
u173zএবং কোয়াডকি12020। - দৈর্ঘ্য বা লেভেল 8: জিওহ্যাশ
u173zy3jএবং কোয়াডকি12020211।
প্রতিটি লম্বা কোড ছোট কোড দিয়ে শুরু হয়, তাই একটি সেল তার প্যারেন্ট সেলের ভেতরে থাকে।
Elasticsearch-এর পাতা u17-এর ডিকোড করা বক্স দেখায়: 52.03125 থেকে 53.4375 N, এবং 4.21875 থেকে 5.625 E Source 1সোর্স 1। এটি উচ্চতায় ও প্রস্থে প্রায় 1.4 ডিগ্রি (টিউটোরিয়ালের নিজের হিসাব)।
এখন 52.5 N-এ দুটি ক্যাফে নিন, একটি 5.624 E-তে এবং একটি 5.626 E-তে, প্রায় 135 m দূরে। দৈর্ঘ্য 3-এ প্রথমটি u17-এ এবং দ্বিতীয়টি u1k-তে। কোড দুটির মাত্র 2 টি অক্ষর এক। একটি সেল খুঁজলে দ্বিতীয় ক্যাফে বাদ পড়ত। Redis একটি খোঁজার আকৃতি ঢাকতে 1+8 টি এলাকা পরীক্ষা করে Source 2সোর্স 2। টিউটোরিয়ালের নিজের ব্যাখ্যা: এভাবেই সে এমন বাদ পড়া এড়ায়।
Common mistakes
- Searching one cell only. Two near points can have different codes, as the cafe example shows. Search the neighbor cells too (the tutorial's own advice; Redis checks 1+8 areas Source 2সোর্স 2).
- Choosing a precision that is too high. Elasticsearch warns that a high precision can be costly in RAM and result size, and that a large area can give millions of buckets Source 1সোর্স 1.
- Treating a distance as exact. Redis assumes a spherical Earth, and its worst-case error may reach 0.5%. Its documentation says to consider other systems when errors matter Source 2সোর্স 2.
- Sending a point near a pole. Redis cannot index areas very near the poles Source 2সোর্স 2. The Bing map stops at about 85.05 degrees of latitude Source 3সোর্স 3.
- Relying on a retired service. Bing Maps for Enterprise is deprecated and retired for free accounts. Enterprise accounts can use it until 30 June 2028 Source 3সোর্স 3. The tile rules here are a model of the idea.
সহজ English
- Searching one cell only. Two near points can have different codes, as the cafe example shows. Search the neighbor cells too (the tutorial's own advice; Redis checks 1+8 areas Source 2সোর্স 2).
- Choosing a precision that is too high. Elasticsearch warns that a high precision can be costly in RAM and result size. A large area can give millions of buckets Source 1সোর্স 1.
- Treating a distance as exact. Redis assumes a spherical Earth, and its worst-case error may reach 0.5%. Its documentation says to consider other systems when errors matter Source 2সোর্স 2.
- Sending a point near a pole. Redis cannot index areas very near the poles Source 2সোর্স 2. The Bing map stops at about 85.05 degrees of latitude Source 3সোর্স 3.
- Relying on a retired service. Bing Maps for Enterprise is deprecated and retired for free accounts. Enterprise accounts can use it until 30 June 2028 Source 3সোর্স 3. The tile rules here are a model of the idea.
বাংলা ব্যাখ্যা
- শুধু একটি সেল খোঁজা। দুটি কাছের পয়েন্টের কোড আলাদা হতে পারে, যেমন ক্যাফের উদাহরণ দেখায়। পাশের সেলও খুঁজুন (টিউটোরিয়ালের নিজের পরামর্শ; Redis 1+8 টি এলাকা পরীক্ষা করে Source 2সোর্স 2)।
- অতি উঁচু প্রিসিশন বেছে নেওয়া। Elasticsearch সতর্ক করে, উঁচু প্রিসিশন RAM ও ফলাফলের আকারে ব্যয়বহুল হতে পারে। একটি বড় এলাকা কয়েক মিলিয়ন বাকেট (bucket) দিতে পারে Source 1সোর্স 1।
- দূরত্বকে নিখুঁত মনে করা। Redis পৃথিবীকে গোলাকার ধরে নেয়, এবং তার সবচেয়ে খারাপ ক্ষেত্রের ভুল 0.5% পর্যন্ত হতে পারে। ভুল গুরুত্বপূর্ণ হলে অন্য সিস্টেম বিবেচনা করতে এর ডকুমেন্টেশন বলে Source 2সোর্স 2।
- মেরুর কাছে পয়েন্ট পাঠানো। Redis মেরুর খুব কাছের এলাকা ইনডেক্স করতে পারে না Source 2সোর্স 2। Bing ম্যাপ প্রায় 85.05 ডিগ্রি অক্ষাংশে থেমে যায় Source 3সোর্স 3।
- বন্ধ হওয়া সার্ভিসের ওপর নির্ভর করা। Bing Maps for Enterprise ডিপ্রিকেটেড (deprecated) এবং বিনামূল্যের অ্যাকাউন্টের জন্য বন্ধ। এন্টারপ্রাইজ অ্যাকাউন্ট 30 জুন 2028 পর্যন্ত এটি ব্যবহার করতে পারে Source 3সোর্স 3। এখানকার টাইলের নিয়ম ধারণাটির একটি মডেল।
What a tester can check
Tutorial advice
These test ideas are the tutorial's own advice, not a claim of the sources.
- Test the cell edge. Put two points a few metres apart on both sides of a cell edge. Search from one of them, and check that the other one is in the result.
- Test the four corners. Search near the corner where four cells meet. Check that all nearby points show up.
- Test the extremes. Try a latitude of 85.06 and a longitude of 180. Check for a clear error or a clear rule.
- Test the date line. Search near longitude 180 and -180. Check that points on the other side can be found.
- Test the precision. Ask for a very high precision on a big area. Check the time, the memory, and the size of the answer.
- Move a point. Update a point so that it changes its cell. Check that the old cell no longer returns it.
সহজ English
These test ideas are the tutorial's own advice. They are not a claim of the sources.
- Test the cell edge. Put two points a few metres apart on both sides of a cell edge. Search from one of them. Check that the other one is in the result.
- Test the four corners. Search near the corner where four cells meet. Check that all nearby points show up.
- Test the extremes. Try a latitude of 85.06 and a longitude of 180. Check for a clear error or a clear rule.
- Test the date line. Search near longitude 180 and -180. Check that points on the other side can be found.
- Test the precision. Ask for a very high precision on a big area. Check the time, the memory, and the size of the answer.
- Move a point. Update a point so that it changes its cell. Check that the old cell no longer returns it.
বাংলা ব্যাখ্যা
এই টেস্টের ধারণাগুলো টিউটোরিয়ালের নিজের পরামর্শ। এগুলো সোর্সের দাবি নয়।
- সেলের কিনারা টেস্ট করুন। একটি সেলের কিনারার দুই পাশে কয়েক মিটার দূরে দুটি পয়েন্ট রাখুন। একটি থেকে খুঁজুন। দেখুন অন্যটি ফলাফলে আছে কি না।
- চার কোণ টেস্ট করুন। যেখানে চারটি সেল মেলে সেই কোণের কাছে খুঁজুন। দেখুন কাছের সব পয়েন্ট আসে।
- চরম মান টেস্ট করুন। অক্ষাংশ 85.06 এবং দ্রাঘিমাংশ 180 চেষ্টা করুন। একটি স্পষ্ট এরর বা স্পষ্ট নিয়ম আছে কি না দেখুন।
- ডেট লাইন টেস্ট করুন। দ্রাঘিমাংশ 180 ও -180-এর কাছে খুঁজুন। দেখুন অন্য পাশের পয়েন্ট পাওয়া যায়।
- প্রিসিশন টেস্ট করুন। একটি বড় এলাকায় খুব উঁচু প্রিসিশন চান। সময়, মেমরি এবং উত্তরের আকার পরীক্ষা করুন।
- একটি পয়েন্ট সরান। একটি পয়েন্ট এমনভাবে আপডেট করুন যাতে তার সেল বদলায়। দেখুন পুরোনো সেল আর সেটি ফেরত দেয় না।
Key words
| Word | Meaning |
|---|---|
| Geohash | A short code that names a cell of a map grid. A longer code names a smaller cell Source 1সোর্স 1 |
| Precision | The length of a geohash. Elasticsearch accepts 1 to 12 Source 1সোর্স 1 |
| Interleave | Mix the bits of two numbers one by one, to make one number Source 2সোর্স 2 Source 3সোর্স 3 |
| Geospatial index | In Redis, a sorted set that holds items by their coordinates Source 2সোর্স 2 |
| Tile | A square piece of the rendered map, 256 by 256 pixels in Bing Maps Source 3সোর্স 3 |
| Level of detail | The zoom level of the map. Each level doubles the width and height Source 3সোর্স 3 |
| Quadkey | A string that names one tile at one level. Its length is the level Source 3সোর্স 3 |
| Parent tile | The tile at the previous level that holds a tile. Its quadkey is the start of the child key Source 3সোর্স 3 |
| Bounding box | A rectangle that you give by two corners, used to limit a search or to zoom in Source 1সোর্স 1 |