<div dir="ltr">On Thu, Apr 9, 2009 at 1:30 PM, Frederik Ramm <span dir="ltr"><<a href="mailto:frederik@remote.org">frederik@remote.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<div class="im"><br>
<br>
pablo platt wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is the tiles resolution predetermined <br>
</blockquote>
<br></div>
Yes, it is 32 bits.<br>
<br>
We take lat and lon and scale them to a 16 bit value each (this means we get 0.0055° precision in the East-West direction and 0.0027° precision in the Norh-South direction). Then we use first bit of the 16-bit longitude value, then the first bit of the 16-bit longitude value, then the second of each, and so on, to build a 32-bit tile value.<br>

<br>
Bye<br><font color="#888888">
Frederik</font></blockquote><div><br>How do I query this db?<br>For example, if I want to find all records in a distance <= 1.5KM from a (lat, lng) point.<br></div></div><br></div>