I'd like to suggest that the use of Indy be made optional in TWebGMapsGeocoding. In LaunchGeocoding(), I refactored the use of Indy into a protected/virtual method called FetchUrl():
function TWebGMapsGeocoding.FetchUrl(Url: string): string;
var
IdHttp:tidHTTP;
begin
IdHTTP := TIdHTTP.Create(Self);
try
Result := IdHttp.Get(Url);
finally
FreeAndNil(IdHttp);
end;
end;
var
IdHttp:tidHTTP;
begin
IdHTTP := TIdHTTP.Create(Self);
try
Result := IdHttp.Get(Url);
finally
FreeAndNil(IdHttp);
end;
end;
This way I can override it and fit it into my overall application architecture better (which has it's own checks around any use of HTTP, and uses WinInet). Thanks for consideration.
--Troy