read csv, print random distance lmao
This commit is contained in:
parent
2d835af3ac
commit
bfaaa46bdd
1 changed files with 13 additions and 1 deletions
14
src/main.rs
14
src/main.rs
|
@ -1,5 +1,17 @@
|
|||
mod distance;
|
||||
mod parse;
|
||||
|
||||
use parse::Record;
|
||||
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
// Read all data lines in, ignoring errors
|
||||
let _data: Vec<Record> = csv::Reader::from_reader(std::io::stdin())
|
||||
.deserialize()
|
||||
.flatten()
|
||||
.collect();
|
||||
|
||||
println!(
|
||||
"{}",
|
||||
distance::haversine((19.10317, -165.54224), (73.85371, 55.85692))
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue