| Crates.io | geosot |
| lib.rs | geosot |
| version | 0.1.0 |
| created_at | 2024-06-28 18:02:27.836267+00 |
| updated_at | 2024-06-28 18:02:27.836267+00 |
| description | Implementing the GeoSot in Rust |
| homepage | |
| repository | https://github.com/sxhxliang/geosot-rs |
| max_upload_size | |
| id | 1286884 |
| size | 4,785 |
use geosot::{get_code, to_string};
fn main() {
let x = 76.233;
let y = 27.688;
let level = 32;
let code = get_code(x, y, level);
// 32级
// code: 339638376531246140
// grid: G001023122-203103-131010.33003300330
println!("经维度: {} {}", x, y);
println!("code: {}", code);
println!("grid: {}", to_string(code, level));
}