src/main/java/de/dennisguse/opentracks/io/file/exporter/KMLTrackExporter.java
private void writePlacemark(String name, String category, String description, Location location, ZoneOffset zoneOffset) {
        if (location != null) {
            printWriter.println("<Placemark>");
            printWriter.println("<name>" + StringUtils.formatCData(name) + "</name>");
            printWriter.println("<description>" + StringUtils.formatCData(description) + "</description>");
            printWriter.println("<TimeStamp><when>" + getTime(zoneOffset, location) + "</when></TimeStamp>");
            printWriter.println("<styleUrl>#" + KMLTrackExporter.MARKER_STYLE + "</styleUrl>");
            writeCategory(category);
            printWriter.println("<Point>");
            printWriter.println("<coordinates>" + getCoordinates(location, ",") + "</coordinates>");
            printWriter.println("</Point>");
            printWriter.println("</Placemark>");
        }
    }
/**
     * Writes a placemark.
     *
     * @param name        the name
     * @param category    the category
     * @param description the description
     * @param location    the location
     */
Writes a placemark.
@param name        the name
@param category    the category
@param description the description
@param location    the location
Writes a placemark . @param name the name @param category the category @param description the description @param location the location
private void writePlacemark(String name, String category, String description, Location location, ZoneOffset zoneOffset) {
        if (location != null) {
            printWriter.println("<Placemark>");
            printWriter.println("<name>" + StringUtils.formatCData(name) + "</name>");
            printWriter.println("<description>" + StringUtils.formatCData(description) + "</description>");
            printWriter.println("<TimeStamp><when>" + getTime(zoneOffset, location) + "</when></TimeStamp>");
            printWriter.println("<styleUrl>#" + KMLTrackExporter.MARKER_STYLE + "</styleUrl>");
            writeCategory(category);
            printWriter.println("<Point>");
            printWriter.println("<coordinates>" + getCoordinates(location, ",") + "</coordinates>");
            printWriter.println("</Point>");
            printWriter.println("</Placemark>");
        }
    }
private void writePlacemark ( String name , String category , String description , Location location , ZoneOffset zoneOffset ) { if ( location != null ) { printWriter . println ( "<Placemark>" ) ; printWriter . println ( "<name>" + StringUtils . formatCData ( name ) + "</name>" ) ; printWriter . println ( "<description>" + StringUtils . formatCData ( description ) + "</description>" ) ; printWriter . println ( "<TimeStamp><when>" + getTime ( zoneOffset , location ) + "</when></TimeStamp>" ) ; printWriter . println ( "<styleUrl>#" + KMLTrackExporter . MARKER_STYLE + "</styleUrl>" ) ; writeCategory ( category ) ; printWriter . println ( "<Point>" ) ; printWriter . println ( "<coordinates>" + getCoordinates ( location , "," ) + "</coordinates>" ) ; printWriter . println ( "</Point>" ) ; printWriter . println ( "</Placemark>" ) ; } }
Writes a placemark.
Writes a placemark .