Visual Studio 2010中通过经度和纬度冰地图地点查找器 [英] Visual studio 2010 Bing Map location finder by longitude and latitude

查看:188
本文介绍了Visual Studio 2010中通过经度和纬度冰地图地点查找器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个Windows 7的手机应用程序通过位置的名称搜索位置而干练。现在我的问题是,我无法找到当前位置与地图冰无法搜索位置。

I am creating a windows 7 phone application which able to search for location by name of location. Now my problem is that i can't locate the current location and the bing map is unable to search for the location.

我使用Visual Studio 2010升C编码。

I am using visual studio 2010 c sharp coding.

推荐答案

您可以使用兵的位置API 检索的纬度和经度按名称指定的位置。有一个REST API,它可以提供JSON或XML响应,也有一个SOAP API(只是通过文档浏览,找到SOAP API参考)。例如,该请求通过在美国街道确实为位置信息的查询:

You can use the Bing Locations API to retrieve the latitude and longitude of a location specified by name. There is a REST API that can provide responses in JSON or XML and there is also a SOAP API (just navigate through the docs to find the SOAP API reference). For example, this request does a lookup for location information by street in the US:

http://dev.virtualearth.net/REST/ V1 /位置/美国/ WA / 98052 /微软/ 1 Microsoft方法O = XML和放大器;关键= BingMapsKey

要开始工作Bing地图REST服务,你必须有一个Bing地图密钥。为了得到一个Bing地图键,看看这篇文章

To start working with the Bing Maps REST Services, you must have a Bing Maps Key. To get a Bing Maps Key, take a look at this article.

这篇关于Visual Studio 2010中通过经度和纬度冰地图地点查找器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆