我正在做一個項目,需要計算世界上不同城市之間的距離。我認爲谷歌地圖有一種方法,但我不知道如何在PowerShell中使用它。如何通過PowerShell計算不同城市之間的距離?
我從Get location (lat/long) from googlemap with address - Using powershell發現了一些新東西。
該問題的答案很有用,但我得到的座標不能直接用於計算距離。 我試圖使用[Single]
,[Int]
或[Double]
來更改數據類型。但它給了我錯誤Cannot convert the "System.Decimal" value of type "System.RuntimeType" to type "System.Double".
任何方法都可以轉換數據類型?
@wOxxOm現在有一個新的問題。數據類型不能更改。 – rock