Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blacha/quadkey-rs
https://github.com/blacha/quadkey-rs
Last synced: about 18 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/blacha/quadkey-rs
- Owner: blacha
- License: mit
- Created: 2022-02-12T04:50:51.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T05:42:25.000Z (almost 3 years ago)
- Last Synced: 2024-12-13T12:40:03.624Z (about 1 month 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}
```