NGeo GeoNames 的 .NET 开发包

NGeo 使得在 .NET 应用程序中调用 GeoNames和 Yahoo! GeoPlanet / PlaceFinder 服务变得更加容易。你不再需要编写自己的GeoNames或GeoPlanet客户端。它是在ASP.NET 4.0中开发的,并使用WCF ServiceModel库将JSON数据反序列化为Plain Old C# Objects。

示例代码:

using (var geoNamesClient = new NGeo.GeoNames.GeoNamesClient())
{
    var toponym = geoNamesClient.Get(6295630, \"demo\"); // replace with your own username
    // do something with the data
}

© 版权声明
THE END
喜欢就支持一下吧
点赞468 分享
Don’t let your dreams be dreams.
不要让你的梦想只是想想而已