0
我有折線100的一個GeoJSON的文件, 如:如何使用座標計算兩點的距離?
{
"type":"MultiLineString",
"coordinates":
[
[
[73.970889292119,15.272263607379],
[73.970743508934,15.272184655773]
]
]
}
如何計算折線的距離公里或如何計算相同的傳單?
這 - https://stackoverflow.com/questions/31221088/how-to-calculate-the-distance-of-a-polyline-in- leaflet-like-geojson-io - 可能會幫助 –
請參閱https://stackoverflow.com/questions/33939754/layer-circumference-length-in-leaflet-js/33942460#33942460,但您可能需要進一步將其自定義爲適應'MultiLineString'。 – ghybs