title: Drawing the route on static google static map image in java
body: <p>I am using the jframe in my application to show google maps. </p>
  
  <p>When I want to show the route between the locations, I do like, I get the direction co-ordinates using the direction API URL like:</p>
  
  <p>"<a href="https://maps.googleapis.com/maps/api/directions/json?origin=Kundalahalli,+Bengaluru,+Karnataka&amp;destination=Marathahalli,+Bengaluru,+Karnataka&amp;alternatives=true&amp;key=[API_KEY]" rel="nofollow">https://maps.googleapis.com/maps/api/directions/json?origin=Kundalahalli,+Bengaluru,+Karnataka&amp;destination=Marathahalli,+Bengaluru,+Karnataka&amp;alternatives=true&amp;key=[API_KEY]</a>" </p>
  
  <p>And I plot the JSON response on static map API like:</p>
  
  <p>"<a href="https://maps.google.com/maps/api/staticmap?&amp;size=640x640&amp;path=geodesic:true|color:0x0000ff|weight:5|12.9709684,77.7142173|12.9709056,77.71226659999999|12.9558971,77.71483429999999|12.956154,77.6939043|12.9568557,77.6975092|12.9569979,77.69752029999999|12.9571073,77.6971808" rel="nofollow">https://maps.google.com/maps/api/staticmap?&amp;size=640x640&amp;path=geodesic:true|color:0x0000ff|weight:5|12.9709684,77.7142173|12.9709056,77.71226659999999|12.9558971,77.71483429999999|12.956154,77.6939043|12.9568557,77.6975092|12.9569979,77.69752029999999|12.9571073,77.6971808</a>"</p>
  
  <p>The image I am getting has straight lines and are inappropriate to my application. 
  I want the output be like similar to the one we get in Google-maps. And the requirement is that this should be achieved in java.</p>
  
  <p>help me in solving this, Thanks in advance.</p>