code: public void populateLineString(LineString lineString, List<LatLng> latLngs) {
  
          for (LatLng latLng : latLngs) {
              Point point = toPoint(latLng, lineString.hasZ(), lineString.hasM());
              lineString.addPoint(point);
          }
      }
docs: Convert a list of {@link LatLng} to a {@link LineString}
  
  @param lineString line string
  @param latLngs    lat lngs