import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import java.io.IOException;

public class ResourceFetcher {

    public static String getDescription(String url) {

        String Descripcion = "http://api.screenshotmachine.com/?key=4c2f50&size=E&format=JPG&cacheLimit=0&timeout=0&cacheLimit=14&url=" + url;

            return Descripcion;
    }

    public static String getQrCodeURL(String url) {

        String TheUrl = "http://api.qrserver.com/v1/create-qr-code/?data=" + url + "&size=150x150&color=0-0-0&bgcolor=FFFFFF&format=png";
            return TheUrl;
    }


    public static String json_to_java(String ip)  {

        String URL = "http://ipinfo.io/"+ ip +"/country";

        Document doc = null;
        try {
            doc = Jsoup.connect(URL).get();
        } catch (IOException e) {
            e.printStackTrace();
        }
        String country_code = doc.data();
        return country_code;
    }


    public static String flag(String ip) {

        String link_flag= "https://ipfind.co/flags?ip="+ip+"&auth=d9cec36e-01af-4d43-9452-e5cb08eab33e";

        return link_flag;
    }
    //public static String getCountryFromIP(String ip) return "Dom Rep";


}
@@ -1,24 +1,82 @@
+import JSONTools.GeoLocation;%0Aimport org.json.JSONObject;%0A
 import org.jsoup.Jsoup;%0A
@@ -1245,10 +1245,639 @@
  Rep%22;%0A%0A
+    public static GeoLocation GetCoordinates(String ip)%7B%0A%0A        String URL = %22http://freegeoip.net/json/%22 + ip;%0A%0A        GeoLocation geo = null;%0A%0A        try %7B%0A            JSONObject obj = new JSONObject(Jsoup.connect(URL).get());%0A%0A            geo = new GeoLocation(obj.getJSONObject(%22longitude%22).toString(), obj.getJSONObject(%22latitude%22).toString());%0A%0A        %7D catch (IOException exp)%7B%0A            System.out.println(%22%5Cn%5CnIO Resource ERROR --%3E %22 + exp.getMessage());%0A        %7D catch (Exception exp)%7B%0A            System.out.println(%22%5Cn%5Cn General Resource ERROR --%3E %22 +  exp.getMessage());%0A        %7D%0A%0A        return geo;%0A    %7D%0A
 %0A%7D

Create C=GetCoordinates class in ResourceFetcher