[openstreetmap/openstreetmap-website] Hello, no matter how I calculate the tile according to the official method, it is always incorrect. Can someone help explain? (Issue #6099)
YyJ
notifications at github.com
Mon Jun 16 01:43:34 UTC 2025
YyJyyy left a comment (openstreetmap/openstreetmap-website#6099)
> 顺便说一下,调用原始 Rails 代码将返回以下结果:
>
> ```
> QuadTile.tile_for_point(35.2000381, 114.6629926)
> => 3875963095
> ```
>
> 这匹配:
>
> ```
> id | latitude | longitude | changeset_id | visible | timestamp | tile | version
> -------------+-----------+------------+--------------+---------+----------------------------+------------+---------
> 12394725448 | 352000381 | 1146629926 | 159556585 | t | 2025-06-14 18:37:20.996467 | 3875963095 | 1
> ```
Thank you very much for your guidance. I currently have a clear understanding of how this value was obtained, but I would like to clarify what the formula inside looks like? Just like how num integrates numbers in Java, what is the QuadTile formula that depends on it? Could you please explain it to me? Thank you
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6099#issuecomment-2974874288
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/6099/2974874288 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250615/3cbafdcb/attachment.htm>
More information about the rails-dev
mailing list