谷歌地图地理code API只返回页首6.结果...我如何获得更多? [英] Google Map Geocode API returns only top 6 results...How do I get more?

查看:140
本文介绍了谷歌地图地理code API只返回页首6.结果...我如何获得更多?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下URI的从C#类连接到谷歌的API。我离开了,我现在遇到了麻烦,在它作为一个例子地址。

I am using the following uri's to connect to Google Api from a C# class. I left the address that I am currently having trouble with in it as an example.

http://maps.googleapis.com/maps/api/geo$c$c/xml?address=Mt%20Vernon&sensor=false

http://maps.googleapis.com/maps/api/geo$c$c/xml?address=Mt%20Vernon,%20IN&sensor=false

第一个链接只返回这似乎是前6名的结果。第二个环节是结果我真的需要。我知道我可以强制用户提供的状态,但我下的要求是明确的,只有城市需要输入。

The first link only returns what appears to be the top 6 results. The second link is the result I actually need. I understand that I can force the user to supply the state, but the requirements that I am under are explicit that only the city need be entered.

我已经寻找一种方式来增加结果集无济于事。在这一点上我要寻找的短期切换到一些其他服务的任何想法(这我不反对如果谷歌确实有这短短的推出)。

I have searched for a way to increase the result set to no avail. At this point I am looking for any ideas short of switching to some other services (which I am not opposed to if google, indeed has this short coming).

感谢力所能及的帮助,你也许能提供。

Thanks for whatever help you might be able to provide.

推荐答案

如果您包括在美国的搜索参数,山。印第安纳州弗农结果包括:

If you include USA in your search parameter, the Mt. Vernon result from Indiana is included:

http://maps.googleapis.com/maps/api/geocode/xml?address=Mt%20Vernon,USA&sensor=false

不知道是否可以帮助任何,因为它可能有一个不同的查询不同的行为,但它确实满足了原来的问题。

Not sure if it helps any, since it may have a different behavior with a different query, but it does satisfy the original issue.

这篇关于谷歌地图地理code API只返回页首6.结果...我如何获得更多?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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