For the following coordinates, I need to merge them into a single vertical line, but I’m not sure how to proceed.
The coordinates:
[((57.825, 112.6), (58.575, 113.35)), ((57.825, 113.35), (58.575, 128.375)), ((57.825, 128.38), (58.575, 129.13)), ((57.825, 129.13), (58.575, 144.88)), ((57.825, 144.88), (58.575, 145.63)), ((57.825, 145.63), (58.575, 160.655)), ((57.825, 160.65), (58.575, 161.4)), ((57.825, 161.4), (58.575, 176.425)), ((57.825, 176.42), (58.575, 177.17)), ((57.825, 177.17), (58.575, 192.92)), ((57.825, 192.92), (58.575, 193.67)), ((57.825, 193.67), (58.575, 208.695)), ((57.825, 208.7), (58.575, 209.45)), ((57.825, 209.45), (58.575, 225.2)), ((57.825, 225.2), (58.575, 225.95)), ((57.825, 225.95), (58.575, 240.975)), ((57.825, 240.97), (58.575, 241.72)), ((57.825, 241.72), (58.575, 257.47)), ((57.825, 257.47), (58.575, 258.22)), ((57.825, 258.22), (58.575, 273.245)), ((57.825, 273.25), (58.575, 274.0)), ((57.825, 274.0), (58.575, 289.775)), ((57.825, 289.77), (58.575, 290.52)), ((57.825, 290.52), (58.575, 305.52)), ((57.825, 305.52), (58.575, 306.27)), ((57.825, 306.27), (58.575, 322.04499999999996)), ((57.825, 322.05), (58.575, 322.8)), ((57.825, 322.8), (58.575, 337.8)), ((57.825, 337.8), (58.575, 338.55)), ((57.825, 338.55), (58.575, 354.325)), ((57.825, 354.32), (58.575, 355.07)), ((57.825, 355.07), (58.575, 370.07)), ((57.825, 370.07), (58.575, 370.82)), ((57.825, 370.82), (58.575, 386.59499999999997)), ((57.825, 386.6), (58.575, 387.35)), ((57.825, 387.35), (58.575, 402.375)), ((57.825, 402.38), (58.575, 403.13)), ((57.825, 403.13), (58.575, 418.13)), ((57.825, 418.13), (58.575, 418.88)), ((57.825, 418.88), (58.575, 434.655)), ((57.825, 434.65), (58.575, 435.4)), ((57.825, 435.4), (58.575, 450.4)), ((57.825, 450.4), (58.575, 451.15)), ((57.825, 451.15), (58.575, 466.92499999999995)), ((57.825, 466.92), (58.575, 467.67)), ((57.825, 467.67), (58.575, 482.67)), ((57.825, 482.67), (58.575, 483.42)), ((57.825, 483.42), (58.575, 499.195)), ((57.825, 499.2), (58.575, 499.95)), ((57.825, 499.95), (58.575, 514.95)), ((57.825, 514.95), (58.575, 515.7250200000001)), ((57.825, 515.72), (58.575, 531.47)), ((57.825, 531.47), (58.575, 532.22)), ((57.825, 532.22), (58.575, 547.245)), ((57.825, 547.25), (58.575, 548.0)), ((57.825, 548.0), (58.575, 563.75)), ((57.825, 563.75), (58.575, 564.5)), ((57.825, 564.5), (58.575, 595.275)), ((57.825, 595.28), (58.575, 596.03)), ((57.825, 596.02), (58.575, 611.045)), ((57.825, 611.05), (58.575, 611.8)), ((57.825, 611.8), (58.575, 627.55)), ((57.825, 627.55), (58.575, 628.3)), ((57.825, 628.3), (58.575, 643.3249999999999)), ((57.825, 643.33), (58.575, 644.08)), ((57.825, 644.07), (58.575, 659.845)), ((57.825, 659.85), (58.575, 660.6)), ((57.825, 660.6), (58.575, 675.6)), ((57.825, 675.6), (58.575, 676.35)), ((57.825, 676.35), (58.575, 692.125)), ((57.825, 692.13), (58.575, 692.88)), ((58.575, 113.35), (60.075, 128.375)), ((58.575, 129.13), (60.075, 144.88)), ((58.575, 145.63), (60.075, 160.655)), ((58.575, 161.4), (60.075, 177.175)), ((58.575, 177.17), (60.075, 192.92)), ((58.575, 193.67), (60.075, 209.445)), ((58.575, 209.45), (60.075, 225.2)), ((58.575, 225.95), (60.075, 241.725)), ((58.575, 241.72), (60.075, 257.47)), ((58.575, 258.22), (60.075, 273.995)), ((58.575, 274.0), (60.075, 289.775)), ((58.575, 290.52), (60.075, 306.27)), ((58.575, 306.27), (60.075, 322.04499999999996)), ((58.575, 322.8), (60.075, 337.8)), ((58.575, 338.55), (60.075, 354.325)), ((58.575, 355.07), (60.075, 370.07)), ((58.575, 370.82), (60.075, 386.59499999999997)), ((58.575, 387.35), (60.075, 402.375)), ((58.575, 403.13), (60.075, 418.88)), ((58.575, 418.88), (60.075, 434.655)), ((58.575, 435.4), (60.075, 451.15)), ((58.575, 451.15), (60.075, 466.92499999999995)), ((58.575, 467.67), (60.075, 483.42)), ((58.575, 483.42), (60.075, 499.195)), ((58.575, 499.95), (60.075, 515.725)), ((58.575, 515.72), (60.075, 531.47)), ((58.575, 532.22), (60.075, 547.995)), ((58.575, 548.0), (60.075, 563.75)), ((58.575, 564.5), (60.075, 595.275)), ((58.575, 596.02), (60.075, 611.795)), ((58.575, 611.8), (60.075, 627.55)), ((58.575, 628.3), (60.075, 644.0749999999999)), ((58.575, 644.07), (60.075, 659.845)), ((58.575, 660.6), (60.075, 676.35)), ((58.575, 676.35), (60.075, 692.125))] if abs(coord_list[j][1][0]- x1)< 2 and abs(coord_list[j][1][1]- y1)< 6 and way == 'v': x1, y1 = coord_list[j][1][0], coord_list[j][1][1] used_point.append(j)my code.but there are some questions:I found there is a problem with the logic in my code because the distance between y0 and the next coordinate’s y0 is continuously changing.
for example:
some coodidiates