geosot 0.1.0

Implementing the GeoSot in Rust
Documentation
  • Coverage
  • 50%
    2 out of 4 items documented0 out of 2 items with examples
  • Size
  • Source code size: 4.31 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 225.25 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • sxhxliang/geosot-rs
    2 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sxhxliang

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));
}