How to restrict Android Google autocomplete API to only get Train Stations

﹥>﹥吖頭↗ 提交于 2019-12-04 04:10:23

问题


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.


回答1:


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

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

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

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

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



来源:https://stackoverflow.com/questions/46292779/how-to-restrict-android-google-autocomplete-api-to-only-get-train-stations

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!