Search This Blog

Monday, 12 December 2016

ad

  string strLatitute = e.lat.ToString();
            string strLongitute = e.lng.ToString();
            //string locationUrl = "http://api.openweathermap.org/data/2.5/weather?lat="+ strLatitute +"&lon="+ strLongitute + "&appid=b631adf3653df30af9ce66a72cf9b6de";



            string strNewsLocationUrl = "https://maps.googleapis.com/maps/api/geocode/json?latlng="+strLatitute+","+strLongitute+"&key=AIzaSyBkimSBhY8b1SQKeXWitEJ7ntCOVIl6uUw";

            HttpClient objHttpClient = new HttpClient();
            var locationDetails =await objHttpClient.GetStringAsync(strNewsLocationUrl);
            var Locations = JsonConvert.DeserializeObject<AddressModel>(locationDetails.ToString());

No comments:

Post a Comment