https://github.com/blacha/quadkey-rs
https://github.com/blacha/quadkey-rs
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/blacha/quadkey-rs
- Owner: blacha
- License: mit
- Created: 2022-02-12T04:50:51.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T05:42:25.000Z (over 3 years ago)
- Last Synced: 2025-02-28T10:32:06.826Z (5 months ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
// 00120211133103let tile = quadkey::str_to_tile("00120211133103")
// Tile { x: 2301, y: 1305, z: 14}let qk_bin = quadkey::tile_to_u64(2301, 1305, 14);
// 442897783477764110let tile = quadkey::u64_to_tile(442897783477764110)
// Tile { x: 2301, y: 1305, z: 14}
```