++) {
            len = len + distance(json.paths[0].points.coordinates[j][1],
                                 json.paths[0].points.coordinates[j][0],
                                 json.paths[0].points.coordinates[j+1][1],
                                 json.paths[0].points.coordinates[j+1][0]);
          }
          if ((i < name.length - 1) && (name[i+1][2][0] == '!')) {
            // Add distance and time from milestone item
            len = len + distance(json.paths[0].points.coordinates[j+1][1]