• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

Distance between two peers

How to calculate distance between two peers using java..
i need sample source code...
0
sunda2010
Asked:
sunda2010
1 Solution
 
senthilnathanrCommented:
adfa  afa a a
0
 
sunda2010Author Commented:
send me the answer..
0
 
cmalakarCommented:
which distance you want to calculate. ?
0
 
sunda2010Author Commented:
i need to calculate distance between two host system. send me the implementations.
0
 
InteractiveMindCommented:
Use the answer from here:
http://www.experts-exchange.com/Programming/Languages/Java/Q_25026660.html
to find the lat-long of each peer, then plug these values into the Haversine formula to find the distance:
http://en.wikipedia.org/wiki/Haversine_formula
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now