您可以忽略DLL中的值吗?

时间:2019-06-06 15:41:40

标签: asp.net

在Grrr.Premium.Google.GoogleGeoCode中,将baseUrl设置为http://maps.googleapis.com/maps/api/geocode/,这是失败的,因为它必须是https。

是否可以修改下面的代码以忽略DLL中的值并在此处定义它?

            Grrr.Premium.Google.GoogleGeoCode encode = new Grrr.Premium.Google.GoogleGeoCode();
            encode.Query = "json?key=#######&address=" + Server.UrlEncode(txtAddress.Text.Trim() + " " + txtCity.Text.Trim() + " " + drpState.SelectedValue + " " + txtZip.Text);
            encode.GeoCode();

我觉得这一定是可能的,而且很容易,但是我无法弄清楚。 :(

在此先感谢您的帮助。

0 个答案:

没有答案