如何将Android Google自动填充API限制为仅获取火车站 [英] How to restrict Android Google autocomplete API to only get Train Stations
问题描述
尽管有很多关于如何将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屋!