是否有可能过滤谷歌的地方选择器 [英] Is it possible to filter google place picker

查看:89
本文介绍了是否有可能过滤谷歌的地方选择器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以过滤google placepicker显示的位置,让我们只说超市?
否则,我最好如何创建一个这样的视图?

  mGoogleApiClient = new GoogleApiClient 
.Builder(this)
.addApi(Places.GEO_DATA_API)
.addApi(Places.PLACE_DETECTION_API)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
。建立();

int PLACE_PICKER_REQUEST = 1;
PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder();
try {
Context context = getApplicationContext();
startActivityForResult(builder.build(context),PLACE_PICKER_REQUEST);

catch(Exception e){

}


解决方案

此功能当前不可用。您可以按照以下两个未解决问题进行更新: b 问题8484:按PlaceType过滤选择器 问题8565:PlacePicker定制 - 将Place Type Filter添加到Intent Builder

Is it possible to filter the locations google placepicker displays for lets say only supermarkets? Otherwise, how would i best go about creating a view like this?

mGoogleApiClient = new GoogleApiClient
            .Builder(this)
            .addApi(Places.GEO_DATA_API)
            .addApi(Places.PLACE_DETECTION_API)
            .addConnectionCallbacks(this)
            .addOnConnectionFailedListener(this)
            .build();

 int PLACE_PICKER_REQUEST = 1;
        PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder();
    try {
        Context context = getApplicationContext();
        startActivityForResult(builder.build(context), PLACE_PICKER_REQUEST);
    }
    catch (Exception e) {

    }

解决方案

This feature is not currently available. You may follow these two open issues for updates:

这篇关于是否有可能过滤谷歌的地方选择器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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