Tag: google maps api 3

使用C#中的Google Maps API和SSIS包获得行驶距离

更新:找到Google distancematrix并尝试相应地修改我的代码。 我在这里得到一个无效的参数错误: return new GeoLocation(dstnc, uri.ToString()); } catch { return new GeoLocation(0.0, “https://”); } 基本上,我需要从两个已知的纬度/长度获得行驶距离。 我正在使用SSIS包,我在网上发现了一个很棒的教程,非常接近于产生我需要的结果。 教程: http : //www.sqlmusings.com/2011/03/25/geocode-locations-using-google-maps-v3-api-and-ssis/ 他们正在做的是将已知的街道地址传递给Google并从返回的XML中读取lat / long。 我需要做的不同的是传递两个已知的纬度/长度并读取返回的距离。 示例: https : //maps.googleapis.com/maps/api/distancematrix/xml?origins=32.1576780,%20-82.9070920&destinations=27.6536997,%20-81.5158944&mode=driving&units=imperial&sensor=false 他们使用C#,我不熟悉如何进行修改。 无论如何我还是刺了一下这就是我想出来的: using System; using System.Collections.Generic; using System.Text; //added these using System.Data; using System.Net; using System.Web; using System.Xml; // THIS CODE AND INFORMATION ARE PROVIDED “AS […]

最近的邮政编码搜索使用asp.net

我想提供搜索邮政编码的function,如果用户输入任何邮政编码,将显示接近输入的邮政编码的所有邮政编码。 如果有任何免费API,请通知Google API或任何其他解决方案。