HttpResponse res=WS.url(mapUrl+"/ag/coord/convert?from=0&to=4&x="+longitude+"&y="+latitude).get(); String x=new String(Base64.decode(res.getJson().getAsJsonObject().get("x").getAsString())); String y=new String(Base64.decode(res.getJson().getAsJsonObject().get("y").getAsString()));