File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,6 @@ impl Trace {
63
63
}
64
64
}
65
65
66
- pub fn get_edges ( & self ) -> ( & PointWithId , & PointWithId ) {
67
- let start_point = self . points . first ( ) . unwrap ( ) ;
68
- let end_point = self . points . last ( ) . unwrap ( ) ;
69
-
70
- ( start_point, end_point)
71
- }
72
-
73
66
pub fn common_trace_with ( & self , other : & Trace ) -> Result < CommonTrace > {
74
67
let mut all_points: Vec < & PointWithId > =
75
68
self . points . iter ( ) . chain ( other. points . iter ( ) ) . collect ( ) ;
@@ -301,6 +294,12 @@ impl<T> Trace<T> {
301
294
pub fn haversine_length ( & self ) -> f64 {
302
295
LineString :: from ( self ) . haversine_length ( )
303
296
}
297
+ pub fn get_edges ( & self ) -> ( & PointWithId , & PointWithId ) {
298
+ let start_point = self . points . first ( ) . unwrap ( ) ;
299
+ let end_point = self . points . last ( ) . unwrap ( ) ;
300
+
301
+ ( start_point, end_point)
302
+ }
304
303
}
305
304
306
305
impl From < Trace < Simplified > > for TraceOutput {
You can’t perform that action at this time.
0 commit comments