read csv, print random distance lmao

main
Zynh0722 2024-04-23 00:11:33 -07:00
parent 2d835af3ac
commit bfaaa46bdd
1 changed files with 13 additions and 1 deletions

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