NGeo makes it easier to invoke GeoNames and Yahoo! GeoPlanet / PlaceFinder services in .NET applications.
示例代码:
using (var geoNamesClient = new NGeo.GeoNames.GeoNamesClient()) { var toponym = geoNamesClient.Get(6295630, "demo"); // replace with your own username // do something with the data }