I'm trying to determine how the "TILE" field in the current_nodes table is calculated based off of the latitude and longitude. I've seen the slippy map tile names and understand the concept of xtile vs. ytile. But I am failing to see the correlation between xtile, ytile, and the TILE value as seen in the current_nodes table. I've seen a write up on Bing about how Bing makes the conversion, and it seems similar, but not exact to what OSM is doing. Any ideas? As an example, using the following latitude and longitude, you should get the following: asked 11 Dec '14, 07:19 jhilll |
The "tile" column in the current_nodes table has nothing to do with map tiles. See https://github.com/openstreetmap/openstreetmap-website/blob/master/lib/quad_tile/quad_tile.h for how to compute the value. answered 11 Dec '14, 09:02 Frederik Ramm ♦ |