GMap.NET获取经纬度

GMap.NET get longitude and latitude

第一次使用 GMaps.NET 卡在了一部分。

我有一个地址列表,我需要获取其经度和纬度,但我不确定如何去做。

所以我需要从“111 Test Street, Example City, Earth”转到-123,55。

我尝试使用GMap.NET.GeocodingProvider;但没有用。

非常感谢任何帮助!

已解决以防其他人遇到同样的问题。

我刚刚向 google 发送了一个网络请求,它满足了我的需求。

        var request = WebRequest.Create("http://maps.googleapis.com/maps/api/geocode/json?address=" + address +" +View,+CA&sensor=true_or_false");
        var response = (HttpWebResponse)request.GetResponse();
        request.ContentType = "application/json; charset=utf-8";