I'm trying to make a request
in C # using the package RestSharp
, to obtain geolocation information by passing the zip. The request
looks like this:
RestClient client = new RestClient("https://maps.googleapis.com/maps/api/geocode/json?address=" + cep + "&key=" + key);
RestRequest request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
But I only get TimeOut
.
The strange thing is that if I run this URL in my browser, I get results.
Can anyone help me please?