在谷歌地图搜索输入中建议列表
我们需要创建像 _http://maps.google.com 上一样的搜索输入字段 关键功能是提供适当结果的建议列表。我们 API中没有找到这个功能。
分析maps.google.com,我们看到收到了建议列表 从 get 请求到此 url https:// /maps-api-ssl.google.com/maps/suggest?q=%D0%BC%D0%BE%D1%81&cp=... 有很多参数,包括来自搜索字段的数据。这得到 请求返回我们的建议列表。
是否有可能根据我们的数据需求使用此 url。或者 我们怎样才能用其他方式做到这一点。
与我们的需求类似:_http://cdn.michaelhart.me/mh/instant/maps/
We need to create search input field like it is on _http://maps.google.com
The key functionality is suggest list with appropriate results. We
have not found this feature in API.
Analyzing maps.google.com we see that suggest list is received
from get request to this url
https://maps-api-ssl.google.com/maps/suggest?q=%D0%BC%D0%BE%D1%81&cp=...
There are many parameters, including data from search field. This get
request returns our suggest list.
Is there a possibility to use this url in our needs with our data. Or
how can we make it in some other way.
Similar to our needs: _http://cdn.michaelhart.me/mh/instant/maps/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看看这个:
http://tech.cibul.net/geocode-with-google-地图-api-v3/
check this out:
http://tech.cibul.net/geocode-with-google-maps-api-v3/
理论上,您不应该使用maps-api-ssl.google.com/maps/suggest,因为它可能不合法。我发现了谷歌员工的这句话:
“像这样的端点被谷歌地图使用,但没有记录为
Maps API 的一部分应被视为私有接口。
因此,使用这些端点违反了条款
服务。此外,您可能拥有的任何现有 API 凭证都是
与这些端点完全无关,因为它们没有得到服务
通过 API 基础设施'
Theoretically you shouldn't use maps-api-ssl.google.com/maps/suggest as it might not be legal. I found this quote from google employee:
'Endpoints like this that are used by Google Maps but not documented as
part of the Maps API should be considered private interfaces.
Consequently use of those end points is a breach of the Terms of
Service. In addition any existing API credentials you may have are
completely unrelated to these end points because they are not served
by API infrastructure'