read csv, print random distance lmao
parent
2d835af3ac
commit
bfaaa46bdd
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 New Issue