擅长:python、mysql、java
<p>在<code>comments</code>之后,我从<a href="https://gis.stackexchange.com/questions/12120/calculate-midpoint-from-a-series-of-latitude-and-longitude-coordinates">HERE</a>接收并评论</p>
<p>使用<code>close to each other</code>坐标,可以将地球视为局部平坦,只需像平面坐标一样找到质心。然后你只需要取纬度的平均值和经度的<code>average</code>就可以找到<code>centroid</code>的<code>latitude</code>和<code>longitude</code>。</p>
<pre><code>lat = []
long = []
for l in L :
lat.append(l[0])
long.append(l[1])
sum(lat)/len(lat)
sum(long)/len(long)
-74.07461283333332, 40.76800886666667
</code></pre>