I want find the shortest path/route between multiple locations available.
i.e. suppose I have five locations A,B,C,D and E
, I want to find the nearest location (using route distance not normal distance).
Currently I am making 5 URL and calling Google Direction API
for result and comparing them. But it's long and time consuming process. Is there any alternative?
I also thought of using distanceTo()
and distanceBetween()
method but i think it doesn't show the route distance.
Any suggestions please....
Thanks