RosettaCodeData/Task/Haversine-formula/PowerShell/haversine-formula-1.ps1
2026-04-30 12:34:36 -04:00

6 lines
212 B
PowerShell

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