| Crates.io | quadkey |
| lib.rs | quadkey |
| version | 0.1.0 |
| created_at | 2022-02-12 05:31:08.251141+00 |
| updated_at | 2022-02-12 05:31:08.251141+00 |
| description | Quadkey conversion utlities |
| homepage | https://github.com/blacha/quadkey-rs |
| repository | https://github.com/blacha/quadkey-rs.git |
| max_upload_size | |
| id | 531206 |
| size | 7,422 |
Converting to and from quadkeys
use quadkey;
let qk = quadkey::tile_to_str(2301, 1305, 14);
// 00120211133103
let tile = quadkey::str_to_tile("00120211133103")
// Tile { x: 2301, y: 1305, z: 14}
let qk_bin = quadkey::tile_to_u64(2301, 1305, 14);
// 442897783477764110
let tile = quadkey::u64_to_tile(442897783477764110)
// Tile { x: 2301, y: 1305, z: 14}