code: public static void toGeojsonLineString(LineString lineString, StringBuilder sb) {
          sb.append("{\"type\":\"LineString\",\"coordinates\":");
          toGeojsonCoordinates(lineString.getCoordinates(), sb);
          sb.append("}");
      }
docs: Coordinates of LineString are an array of positions.
  
  Syntax:
  
  { "type": "LineString", "coordinates": [ [100.0, 0.0], [101.0, 1.0] ] }
  
  @param lineString
  @param sb