quadkey

Crates.ioquadkey
lib.rsquadkey
version0.1.0
sourcesrc
created_at2022-02-12 05:31:08.251141
updated_at2022-02-12 05:31:08.251141
descriptionQuadkey conversion utlities
homepagehttps://github.com/blacha/quadkey-rs
repositoryhttps://github.com/blacha/quadkey-rs.git
max_upload_size
id531206
size7,422
Blayne Chard (blacha)

documentation

README

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}
Commit count: 10

cargo fmt