public Location getLocation(String str) {
        InetAddress addr;
        try {
            addr = InetAddress.getByName(str);
        } catch (UnknownHostException e) {
            return null;
        }

        return getLocation(addr);
    }
public Location getLocation ( String str ) { InetAddress addr ; try { addr = InetAddress . getByName ( str ) ; } catch ( UnknownHostException e ) { return null ; } return getLocation ( addr ) ; }
for GeoIP City only