我正在做一个项目,需要计算世界上不同城市之间的距离。我认为谷歌地图有一种方法,但我不知道如何在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