Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blacha/quadkey-rs


https://github.com/blacha/quadkey-rs

Last synced: about 18 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Quadkey

Converting to and from quadkeys

## Usage

```rust
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}
```