public Location nextLocation() {
        try {
            List<String> els = inFile.readLine();
            
            if (els.size() >= 3) { 
                String name = els.get(0);
                double x    = Double.parseDouble(els.get(1));
                double y    = Double.parseDouble(els.get(2));
            
                Location loc = new Location(name, x, y, locType);
                return loc;
            } else {
                closeFile();
                return null;
            }
            
        } catch (IOException ex) {
            //Logger.getLogger(ReadLocationsFile.class.getName()).log(Level.SEVERE, null, ex);
            closeFile();
            return null;
        } catch (NumberFormatException ex) {
            closeFile();
            Logger.getLogger(ReadLocationsFile.class.getName()).log(Level.WARNING, null, ex);
            return null;
        }
    }