I am new bie to android development,some how I am able to load googlemap in android using MapView ,
Now I want to find distance between two geopoints .
For that I found that it can be done
using json API (Directions Service )
but not able to get url from Api ,which is the best approach to draw path between two places?( including the time distance between places).....
I am following this link as reference http://javapapers.com/android/draw-path-on-google-maps-android-api/ but its not working for me ...
First, you can find straight distance using:
Second, in order to find the time it takes, I would suggest using Google Places API. Super easy to use and free
EDIT: Additional details for google places api (which will indeed give you a poly line which you can easily overlay onto your map)
Polyline code: