class ProtectedPlanetImporter {

    protected static GeoCoordinate extractSingleCoordinate(String kmlString) {
        try {
            String removedKml = kmlString.replaceAll("<[^>]*>", " ");
            String[] splitPairs = removedKml.split(" ");
            Set<GeoCoordinate> coordinates = new HashSet<>();
            for (String pair : splitPairs) {
                if (pair.length() > 0) {
                    String[] latitudeLongitudeString = pair.split(",");
                    double lat = Double.parseDouble(latitudeLongitudeString[1]);
                    double lng = Double.parseDouble(latitudeLongitudeString[0]);
                    coordinates.add(new ImmutableGeoCoordinate(lat, lng));
                }
            }
            return GeoUtils.getMidpoint(coordinates);
        } catch (Exception e) {
            LOGGER.error("Could not parse KML ({}): {}", e.getMessage(), kmlString);
            return null;
        }
    }

    public  ProtectedPlanetImporter(LocationStore locationStore, ProgressReporter progressReporter);

}