pub fn length(linestring : &LineString<f64>) -> f64 {
    linestring.0.iter().zip((&linestring.0[1..]).iter()).map(
        |(a, b)| a.haversine_distance(b)
    ).fold(0.0, |a, b| a + b)
}
/// Returns the length of a geoJSON line.
Returns the length of a geoJSON line.
Returns the length of a geoJSON line .
pub fn length(linestring : &LineString<f64>) -> f64 {
    linestring.0.iter().zip((&linestring.0[1..]).iter()).map(
        |(a, b)| a.haversine_distance(b)
    ).fold(0.0, |a, b| a + b)
}
pub fn length ( linestring : & LineString < f64 > ) -> f64 { linestring . 0 . iter ( ) . zip ( ( & linestring . 0 [ 1 .. ] ) . iter ( ) ) . map ( | ( a , b ) | a . haversine_distance ( b ) ) . fold ( 0.0 , | a , b | a + b ) }
Returns the length of a geoJSON line.
Returns the length of a geoJSON line .
linestring
&LineString<f64>
linestring
&LineString<f64>