public float parseToKilometers(final String distanceText) throws NumberFormatException {
        return toKilometers(Float.parseFloat(distanceText.replace(',', '.')));
    }
Parses a distance string {@code distanceText} representing distance to kilometers
@throws NumberFormatException if the given string is not numeric
main/src/main/java/cgeo/geocaching/location/DistanceUnit.java