read csv, print random distance lmao

This commit is contained in:
Zynh0722 2024-04-23 00:11:33 -07:00
parent 2d835af3ac
commit bfaaa46bdd

View file

@ -1,5 +1,17 @@
mod distance;
mod parse; mod parse;
use parse::Record;
fn main() { 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))
);
} }