How to draw the route in google maps api (android)?

Hi, I have a question: how to build the set of coordinates (latitude and longitude) the route? Tell me what libs you can use.
PS I tried Libu "Google-Directions-Android" and I found there method to draw the route. (MB I'm just missing something)
June 5th 19 at 21:35
1 answer
June 5th 19 at 21:37
Solution
RectOptions PolylineOptions = new PolylineOptions()
.add(new LatLng(37.35, -122.0))//add point
.add(new LatLng(37.45, -122.0))
.add(new LatLng(37.45, -122.2))
.add(new LatLng(37.35, -122.2))
.add(new LatLng(37.35, -122.0));

Polyline polyline = myMap.addPolyline(rectOptions);

Find more questions by tags AndroidGoogle Maps