'Android: How to make Google Map Polyline smoother?

I'm using the latest Google Maps Android SDK:

implementation 'com.google.android.gms:play-services-maps:18.0.2'

This is my method for adding a Polyline to the map

return mMap.addPolyline(new PolylineOptions()
                .addAll(latLngs)
                .width(Globals.MAP_TRACK_WIDTH)
                .startCap(new RoundCap())
                .endCap(new RoundCap())
                .geodesic(true)
                .color(resources.getColor(R.color.light_green)));

The polylines seem to be very rugged and I'd like them smooth. Is this even possible?

enter image description here

I found a reference to Polyline Quality in the docs but I don't see this property available on Android. https://developers.google.com/maps/documentation/routes_preferred/reference/rest/Shared.Types/PolylineQuality

Any help appreciated!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source