calculates the length of an evolved route . concode_field_sep DistanceLookup distances concode_field_sep boolean isNatural
double function ( List < String > arg0 , List < ? extends List < String >> arg1 ) { int loc0 = 0 ; int loc1 = arg0 . size ( ) ; for ( int loc2 = 0 ; loc2 < loc1 ; loc2 ++ ) { int loc3 = loc2 < loc1 - 1 ? loc2 + 1 : 0 ; loc0 += distances . getDistance ( arg0 . get ( loc2 ) , arg0 . get ( loc3 ) ) ; } return loc0 ; }