0

我需要使用geographiclib找出经度和纬度距离

它给出了这种类型的错误:

错误:一元操作数类型错误 -: 'str'

Geo = Geodesic.WGS84
for i in range(0, 2112):
    Lat1=df3['Lat'].iloc[i]
    Long1=df3['Long'].iloc[i]
    Lat2=df3['Lat'].iloc[i+1]
    Long2=df3['Long'].iloc[i+1]
    df3['dis'] = Geo.Inverse( Lat1, Long1, Lat2, Long2)
4

0 回答 0