在不使用确切地址的情况下获取Geocoordinates [英] Getting Geocoordinates Without using exact address

查看:125
本文介绍了在不使用确切地址的情况下获取Geocoordinates的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

使用内置的GeocodeQuery方法查找搜索字词似乎只能使用确切的地址,但不能使用感兴趣的地方。例如,使用"多伦多,加拿大"和"加拿大多伦多"。将返回结果,但使用"帝国大厦"
将不会返回任何结果。有没有办法在地理坐标中查找搜索字词,就像在Bing Maps / Google Maps中输入它一样,而无需输入确切的地址?

It seems that using the built-in GeocodeQuery method to look up a search term only works with an exact address, but not with places of interest. For example using "Toronto, Canada" would return results, but using "Empire State Building" would return no results. Is there a way to look up the geocoordinates for a search term the same way you could enter it in Bing Maps / Google Maps without having to enter an exact address?

谢谢!

编辑:稍后搜索一下,是不是GeocodeQuery根本不支持这种类型的查询?如果我要搜索一个术语,好像我在网上搜索一样,唯一的解决方案是使用Bing REST服务等许可服务,它会产生XML
响应并且与Windows Phone没有很好的集成?

some searching later, is it that GeocodeQuery simply will not support this type of query? If I were to search a term as if I were searching on the web, might the only solution is to use licensed services like Bing REST Services, which produces a XML response and is not well integrated with Windows Phone?

推荐答案

我相信你是对的。 GeocodeQuery只能转换地址(和地址子集),而不能转换感兴趣的地方。要查找感兴趣的地方,您需要使用外部API,例如Bing Maps REST服务。

I believe you're correct. The GeocodeQuery can convert only addresses (and subsets of addresses), not places of interest. To find places of interest you'll need to use an external API such as the Bing Maps REST services.

- Rob


这篇关于在不使用确切地址的情况下获取Geocoordinates的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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