title: Android maps trace a route with symbols
body: <p>I have to do this map in android, but i cant find a way for draw a polygon with icons and take the direction automatically</p>
  
  <p><a href="https://i.stack.imgur.com/fCsuq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fCsuq.jpg" alt="enter image description here"></a></p>
  
  <p>This the code using javascript that i need to write in Java:</p>
  
  <pre><code>var lineSymbol = {
    path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW
  };
  lineas = new google.maps.Polyline({
      path: ruta,
      map: GMap,
      icons: [{
          icon: lineSymbol,
          repeat:'60px',
          offset: '50%'
      }],
      strokeColor: color,
      strokeWeight: 2,
      strokeOpacity: 1,
      geodesic:true
  });
  </code></pre>