public void GetReverseAddress(string latLng, params RequiredData[] need) { string s = ""; need.ToList().ForEach(o => s += o.ToString() + ","); s = s.Trim(','); asked = s.Split(',').ToList(); if (asked == null) { asked = new List <string>(); } Dictionary <string, object> data = new Dictionary <string, object>() { { "latlng", latLng }, { "language", "en" }, { "key", _googleGeocodeApiKey } }; //MyDebug.Log("Calling api"); ExecuteURLParameters option = new ExecuteURLParameters() { url = baseUrl, method = WebMethod.GET, isMultipart = false, postData = data, callback = Returndata }; _webData.ExecuteURL(option); }
public void GetPublicIPAddress() { if (Net.Network.IsInternetConnection()) { wd.ExecuteURL(new ExecuteURLParameters() { url = "http://checkip.dyndns.org", timeOut = 10000, method = WebMethod.GET, callback = GetPublicIPResposne }); } else { OnPublicIPFail("No Internet Connection Available"); } }