适用于 Android 的 Google Places API - 无搜索选项的 PlacePikcer [英] Google Places API for Android - PlacePikcer without search option

查看:28
本文介绍了适用于 Android 的 Google Places API - 无搜索选项的 PlacePikcer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个应用程序,用户必须在其中选择一个他想要的地方.

I am building an application, where the user has to select a Place he wants.

为此,我使用了 PlacePicker 对话框,因为适用于 Android 的 Google Places API 在 API 参考站点中进行了教学.

For that, I am using the PlacePicker dialog, as the Google Places API for Android is teaching in the API reference site.

但是,当用户单击按钮并打开地点选择器"对话框时,它没有任何按钮可供用户键入他想要选择的地点的名称.因此,用户只需在地图上拖动即可选择一个地点;这对用户来说太可怕了,特别是如果他想选择远离他所在位置的特定位置,或者他不知道地图上的位置在哪里.

However, when the user click the button and open the Place Picker Dialog, it does not have any button where the user can type the name of the place he wants to select. So, the user will have to select a place just dragging on the map; this is horrible for the user, specially if he wants to choose a specific location far from his location or he doesn't know where is the place on the map.

因此,我尝试在 Google 和互联网上的论坛上进行搜索,但没有找到有关如何设置对话框以显示搜索按钮的任何信息.

So, I've tried searching on Google and foruns on the internet and I didn't find anything about how to set the dialog to appear the search button.

谢谢!;)

推荐答案

很遗憾,地点选择器不支持您的要求.

Unfortunately the Place Picker does not support what you are asking for.

这篇关于适用于 Android 的 Google Places API - 无搜索选项的 PlacePikcer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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