RosettaCodeData/Task/Haversine-formula/PowerShell/haversine-formula-1.psh
2016-12-05 22:15:40 +01:00

6 lines
212 B
Text

Add-Type -AssemblyName System.Device
$BNA = New-Object System.Device.Location.GeoCoordinate 36.12, -86.67
$LAX = New-Object System.Device.Location.GeoCoordinate 33.94, -118.40
$BNA.GetDistanceTo( $LAX ) / 1000