从 BingMap 中的经度和纬度获取位置名称
我是一名 WP7 开发人员。我有一个位置的经度和纬度。无论如何,是否可以获取坐标定义的位置信息,即经度和纬度。 谢谢你!!
I am a WP7 developer. I have longitude and latitude of a location. Is there anyway to get the info the location defined by the coordinate ie longitude and latitude.
Thank you!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,您可以通过 Bing 地图 REST API 执行此操作,您需要执行反向地理编码。这是通过 GET 执行以下请求来完成的:
它将返回 XML 格式的地址:
Yes, you can do this via the Bing Maps REST API, you need to perform a reverse geocode. This is done by GET-ing the following request:
Which will return the address in XML format:
您可以利用 Microsoft 提供的 Web 服务,根据您提供的纬度和经度返回城市、州和国家/地区。
通过提供链接 http://msrmaps.com/TerraService2.asmx 在项目中创建 Web 服务引用
我已将该服务命名为 myTerraService
You can make use of a web service provided by Microsoft that returns the city, state and country based on the latitude and longitude you provide.
Create a web service reference in your project by providing the link http://msrmaps.com/TerraService2.asmx
I have named the service as myTerraService
看看 http://www.dizzey.com/development/net/getting-started-windows-phone-7-getting-location-reverse-geocoding-weather/
take a look at http://www.dizzey.com/development/net/getting-started-windows-phone-7-getting-location-reverse-geocoding-weather/