【问题标题】:Latitude and Longitude to Place name or City in .NET.NET 中地名或城市的纬度和经度
【发布时间】:2012-08-08 11:04:47
【问题描述】:

我有一组纬度和经度值(以及大地基准?)。我想用这些来获得地名或城市。在 .NET 中有没有办法做到这一点?

谢谢,

萨钦

【问题讨论】:

标签: .net geolocation latitude-longitude


【解决方案1】:

它的名称是反向地理编码。这种服务有很多供应商。一个是谷歌。看看他们的开发者部分:

Google Reverse Geocoding

您只需格式化所需的 URL 并使用 Net.WebClient 下载 Json:

Using client As New Net.WebClient()
   Return client.DownloadString(address)
End Using

然后您需要parse the Json 数据来提取街道名称

【讨论】:

    【解决方案2】:

    您必须使用网络服务。 Geonames 就是这样一种免费来源。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-04
    • 2014-06-01
    • 1970-01-01
    • 2013-12-09
    • 1970-01-01
    相关资源
    最近更新 更多