草庐IT

places_popularity

全部标签

android - Google Place Picker 小部件无法正常工作

根据ThisOfficialPost我按照以下步骤将PlacePickerUI对话框与map集成。启动器代码PlacePicker.IntentBuilderbuilder=newPlacePicker.IntentBuilder();startActivityForResult(builder.build(this),PLACE_PICKER_REQUEST);在onActivityResult()中if(requestCode==PLACE_PICKER_REQUEST){if(resultCode==RESULT_OK){Placeplace=PlacePicker.getPla

Android - admob publisher id 和 google places api key

我对admob和googleplacesapikey中的key有以下2个疑问-1.我可以在多个应用程序中使用单个admob发布者ID吗?这会产生任何问题吗?或者我必须为每个应用程序创建单独的发布者ID。2.如果我想使用googleplacesapi创建5个android应用程序,我是否需要创建5个googleplacesapikey,或者我可以在所有应用程序中使用单个key。谢谢,阿努吉 最佳答案 1.CanIusesingleadmobpublisheridinmultipleapplication.Willthatcreatea

android - 在 android 中使用 Google Places API 查找城市名称和区域详细信息

我想获取我所在区域的详细信息,我使用LocationManager类获得了纬度和经度,但是如何获取区域名称、地址等详细信息?由于请求数量有限,我不想使用Geocoder。如何使用GooglePlacesAPI查找该区域的详细信息? 最佳答案 将getFromLocation(double,double,int)方法的结果存储在一个Address对象中,然后调用方法getLocality()。 关于android-在android中使用GooglePlacesAPI查找城市名称和区域详细信

android - 如何从适用于 Android 的 Google Places API 获取地点详细信息?

我想从自动完成地点服务获得的预测中获取地点的详细信息(城市名称、邮政编码等)。我的代码如下:Places.GeoDataApi.getAutocompletePredictions(googleApiClient,query,bounds,null).setResultCallback(newResultCallback(){@OverridepublicvoidonResult(AutocompletePredictionBufferbuffer){if(buffer==null)return;if(buffer.getStatus().isSuccess()){for(Autoco

android - 使用适用于 Android 的 google places api 网络服务搜索附近的特定地点

我正在尝试使用googleplacesapi网络服务将地点搜索类型限制为医院,但无法实现。逻辑猫java.lang.NullPointerExceptionatcom.ediode.graphics3d.ClinicFragment.sbMethod(ClinicFragment.java:174)atcom.ediode.graphics3d.ClinicFragment.onMapReady(ClinicFragment.java:95)主ActivitypublicclassClinicFragmentextendsAppCompatActivityimplementsGoogl

java - Places.GeoDataApi.getAutocompletePredictions

我在使用AndroidGooglePlacesAPI-自动完成功能时遇到问题。我正在尝试使用Places.GeoDataApi.getAutocompletePredictions()获取placeId的方法,但是,它不起作用。(输出甚至不显示“无法获取值”)谁能帮帮我?这是我的Java代码:PendingResultresult=Places.GeoDataApi.getAutocompletePredictions(mGoogleApiClient,query,mLatLonBounds,null);result.setResultCallback(newResultCallbac

android - Google Places API 自动完成仅获取城市列表

我正在我的Android应用程序上实现谷歌的地点自动完成功能,它可以显示每个相似的地点,但我如何才能仅在用户尝试搜索任何内容时获得城市建议。我搜索了很多,但我找不到类似的Android地方自动完成问题。我已经从谷歌的示例中实现了PlaceAutocompleteAdapter,这看起来像PlaceAutocompleteAdapterpackagecom.tribikram.smartcitytraveler;importandroid.content.Context;importandroid.graphics.Typeface;importandroid.text.style.Ch

android - java.lang.IllegalStateException : Places must be initialized 错误

我使用的是旧的PlaceSDK,它运行良好,但它会被贬值,所以我搬到了新的PlaceSDK。我从一些设备上得到了崩溃报告。崩溃报告:FatalException:java.lang.RuntimeExceptionUnabletostartactivityComponentInfo{com.islamuna.ramadan/com.google.android.libraries.places.widget.AutocompleteActivity}:java.lang.IllegalStateException:Placesmustbeinitialized.SDK版本:implem

android - Material 设计 : Where to place elevation in android styles?

我想在我的某些应用样式中设置项目高度。现在海拔只有21或更高,没有支持库,所以我的自然倾向是创建一个styles-v21xml并将它放在那里:4dp问题是我在常规styles.xml文件中对Widget.MyApp.Drawer所做的任何更改都将被它完全覆盖。我想要的是将提升添加到我为styles.xml中列出的此样式的v21版本所做的样式更改列表的底部。所以我着手创建基本样式,我在View中使用的样式继承自:@drawable/listitem_background@dimen/list_item_height我在styles.xml中将样式留空,在styles-v21中,我添加了高

android - 自动完成 Google Places 示例

我正在尝试运行Google地方代码示例,但无法运行。我收到如下错误消息:ErrorgettingautocompletepredictionAPIcall:Status{statusCode=TIMEOUT,resolution=null}我将我的GoogleMapV2ApiKey添加到list中,并使用正确的证书对应用程序进行了签名,因此看来key可能在此处:mGoogleApiClient=newGoogleApiClient.Builder(this).enableAutoManage(this,0/*clientId*/,this).addConnectionCallbacks