,
                                 json.paths[0].points.coordinates[j+1][0],
                                 json.paths[0].points.coordinates[j+2][1],
                                 json.paths[0].points.coordinates[j+2][0]);
            k = k + 1;
            sek = sek + Math.trunc(time[k][2] / 1000);
            if (sek > 60) {
              min = min + Math.trunc(sek / 60);
              sek = sek % 60;
            }
          }
          total_distance = total_distance + len;
          instr = instr +