class GeonamesLocationSource extends SingleQueryLocationSource {

    static List<Location> parseLocations(Document document) {
        checkError(document);
        List<Location> result = new ArrayList<>();
        List<Node> geonames = XPathHelper.getNodes(document, "//geoname");
        for (Node node : geonames) {
            Location location = parseLocation(node);
            result.add(location);
        }
        return result;
    }

    @Deprecated public  GeonamesLocationSource(String username);
    public  GeonamesLocationSource(String username, boolean retrieveHierarchy);

}