private Coord readCoordinates(String input) {
        Coord coor = null;

        //52.2299;21.0628
        if (input.matches("[-.0-9]*;[-.0-9]*")) {
            String[] s = input.trim().split(";");
            coor = new Coord(s[0], s[1]);
        }

        //52,2299;21,0628
        else if (input.matches("[-,0-9]*;[-,0-9]*")) {
            input = input.replace(',', '.');
            String[] s = input.trim().split(";");
            coor = new Coord(s[0], s[1]);
        }

        //www.openstreetmap.org/?lat=52.4075&lon=16.9315&zoom=13&layers=M
        else if (input.matches(".*lat=[-.0-9]*&lon=[-.0-9]*.*")) {
            String[] s = input.split("[#?&]");
            //JOptionPane.showMessageDialog(bSetCoor, s[1] + "----" + s[2]);
            String lat = "0", lon = "0";
            for (String i : s) {
                if (i.contains("lat")) {
                    lat = i.substring(4);
                }
                if (i.contains("lon")) {
                    lon = i.substring(4);
                }
            }
        }

        //{{Coord|52|14|5.15|N|21|7|51.91|E|region:PL}}
        else if (input.matches(".*[Kk]oordynaty|.*") || input.matches(".*[Cc]oord|.*")) {
            String[] s = input.split("\\|");
            if (s.length > 8) {    //długi
                String lat[] = { s[1], s[2], s[3] };
                String lon[] = { s[5], s[6], s[7] };
                coor = new Coord(lat, s[4], lon, s[8]);
            }
        }

        return coor;
    }