如何将Android Google自动填充API限制为仅获取火车站 [英] How to restrict Android Google autocomplete API to only get Train Stations

查看:68
本文介绍了如何将Android Google自动填充API限制为仅获取火车站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽管有很多关于如何将API限制为仅特定国家/地区的答案,但找不到有关将其限制在火车站的任何信息.请帮我解决这个问题.谢谢.

Although there are many answers on how to restrict the API to only a specific country, couldn't find anything regarding restricting it to the train stations. Please help me out on this. Thanks.

推荐答案

我认为目前API不支持此功能.

I think this is not supported in the API at the moment.

我可以在Places API Web服务中看到启用此功能的功能请求:

I can see a feature request to enable this feature in Places API web service:

https://issuetracker.google.com/issues/35820774

我建议对Android自动完成的Places API提交相同的功能请求.

I would suggest filing the same feature request for Places API for Android autocomplete.

您还可以在Android和iOS中看到类似的PlacePickers功能请求:

You can also see similar feature requests for PlacePickers in Android and iOS:

https://issuetracker.google.com/issues/35826944

https://issuetracker.google.com/issues/35830469

这篇关于如何将Android Google自动填充API限制为仅获取火车站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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