title: How to find optimal route between two points on google map and then highlight it?
body: <p>Suppose I have two geolocations(points) on google map,now I want to highlight an optimal route between these two points through different cities.How can I do this ? I have searched on internet and found <a href="https://stackoverflow.com/questions/2176397/drawing-a-line-path-on-google-maps">Drawing a line/path on Google Maps</a> but this explains drawing a straight line between two points.I need to find route connecting different cites and at least the places which come in between two points.not a straight line.Can anyone give me some goodd tutorial or some idea how to do that ?</p>
  
  <p>Answer: If any other person is facing same problem please see the accepted answer.To implement optimal route refer to <a href="http://csie-tw.blogspot.com/2009/06/android-driving-direction-route-path.html" rel="nofollow noreferrer">http://csie-tw.blogspot.com/2009/06/android-driving-direction-route-path.html</a> This is an excellent tutorial with working codes.You can modify them according to your need.And one more thing,while testing please give only those coordinates for which paths are possible(mistake that I was doing).Rest is all fine.Go ahead with the codes.Thanks.</p>