1 unstable release
0.1.0 | Jun 28, 2024 |
---|
#160 in Internationalization (i18n)
5KB
59 lines
Implementing the GeoSot in Rust
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));
}