Cannot open URL using TTMSFNCGeocoding component

Hi,

I am using the component TTMSFNCGeocoding and I got the error below:

Cannot open URL https://maps.googleapis.com/maps/api/geocode/json?key=AIzaSyAFAlyr9iUKpG_dlrPubRaef6zOEX8Zhmc&address=Baker%20Street%2C%20London&language=

The program:

procedure TForm1.Button1Click(Sender: TObject);
var
Item: TTMSFNCGeocodingItem;
begin
TMSFNCGeocoding.GetGeocoding('Baker Street, London',
procedure(const ARequest: TTMSFNCGeocodingRequest; const ARequestResult: TTMSFNCCloudBaseRequestResult)
begin
if (ARequestResult.Success) and (ARequest.Items.Count > 0) then
begin
Item := ARequest.Items[0];
ShowMessage(Format('Lat: %s Lon: %s', [Item.Coordinate.Latitude.ToString,
Item.Coordinate.Longitude.ToString]));
end;
end
);
end;

Looking at the Google Map Services all services are enabled and I do not know the problem.

Putting the URL https://maps.googleapis.com/maps/api/geocode/json?key=AIzaSyAFAlyr9iUKpG_dlrPubRaef6zOEX8Zhmc&address=Baker%20Street%2C%20London&language= on web browser directly it is show the data correctly.

What's wrong?

Regards

Hi,

Your sample is working as expected when tested here.
Are you running any other software on your machine that might prevent the application from executing http requests?

Hi,

This is true. Testing in another network works perfectly.

Thank you