1. Are you ready for the Galaxy S20? Here is everything we know so far!

Find the distance between 2 Latitudes and Longitudes ?

Discussion in 'Android Development' started by Arthur Andy, Sep 8, 2011.

  1. Arthur Andy

    Arthur Andy Newbie
    Thread Starter

    Hi,

    Below is the code to find distance between 2 Latitudes and Longitudes. But it is not working proper way.

    ////////////////////////////////

    public double lanLatDistance(double oldlan, double oldlat,
    double plan, double plat) {
    double R = 6371; // earth
     



    1. Download the Forums for Android™ app!


      Download

       
  2. Shocker_33

    Shocker_33 Member

    androidforums
     
    #2 Shocker_33, Sep 8, 2011
    Last edited: Nov 24, 2017
  3. JiMMaR

    JiMMaR Android Enthusiast

    please use the
    Code (Text):
    1.  tag .. reading like this gives me headache >.<
    2.  
    3. try checking this
    4.  
    5. [URL="http://bit.ly/r7eyoO"] http://bit.ly/r7eyoO[/URL]
     
Loading...
Similar Threads - Find distance between
  1. RVDowning
    Replies:
    7
    Views:
    314
  2. Anarchy 2021
    Replies:
    0
    Views:
    178
  3. Ethan_the_axolotl
    Replies:
    4
    Views:
    181
  4. billdz
    Replies:
    3
    Views:
    360
  5. fret_wimp2
    Replies:
    2
    Views:
    349
  6. Artem Polovin
    Replies:
    0
    Views:
    441
  7. zepking
    Replies:
    5
    Views:
    343
  8. Ripp
    Replies:
    5
    Views:
    480
  9. Cao Van Thanh
    Replies:
    1
    Views:
    347

Share This Page

Loading...