1. Download our Official Android App: Forums for Android!

Apps How to find shortest distance between the points on google map using google map api

Discussion in 'Android Development' started by shri_r, Apr 7, 2011.

  1. shri_r

    shri_r Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    9
    Joined:
    Mar 9, 2011

    Mar 9, 2011
    9
    0
    5
    Hi...Actually i added google map to my android app, now i need to add perticular points(persons) on it, and need to find the shortest distance between among the points(persons) on google map, using google map api.. please tell me how to do that.Thanks in advance :)

    Regards

    Shree:)
     

    Advertisement

  2. JamTheMan

    JamTheMan Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    136
    Joined:
    Dec 16, 2010

    You could use the built in Location class, to handle it for you, like this:

    Code (Text):
    1.  
    2. personALocation.distanceTo(personBLocation);
    3.  
     
    shri_r likes this.
  3. shri_r

    shri_r Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    9
    Joined:
    Mar 9, 2011

    Mar 9, 2011
    9
    0
    5
    Hello..
    How to get latitude and longitude of person dynamically form google server??.
    Actually i am able to get the location of person on google map, with hard coded latitude and langitude values. Now i am trying to get the latitude and longitude dynamically, from the google server, depending on user location on earth, to get user identification on map. Please tell me how to that..
    Thanks in advance :)

    Regards
    Shreedhar :)
     

Share This Page

Loading...