construct_tree/
construct_tree.rs1use sphere_knn::{build_tree, LocationData};
2
3fn main() {
4 let data = vec![
5 LocationData::new(42.358, -71.064, "Boston"),
6 LocationData::new(42.732, -73.693, "Troy"),
7 LocationData::new(40.664, -73.939, "New York"),
8 LocationData::new(25.788, -80.224, "Miami"),
9 LocationData::new(51.507, -0.128, "London"),
10 LocationData::new(48.857, 2.351, "Paris"),
11 LocationData::new(48.208, 16.373, "Vienna"),
12 LocationData::new(41.900, 12.500, "Rome"),
13 LocationData::new(39.914, 116.392, "Beijing"),
14 LocationData::new(22.278, 114.159, "Hong Kong"),
15 LocationData::new(37.567, 126.978, "Seoul"),
16 LocationData::new(35.690, 139.692, "Tokyo"),
17 ];
18 let tree = build_tree(data);
19 println!("{:#?}", tree);
20}