gpt4 book ai didi

c# - Visual Studio 2010 Bing map 按经度和纬度查找位置

转载 作者:行者123 更新时间:2023-11-30 22:39:27 25 4
gpt4 key购买 nike

我正在创建一个能够按位置名称搜索位置的 Windows 7 手机应用程序。现在我的问题是我无法定位当前位置,bing map 也无法搜索位置。

我正在使用 visual studio 2010 c sharp 编码。

最佳答案

您可以使用 Bing Locations API检索由名称指定的位置的纬度和经度。有一个 REST API 可以提供 JSON 或 XML 格式的响应,还有一个 SOAP API(只需浏览文档以找到 SOAP API 引用)。例如,此请求按美国街道查找位置信息:

http://dev.virtualearth.net/REST/v1/Locations/US/WA/98052/Redmond/1 Microsoft Way?o=xml&key=BingMapsKey

要开始使用 Bing Maps REST 服务,您必须拥有 Bing Maps Key。要获得 Bing map key ,请查看 this article .

关于c# - Visual Studio 2010 Bing map 按经度和纬度查找位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5698014/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com