| Crates.io | global_digital_address |
| lib.rs | global_digital_address |
| version | 1.0.0 |
| created_at | 2025-09-26 11:29:06.558132+00 |
| updated_at | 2025-09-26 11:29:06.558132+00 |
| description | Square-cell Web Mercator encoder/decoder for globally unique grid codes |
| homepage | https://github.com/sumitsharansatsangi/global_digital_address |
| repository | https://github.com/sumitsharansatsangi/global_digital_address |
| max_upload_size | |
| id | 1855773 |
| size | 13,859 |
README.mdSquare-cell Web Mercator encoder/decoder for globally unique grid codes (6×6 subdivision per level).
MAX_LAT = 85.05112878°AAAA-BBBB-CC for 10-char codes; otherwise groups of 4# Cargo.toml
[dependencies]
global_digital_address = "1.0"
use global_digital_address::{get_digi_pin, get_lat_lng_from_digipin};
let code = get_digi_pin(28.6139, 77.2090, 10).unwrap();
let center = get_lat_lng_from_digipin(&code).unwrap();
println!("{code} -> {}, {}", center.latitude, center.longitude);
cargo run --example encode_decode
MIT © Sumit Kumar