Distance between two peers

Posted on 2010-01-06
Last Modified: 2013-11-21
How to calculate distance between two peers using java..
i need sample source code...
Question by:sunda2010

    Expert Comment

    adfa  afa a a

    Author Comment

    send me the answer..
    LVL 23

    Expert Comment

    which distance you want to calculate. ?

    Author Comment

    i need to calculate distance between two host system. send me the implementations.
    LVL 25

    Accepted Solution

    Use the answer from here:
    to find the lat-long of each peer, then plug these values into the Haversine formula to find the distance:

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
    The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now