Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

RE: Lat/Long distance calculator

by Fastolfe (Vicar)
on Nov 07, 2000 at 20:59 UTC ( [id://40356]=note: print w/replies, xml ) Need Help??

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);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://40356]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-19 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found