Help for this page

Select Code to Download


  1. or download this
    # To calculate the distance between London (51.3N 0.5W) 
    # and Tokyo (35.7N 139.8E) in kilometers: 
    ...
      @T = (deg2rad(139.8),deg2rad(90 - 35.7));
    
      $km = great_circle_distance(@L, @T, 6378);