1 unstable release

0.1.0 Feb 12, 2022

#79 in #converting

MIT license

7KB
154 lines

Quadkey

Converting to and from quadkeys

Usage

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}

No runtime deps