geosot

Crates.iogeosot
lib.rsgeosot
version0.1.0
sourcesrc
created_at2024-06-28 18:02:27.836267
updated_at2024-06-28 18:02:27.836267
descriptionImplementing the GeoSot in Rust
homepage
repositoryhttps://github.com/sxhxliang/geosot-rs
max_upload_size
id1286884
size4,785
Shi hua (sxhxliang)

documentation

https://docs.rs/geosot

README

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));
}
Commit count: 3

cargo fmt